I’m having major issues with SMTP AUTH. Currently, if a user authenticates they are allowed to relay. The problem is even if the user authenticates incorrectly, they are allowed to relay. I’m sure it’s something in my qmail-smtpd run script, so I’m pasting it below:

 

#!/bin/sh

 

# QMAILDUID=`id -u qmaild`

# NOFILESGID=`id -g qmaild`

VPOPUID=`id -u vpopmail`

VPOPGID=`id -g vpopmail`

MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`

LOCAL=`head -1 /var/qmail/control/me`

 

if [ -z "$VPOPUID" -o -z "$VPOPGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then

    echo VPOPUID, VPOPGID, MAXSMTPD or LOCAL is unset in

    echo /var/qmail/supervise/qmail-smtpd/run

exit 1

fi

 

if [ ! -f /var/qmail/control/rcpthosts ]; then

    echo "No /var/qmail/control/rcpthosts!"

    echo "Refusing to start SMTP listener because it'll create an open relay"

exit 1

fi

    exec /usr/local/bin/softlimit -m 3000000 /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" -u "$VPOPUID" -g "$VPOPGID" 0 smtp \

        /var/qmail/bin/qmail-smtpd /var/vpopmail/bin/vchkpw /bin/true 2>&1

 

Thanks,

 

Chris Miller

Compuville
www.compuville.net

 

Reply via email to