I have added Code: local_name domain1.com { ssl_cert = </etc/letsencrypt/live/domain1.com/fullchain.pem ssl_key = </etc/letsencrypt/live/domain1.com/privkey.pem } local_name domain2.com { ssl_cert = </etc/letsencrypt/live/domain2.com/fullchain.pem ssl_key = </etc/letsencrypt/live/domain2.com/privkey.pem } to my /etc/dovcote.conf file. However when I use: Code: openssl s_client -tls1 -starttls smtp -connect domain2.com:587 -servername domain2.com to test the setup, the certificate is from domain1.com, not domain2.com. When I connect from my Outlook 2007 client, I have the same problem, and I get the 'do you trust cert' warning. I've searched everywhere but can't find any advice on how to fix this problem. What have I missed in my /etc/dovcote.conf file?
I tried with OSX Mail (El Capitan) and it didn't work either. Gave me the default certificate for the server.
I'm sorry, I kinda misread your test result for the openssl command, thought it did work with that. Basically you're doing it right, the issue could be that the certs are either not readable or have too wide chmods. I'd suggest making dovecot a lil more verbose on the logs, restart and look what it says. Edit: Just read check $doveconf -n Set verbose_ssl = yes