This is a discussion on Bypassing QMAILQUEUE value for SMTP-AUTH users? within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; I am running qmail under tcpserver with Eric M. Johnston's stmp-auth patch, and the qmailqueue patch. I want ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am running qmail under tcpserver with Eric M. Johnston's stmp-auth
patch, and the qmailqueue patch. I want to run /var/qmail/bin/qmail-queue for users authenticated via SMTP-AUTH instead of /var/qmail/bin/qmail-localfilter.sh. What can I do I to find out if the user has been authenticated with SMTP-AUTH? It appears that the smtp-auth patch does not set RELAYCLIENT in environ so it is not set for authenticated users. My tcp.smtp file looks like this: 127.:allow, RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-queue" # run sa-analyze (spamassassin) on any mail from the outside world :allow,QMAILQUEUE="/var/qmail/bin/qmail-localfilter.sh" |
|
|||
|
On 24 Sep 2003 15:08:03 -0700, James Thornton <james@unifiedmind.com> may have written:
> I am running qmail under tcpserver with Eric M. Johnston's stmp-auth > patch, and the qmailqueue patch. I want to run > /var/qmail/bin/qmail-queue for users authenticated via SMTP-AUTH > instead of /var/qmail/bin/qmail-localfilter.sh. > > What can I do I to find out if the user has been authenticated with > SMTP-AUTH? > It appears that the smtp-auth patch does not set RELAYCLIENT in > environ so it is not set for authenticated users. > > My tcp.smtp file looks like this: > > 127.:allow, RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-queue" > # run sa-analyze (spamassassin) on any mail from the outside world >:allow,QMAILQUEUE="/var/qmail/bin/qmail-localfilter.sh" Inside of the authenticate function in qmail-smtpd.c, add code to reset the QMAILQUEUE environment var upon successful authentication. There was some talk of doing a similar thing with RBLSMTPD mentioned in the qmail mailing list archives. HTH, -- Brian T Glenn delink.net Internet Services |