Dairenn Lombard wrote:
My original question remains, however...  Is that all there is to it?
 What is doing the SMTP AUTH?  QMail itself?  Is it patched to query
 MySQL?  Is the existance of the e-mail address and a match password
in the vpopmail MySQL database *all* there is to SMTP AUTH working?

From the qmail-smtpd manpage:

qmail-smtpd  supports  ESMTP,  including  the  8BITMIME, DATA,
PIPELINING, SIZE, and AUTH options.  qmail-smtpd includes a "MAIL
FROM:" parameter parser and obeys "Auth" and "Size" advertisements.
qmail-smtpd can accept  LOGIN,  PLAIN,  and  CRAM-MD5  AUTH types.  It
invokes  checkprogram,  which  reads  on  file  descriptor  3  the
username,  a  0  byte,  the password or CRAM-MD5 digest/response derived
from the SMTP client, another 0 byte, a CRAM-MD5 challenge (if
applicable to the AUTH type), and a final 0  byte. checkprogram invokes
subprogram upon successful authentication, which should in turn return 0
to qmail-smtpd, effectively setting the environment variables
$RELAYCLIENT and $TCPREMOTEINFO (any supplied value  replaced  with  the
authenticated username). qmail-smtpd  will reject the authentication
attempt if it receives a nonzero return value from checkprogram or
subprogram.

The /var/qmail/supervise/smtp/run says:

exec /usr/bin/softlimit -m 12000000 \
    /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
    -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
    $RBLSMTPD $BLACKLIST $SMTPD $VCHKPW /bin/true 2>&1

That's it: SMTP auth is handled through VCHKPW="/home/vpopmail/bin/vchkpw",
that is part of vpopmail package. It uses libvpopmail to handle requests to
users database.

--
Best regards,
Alexey Loukianov                          mailto:[EMAIL PROTECTED]
System Engineer,
IT Department,
Lavtech Corp.



---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to