Bypassing QMAILQUEUE value for SMTP-AUTH users?

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 ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-24-2003
James Thornton
 
Posts: n/a
Default Bypassing QMAILQUEUE value for SMTP-AUTH users?

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"
Reply With Quote
  #2 (permalink)  
Old 09-30-2003
Brian T Glenn
 
Posts: n/a
Default Re: Bypassing QMAILQUEUE value for SMTP-AUTH users?

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0