All-
I needed a way to require authenticated SMTP for certain client IP
addresses, so I wrote a patch to cause qmail-smtpd to require authentication
if the REQUIREAUTH environment variable is set. Since I run qmail-smtpd
from tcpserver, I use tcprules to set the REQUIREAUTH variable when
appropriate. If REQUIREAUTH is set, qmail-smtpd will not accept any MAIL
FROM commands before the client has authenticated.
The qmail-smtpd-requireauth patch goes on top of Krzysztof Dabrowski's
qmail-smtpd-auth patch, which enables authenticated SMTP in qmail-smtpd.
I am now releasing the qmail-smtpd-requireauth patch for public consumption,
flogging, trashing, etc. See
http://www.netable.com/~dburkes/qmail-smtpd-requireauth for details on
installation and usage.
Regards,
Danny Burkes