"Jacob (Mettavihari)" <[EMAIL PROTECTED]> wrote:
>
>Could you kindly suggest a way of making
>serialmail work with your script
>
>the part of your script that starts up qmail-smtpd
>--------------------------------------------------
>    echo -n " qmail-smtpd"
>    supervise /var/supervise/qmail/smtpd tcpserver -v -x/etc/tcp.smtp.cdb
>\
>        -u$QMAILDUID -g$NOFILESGID 0 smtp \
>        /var/qmail/bin/qmail-smtpd-wrapper 2>&1 | setuser qmaill accustamp
>| \
>        setuser qmaill cyclog /var/log/qmail/smtpd &
>
>    echo "."
>
>the part from the faq for your easy access
>------------------------------------------
>3. Replace
>
>      /var/qmail/bin/qmail-smtpd
>
>   with
>
>      sh -c '
>        /var/qmail/bin/qmail-smtpd
>        cd /var/qmail/autoturn
>        exec setlock -nx $TCPREMOTEIP/seriallock \
>        maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP
>AutoTURN
>      '
>
>   in the tcpserver invocation in your boot scripts. Reports from
>   maildirsmtp will be sent to the same place as reports from tcpserver.

Just change /var/qmail/bin/qmail-smtpd-wrapper from:

#!/bin/bash
ulimit -d 1024
exec /var/qmail/bin/qmail-smtpd ${1+"$@"}

to:

#!/bin/bash
ulimit -d 1024
/var/qmail/bin/qmail-smtpd ${1+"$@"}
cd /var/qmail/autoturn
exec setlock -nx $TCPREMOTEIP/seriallock \
    maildirsmtp $TCPREMOTEIP autoturn-$TCPREMOTEIP- $TCPREMOTEIP AutoTURN

-Dave

Reply via email to