Postfix with TLS not working

Discussion in 'ISPConfig 3 Priority Support' started by ssd532, Oct 4, 2013.

  1. ssd532

    ssd532 New Member

    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 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

    [email protected]:/etc/postfix# telnet localhost 25
    Connected to localhost.
    Escape character is '^]'.
    ehlo localhost
    Connection closed by foreign host.

    - At this time I get following logs in mail.log

    Oct 4 12:13:29 sun postfix/smtps/smtpd[19923]: SSL_accept error from localhost[]: -1
    Oct 4 12:13:29 sun postfix/smtps/smtpd[19923]: 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[19923]: lost connection after CONNECT from localhost[]
    Oct 4 12:13:29 sun postfix/smtps/smtpd[19923]: disconnect from localhost[]

    I have tried using different pairs of certificate and key. But nothing is working. Please help.

    Thank you.

    Sachin Divekar
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you enable smtps and submission ports in postfix file?
  3. ssd532

    ssd532 New Member


    Thanks a lot Till. That was the problem. I forgot to uncomment smtps and submission port directives in

    Thank you very much :)

    Sachin Divekar
    Last edited: Oct 4, 2013

Share This Page