View Single Post
  #2  
Old 8th March 2011, 12:44
gorn gorn is offline
Junior Member
 
Join Date: Mar 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

BTW, tried this stunnel setup from

http://www.postfix.org/TLS_README.html#client_smtps

With both 465 and this 11125 port. Neither one worked. Both ports are open in iptables:

telnet localhost 11125
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused


Code:
A minimal stunnel.conf file is sufficient to set up a tunnel from local port 11125 to the remote destination "mail.example.com" and port "smtps". Postfix will later use this tunnel to connect to the remote server.

    /path/to/stunnel.conf:
        [smtp-tls-wrapper]
        accept = 11125
        client = yes
        connect = mail.example.com:smtps

To test this tunnel, use:

    $ telnet localhost 11125

This should produce the greeting from the remote SMTP server at mail.example.com.

On the Postfix side, the relayhost feature sends all remote mail through the local stunnel listener on port 11125:

    /etc/postfix/main.cf:
        relayhost = [127.0.0.1]:11125
Reply With Quote