On Monday 17 March 2003 12:19, Cory Wright wrote:
> On Mon, Mar 17, 2003 at 12:08:48PM -0500, Jesse Guardiani wrote:
> > It occurs to me that qmail users might be able to make use
> > of the QMAILQUEUE patch, and a custom script to check for
> > incoming mail to dated addresses and reject any dated
> > addresses that have expired before the SMTP conversation
> > finishes. No expired dated addresses in the pending queue,
> > and no expired dated emails in your mail server queue.
>
> I am not certain on this, but I dont think you can 'reject' messages using
> QMAILQUEUE,

I didn't think so at first either, but this page says differently:

http://untroubled.org/qmail-qfilter/

And I think he should know, since he created the patch in the first place.

Here's the definitive excerpt:

** begin **
Notes on writing a filter program:
- If you want to block an email, exit from the filter with code 31.
  This will cause qmail-qfilter to exit with the same error code, and
  qmail-smtpd (for example) to send an error code to the client.
- If you want to silently drop an email, exit with code 99.
** end **



> although you could certainly deliver them into oblivion.  I
> believe that QMAILQUEUE comes into place after qmail-smtpd has accepted the
> message and before the message is queued.
>
> You may be able to add a hook into the smtp_rcpt() function in
> qmail-smtpd.c though, but I imagine it would be difficult to do if you need
> to check many different crypt_keys of users where qmaild doesn't have
> access.
>
> It will be interesting to see what you come up with though.
>
> Good luck,
>
> Cory

-- 
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v)  423-559-5145 (f)
http://www.wingnet.net

We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%.  Contact [EMAIL PROTECTED] for more info.


_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to