[stunnel-users] Using qmail with stunnel

John Conover conover at rahul.net
Mon Nov 8 12:03:14 CET 2004


Someone ask about using qmail with stunnel.

In /var/qmail/control/smtproutes, put:

    :localhost:12325

Which routes all undeliverable/default email traffic to localhost,
port 12325.  And in /usr/local/stunnel/etc/stunnel/stunnel.conf, put:

    [smtps]
    accept=12325
    connect=myremote.com:32125

(man(1) qmail-control(5) for particulars,) so the local stunnel will
know what to do with it-route it to myremote.com, port 32125.  And in
myremote.com's stunnel.conf, put:

    [smtps]
    accept=32125
    connect=localhost:25

so myremote.com will route it to localhost, port 25, smtp.

Works fine on TCP/A?DSL, or a demand dial PPP connection, bringing the
telco line up for the email transaction, and then disconnecting, (kind
of like UUCP.)

If a multi-user dial connection, it is advisable to put the number '1'
in /var/qmail/control/concurrencyremote, (without the single quotes,)
to throttle the number of concurrent transactions going down the line,
else if there are a bunch of messages in qmail's queue when the
connection is made, qmail will choke the line with 20, (the default,)
concurrent transactions to empty the queue-and no one will be able to
get a packet in edgewise down the PPP link.

        John    
    
-- 

John Conover, conover at rahul.net, http://www.johncon.com/



More information about the stunnel-users mailing list