Hello all,

I am having a problem with getting the CHKUSER_STARTING_VARIABLE to work
with my system. When I use this setting when compiling qmail chkuser doesn't
work at all. However when I use the  CHKUSER_ALWAYS_ON it works fine.

Here is my chkuser.h file:

#define CHKUSER_STARTING_VARIABLE "CHKUSER_START"
#define CHKUSER_ENABLE_UIDGID
#define CHKUSER
#define CHKUSER_VERSION         "2.0.5"
#define CHKUSER_VERSION_RL      2
#define CHKUSER_VERSION_MJ      0
#define CHKUSER_VERSION_MN      5

#define CHKUSER_OK                      1
#define CHKUSER_RELAYING                0
#define CHKUSER_KO                      -1
#define CHKUSER_NORCPTHOSTS             -10
#define CHKUSER_ERR_AUTH_RESOURCE       -20
#define CHKUSER_ERR_MBXFULL             -30
#define CHKUSER_ERR_MAXRCPT             -40
#define CHKUSER_ERR_MAXWRONGRCPT        -50
#define CHKUSER_ERR_DOMAIN_MISSING      -60
#define CHKUSER_ERR_RCPT_FORMAT         -70
#define CHKUSER_ERR_RCPT_MX             -75
#define CHKUSER_ERR_SENDER_FORMAT       -80
#define CHKUSER_ERR_SENDER_MX           -85
#define CHKUSER_ERR_INTRUSION_THRESHOLD -90

And this is my run file for qmail-smtpd:

#!/bin/sh

QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
CHKUSER_START="DOMAIN"

if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ];
then
    echo QMAILDUID, NOFILESGID, 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 20000000 \
    /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c
"$MAXSMTPD" \
        -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd
/usr/local/bin/vchkpw /bin/true 2>&1


Any help would be greatly appreciated.

Stefan

Reply via email to