On Thu, 13 Dec 2001, Sam Varshavchik wrote:

> Gordon Messmer writes: 
> 
> > It seems that the simplest way to cancel a message that hasn't been 
> > delivered is to return an SMTP style error code, as the documentation 
> > suggests.  Do you disagree?
> 
> By the time the message is queued up, there's nobody around any more to 
> receive the smtp style error code. 

Durning my tests, the filters are run during the SMTP conversation, and
work fine, which is to say that messages get rejected, when I return error
codes.  When is this not the case?  Perhaps on local injection via
/usr/sbin/sendmail?

> > That seems overly complex.  Why not feed the filter the data file name, 
> > the message queue id, and then the control files, if necessary?  Then 
> 
> That's the same thing, except that you've replaced the intervening space 
> with a newline. 

Mostly, sure.  But, if old filters are going to process control files line 
by line, having the message id on its own line will probably work in most 
cases, where putting them on the same line never will.

All the same, I think that extracting the message ID from the control file 
is the best solution, since the filter is also free to get the rest of the 
information it wants.

The message id is of much more limited use than the control file names.

> I need to think about this a little bit more. 

Indeed.  I have to say that I really like the behavior that the 
documentation describes, and I *really* like that courier impliments such 
a nice filtering system.  When using qmail-scanner for virus scanning 
(prior to the release of Courier, mind you), I found the overhead of 
continually forking perl and the virus scanner to be unacceptable unless 
the mail server was only this and nothing more.  I had pondered such a 
daemon-based filter system, but never figured out how to wedge such a 
system into qmail.

Thank you

-- 
If I had a dollar for every brain that you don't have,
        I'd have one dollar. - Squidward to SpongeBob


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to