"Tom Furie" <[EMAIL PROTECTED]> wrote:
>
>qmail alone - passes deliver and receive tests fine.
>
>Add ucspi-tcp, run qmail-smtpd through tcpserver - still passes deliver and
>receive tests.
>
>Add serialmail, follow the instructions in AUTOTURN.
>Section 3 - if I use sh -c..., I cannot connect to port 25 on the mail
>server. Using csh -c, I can connect to port 25.
>
>Send mail to [EMAIL PROTECTED], message goes into
>/var/qmail/autoturn/customers.ip/new
>Run maildirsmtp command to process test.domain queue e.g. maildirsmtp
>1.2.3.4 autoturn-1.2.3.4- 1.2.3.4 AutoTURN, mail is processed and arrives at
>ms.test.domain
>
>Send mail from test.domain using qmail.server as relay, mail arrives at
>destination, but delivery from qmail.server to ms.test.domain is not
>triggered.
>
>rc.local looks like -
>    /usr/local/bin/tcpserver -v -u 503 -g 502 0 smtp csh -c '
>    /var/qmail/bin/qmail-smtpd
>    cd /var/qmail/autoturn
>    exec /usr/local/bin/setlock -nx $TCPREMOTEIP/seriallock \
>    /usr/local/bin/maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP-
>$TCPREMOTEIP AutoTURN
>    ' 2>&1 | /var/qmail/bin/splogger smtpd 3 &
>
>csh -cf '/var/qmail/rc &'
>
>I have tried /var/qmail/rc both before and after the tcpserver command with
>no apparent difference.

Yeah, it doesn't matter.

OK, so basically smtpd works when you connect to port 25, are queueing
up in the maildir, the maildirsmtp command works when you run it
manually, but it doesn't work automatically?

Change your smtpd startup command to something like:

    /usr/local/bin/tcpserver -v -u 503 -g 502 0 smtp csh -c '
    /var/qmail/bin/qmail-smtpd
    cd /var/qmail/autoturn
    echo ========= >>/tmp/autoturnlog
    date >>/tmp/autoturnlog
    env >>/tmp/autoturnlog
    echo "exec /usr/local/bin/setlock -nx $TCPREMOTEIP/seriallock \
    /usr/local/bin/maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP-$TCPREMOTEIP 
AutoTURN" >>/tmp/autoturnlog
    exec /usr/local/bin/setlock -nx $TCPREMOTEIP/seriallock \
    /usr/local/bin/maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP-$TCPREMOTEIP AutoTURN
    ' 2>&1 | /var/qmail/bin/splogger smtpd 3 &

Then connect to port 25 from your client and look at
/tmp/autoturnlog. Make sure the maildirsmtp command is exactly right.

-Dave

Reply via email to