Imap connection failed RoundCube

Discussion in 'Installation/Configuration' started by PetrCZE, May 27, 2020.

  1. PetrCZE

    PetrCZE New Member

    Hello,
    I can't connect to my new mail through ThunderBird and RoundCube.
    In RoundCube I IMAP connection error.

    What should I do? Thanks
     
  2. piccolo

    piccolo New Member

    Hi PetrCZE,
    which error do you see in the logs? - Did you change something or is this a fresh installation?
    Could you paste the error here?
    Because without logs or errors it is quite impossible to find the error...
    Best regards,
    piccolo
     
    PetrCZE likes this.
  3. PetrCZE

    PetrCZE New Member

    Hi man,
    It is the fresh installation. Which log want you see?
     
  4. piccolo

    piccolo New Member

    I think it's the /var/log/mail.log could you also check if there are other mail.* files maybe something like mail.err.
     
    PetrCZE likes this.
  5. PetrCZE

    PetrCZE New Member

  6. piccolo

    piccolo New Member

    It seems that you having trouble with your SSL Configuration:
    Code:
    May 27 14:48:21 hosting dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=85.163.18.100, lip=1.1.1.1, TLS handshaking: SSL_accept() failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate: SSL alert number 42, session=<D0B8oKCmsddVoxJk>
    May 27 14:48:35 hosting dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=85.163.18.100, lip=1.1.1.1, TLS handshaking: SSL_accept() failed: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate: SSL alert number 42, session=<goxUoaCmstdVoxJk>
    Witch certificate is configured in /etc/dovecot.conf ?
     
    PetrCZE likes this.
  7. PetrCZE

    PetrCZE New Member

    Last edited: May 27, 2020
  8. piccolo

    piccolo New Member

    This two lines should look at your letsencrypt folder:
    Code:
    ssl_cert = </etc/postfix/smtpd.cert
    ssl_key = </etc/postfix/smtpd.key
    So that they look something like this:
    Code:
    ssl_cert = /etc/letsencrypt/live/<yourdomain.tld>/cert.pem
    ssl_key = /etc/letsencrypt/live/<yourdomain.tld>/privkey.pem
    Remember that you need to get the domain name you're using (for example: mail.yourdomain.tld) has to be part of the certificate.
     
    PetrCZE likes this.
  9. PetrCZE

    PetrCZE New Member

    Now I am getting this warning (URL in log changed)
    Code:
    May 27 17:20:02 hosting postfix/smtpd[1302]: warning: No certs for key at index 1 in /etc/letsencrypt/live/mail.example.com/privkey.pem
    May 27 17:20:02 hosting postfix/smtpd[1302]: warning: error loading private keys and certificates from: /etc/letsencrypt/live/mail.example.com/privkey$
    M
    and this error
    Code:
    hosting dovecot: imap([email protected]): Error: Invalid settings in userdb: userdb returned 0 as uid
     
  10. piccolo

    piccolo New Member

    It looks like that the certificate files don't exist. Does this folder /etc/letsencrypt/live/mail.example.com/ exist and are there the needed files?
    Did you create the [email protected] mailbox?
     
  11. PetrCZE

    PetrCZE New Member

    There are certs in LetsEncrypt live folder.
    Yep, I created the [email protected] before this post.
     
  12. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  13. piccolo

    piccolo New Member

    Could you provide the following:
    Code:
    ls -la /etc/letsencrypt/live/mail.example.com/
    and a snippet of your dovecot.conf
     
  14. PetrCZE

    PetrCZE New Member

  15. PetrCZE

    PetrCZE New Member

    upload_2020-5-28_21-30-11.png

    upload_2020-5-28_21-31-57.png
     
  16. piccolo

    piccolo New Member

    Hi PetrCZE,
    after the ssl_key = there is a < missing.
    Please add this in the line.
     
    Jesse Norell likes this.
  17. PetrCZE

    PetrCZE New Member

    Added, but still getting this warning.
    Code:
    May 28 22:46:49 hosting postfix/smtpd[1006]: warning: No certs for key at index 1 in /etc/letsencrypt/live/mail.example.xyz/privkey.pem
    May 28 22:46:49 hosting postfix/smtpd[1006]: warning: error loading private keys and certificates from: /etc/letsencrypt/live/mail.example.xyz/privkey.pem: disabling TLS support
    Thanks. :)
     

Share This Page