Postfix with TLS not working
I have followed The Perfect Server - Debian Wheezy (Apache2, BIND, Dovecot, ISPConfig 3) Howto.
Postfix set up is not working. I am not able to receive mails. Relevant lines in main.cf are as following.
# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
What I have observed is following.
- Postfix does not throw any error upon restart
- When I do telnet localhost 25, it successfully connects. But when I do ehlo localhost it simply closes the session
root@sun:/etc/postfix# telnet localhost 25
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
- At this time I get following logs in mail.log
Oct 4 12:13:29 sun postfix/smtps/smtpd: SSL_accept error from localhost[127.0.0.1]: -1
Oct 4 12:13:29 sun postfix/smtps/smtpd: warning: TLS library problem: 19923:error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol:s23_srvr.c:628:
Oct 4 12:13:29 sun postfix/smtps/smtpd: lost connection after CONNECT from localhost[127.0.0.1]
Oct 4 12:13:29 sun postfix/smtps/smtpd: disconnect from localhost[127.0.0.1]
I have tried using different pairs of certificate and key. But nothing is working. Please help.