[vchkpw] SMTP-AUTH fails, POP3 auth works. Mysql, Linux

2004-08-07 Thread ISP Lists
I've built vpopmail 5.4.5 with mysql 3.23.57-ish on Debian potato. I've
enabled roaming users and have included the SMTP-AUTH patch.  Courier,
vpopmail, qmail, and everything else compiled fine (I did not use Debian
packages).

POP3 works fine.  Spam filtering works fine.  Squirrelmail fine.  
Squirrelmail sends via 127.0.0.1 SMTP fine via
/home/vpopmail/etc/tcp.smtp.  SMTP-AUTH fails on password look ups and
therefore roaming users cannot send email.

ERROR LOG:
Aug  7 06:58:21 puffer vpopmail[28939]: vchkpw-smtp: password fail [email
protected]:[ip protected]

vpopmail was compiled like this:
./configure --enable-roaming-users=y --enable-logging=y
--enable-ip-alias-domains=y --enable-auth-module=mysql
--enable-clear-passwd=n --enable-libdir=/usr/include/mysql/
--enable-tcpserver-path=/home/vpopmail/etc/
--enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp --enable-qmail-ext
--enable-logging=e --enable-tcprules-prog=/usr/local/bin/tcprules
--enable-rebuild-tcpserver-file

My qmail-smtp/run file reads:
#!/bin/sh
QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl export QMAILQUEUE
VPOPMAILUID=`id -u vpopmail`
VPOPMAILGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
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
exec /usr/local/bin/softlimit -m 1500 \
/usr/local/bin/tcpserver \
-H -l [server hostname protected] \
-v -x /etc/tcp.smtp.cdb \
-c 20 -R -u $VPOPMAILUID -g $VPOPMAILGID 0 smtp \
  /usr/local/bin/rblsmtpd -b -C \
-r 'relays.ordb.org:Your message was rejected. \
-r 'sbl-xbl.spamhaus.org:Your message was rejected \
  /var/qmail/bin/qmail-smtpd $LOCAL /home/vpopmail/bin/vchkpw \
  /usr/bin/true 21


/home/vpopmail/bin/vchkpw is owned by vpopmail.vchkpw

/usr/local/courier-imap/etc/imapd bears the line
AUTHMODULES=authdaemon

How do I go further debug this?
Thanks.
D.






Re: [vchkpw] SMTP-AUTH fails, POP3 auth works. Mysql, Linux

2004-08-07 Thread ISP Lists
 I've built vpopmail 5.4.5 with mysql 3.23.57-ish on Debian potato. I've
 enabled roaming users and have included the SMTP-AUTH patch.  Courier,
 vpopmail, qmail, and everything else compiled fine (I did not use Debian
 packages).

 POP3 works fine.  Spam filtering works fine.  Squirrelmail fine.
 Squirrelmail sends via 127.0.0.1 SMTP fine via
 /home/vpopmail/etc/tcp.smtp.  SMTP-AUTH fails on password look ups and
 therefore roaming users cannot send email.

[SNIP]

OK, I've found that it was a client software error where CRAM-MD5 login is
advertised first.  Pegasus mail wouldn't keep trying to get to plain
LOGIN, but The BAT! would fail back from CRAM-MD5 to plain LOGIN and
roaming SMTP relay works fine.

Sorry for the initial concern, but I'd like to remove CRAM-MD5 from the
advertised capabilities to avoid this kind of confusion with users.

Any help there?!
Sorry, but thanks so far!



Re: [vchkpw] SMTP-AUTH fails, POP3 auth works. Mysql, Linux

2004-08-07 Thread Tom Collins
On Aug 7, 2004, at 5:39 AM, ISP Lists wrote:
OK, I've found that it was a client software error where CRAM-MD5 
login is
advertised first.  Pegasus mail wouldn't keep trying to get to plain
LOGIN, but The BAT! would fail back from CRAM-MD5 to plain LOGIN and
roaming SMTP relay works fine.
If you're using an older SMTP AUTH patch, CRAM-MD5 won't work properly. 
 Use the patch that's in the contrib directory of vpopmail 5.4.x 
instead (and note that you may need to update your qmail-smtpd/run file 
as well).

You really should have CRAM-MD5, since it's the only SMTP AUTH protocol 
that encrypts the password when sending.  Note that you'll also need to 
enable cleartext passwords in vpopmail for it to work properly.

If you can't use CRAM-MD5 for some reason, edit the source to 
qmail-smtpd and remove it from the text sent to the SMTP client (just 
search for CRAM-MD5 and it should be easy to find).

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/