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

BTW, tried this stunnel setup from

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

telnet localhost 11125
telnet: Unable to connect to remote host: Connection refused

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

        accept = 11125
        client = yes
        connect =

To test this tunnel, use:

    $ telnet localhost 11125

This should produce the greeting from the remote SMTP server at

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

        relayhost = []:11125
Reply With Quote