I’m setting up my new web ecosystem with EasyEngine and as far as wordpress+nginx installation is all good.
The problem comes with the mail server set up. I’ve followed every rule from the tutorials section (I’ve needed a couple of workarounds though) but I’m hitting with the same wall over and over again during the last couple of days.
I’ve managed to set up VimbAdmin properly, and I’ve created some mailboxs for various domains. The email accounts send and receive emails perfect from Roundcube except for gmail accounts. When I send some test to gmail, I realize my firstname.lastname@example.org works fine sending to gmail, but it does not receive from gmail.
The issue is seems to be SSL/TLS related, but I cant figure out to fix this problem.
The mail.log shows this warning/error
vps postfix/smtpd: warning: cannot get RSA private key from file "/etc/postfix/postfix.pem": disabling TLS support
vps postfix/smtpd: warning: TLS library problem: error:0B080074:x509 certificate routines:X509_check_private_key:key valu mismatch:x509_cmp.c:340:
vps postfix/smtpd: connect from mail-vk0-f42.google.com[188.8.131.52]
vps postfix/smtpd: lost connection after STARTTLS from mail-vk0-f42.google.com[184.108.40.206]
I’ve researched (a lot!) and I’ve checked my private key
openssl rsa -in /etc/postfix/postfix.pem -check -noout
And I’ve got that
RSA key ok
Also I’ve checked the certificate
openssl x509 -in /etc/ssl/certs/postfix.pem -text -noout
And I’ve got that ok message too.
But the gmail issue continues even when it seems everything’s ok.
The second issue I’ve found is checking the IMAP test. When I’ve tried
openssl s_client -crlf -connect mydomain.com:993
I’ve always got:
connect: Connection refused connect:errno=111
My firewall is set to allow in at that port
993 ALLOW IN Anywhere
So I really don’t know why the IMAP test doesn’t work. As far as I can guess, the two issues are SSL related, so I’m getting frustated because I’ve deeply googled and I didn’t find the solution to fix that problems.
I really hope you can help me, please!!!