Welcome to the Linux Foundation Forum!

Lab 9.2 connection issue

Lab 9.2, point 5.
When I run mutt -f imap://[email protected]/ I get a message in mutt that, "could not connect to localhost (connection refused)".

If I log in as the student user, and run mutt, the emails are there.

I've stopped and disabled firewalld, added the student to the mail group, and it's a fresh install of ubuntu18 so I don't think the server is set up with a dummy SSL certificate. If it is, how do I deal with that?

Otherwise, why I am getting this error?

Thanks in advance.

Comments

  • lee42xlee42x Posts: 212

    Verify that "dovecot" is running. Running mutt as a student locally does not use dovecot for communication it access the files directly. Using the "mutt -f imap://[email protected]" forces a connection through dovecot.

    There should be a listener on the ports 143 and/or 993

    [email protected]:/tmp$ netstat -taupn | grep -e 143 -e 993
    tcp6 0 0 :::143 :::* LISTEN -
    tcp6 0 0 :::993 :::* LISTEN -
    l

  • gairstygairsty Posts: 25

    Hi Lee.

    In order to make this section work I had to:
    modify ssl = noin /etc/dovecot/conf.d/10-ssl.conf, and I commented out
    ssl_cert = </etc/dovecot/private/dovecot.pem
    ssl_key = </etc/dovecot/private/dovecot.key
    Which gets dovecot to run, and then I am able to mutt -f etc etc.

    I was just about to try putting in the ssl certs from lab 7.5, as , "you can use the same certificates for
    Apache and Dovecot." when I noticed the next lab was about SSL.

    Once again, frustrated that following the instructions does not give me the results I'm told to expect. Particularly as there are errors in Lab 9.3.

  • lee42xlee42x Posts: 212

    Thank you for your observations. Dovecot no longer accepts imap (clear text) if "ssl = yes" is enabled. The default seems to have been switched to "ssl = yes " . This lab will need an additional step to disable ssl while file locations, permissions and listeners are sorted, then in the next section enable ssl.

    Thank you for your input.
    Lee

Sign In or Register to comment.