Okay, I've been trying for years to get vchkpw/vpopmail to work with SMTP-AUTH & CRAM-MD5. Thanks to recent development, it's apparently possible now. After beating my head against it for 2 hours this morning, I decided to turn to this list for help...

Then, I solved my own damn problem by realizing I had changed some variables in a script in one place but not the other. D'oh! So, instead of asking for help, I thought I'd offer some: my functional run script for netqmail-1.05 with the 0.4.2 auth patch, running supervised on OpenBSD 3.4-current & tested with Eudora 6. Here it is (watch the linewraps!):

---8<---8<---8<---
#!/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 20000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /home/vpopmail/etc/tcp.smtp.cd
b -c "$MAXSMTPD" \
-u "$VPOPUID" -g "$VPOPGID" 0 smtp \
/var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /usr/bin/true 2>&1
---8<---8<---8<---


Hope this helps someone!
-Kit
--
Everybody knows me,
Down at the local bar,
I drink until I can't see,
And I wonder where you are.     -Reverend Horton Heat, "Liquor, Beer, & Wine"

Reply via email to