On Wed, Nov 26, 2003 at 07:52:17AM -0800, Mitch (WebCob) wrote:
> Not meaning to answer for Troy, but I don't think anything is "Wrong" with
> this, but it doesn't do what Troy is doing...
> 
> He's using localmailfilter as a recpt filter on mail acceptance - he runs
> spamassassin on acceptance (i.e. before delivery) and rejects the mail if it
> scores over "X" - so he doesn't get a queue full of bounces to bad addresses
> with "your message was detected as spam" messages... BUT his problem I think
> was that he had to run spamassassin twice - once on recpt and once in
> delivery mode.

I think there is not way out for him, then. As I understand it, localmailfilter
code *is to be* invoked twice:

- firstly as recipientfilter (even before the DATA-Command, so spamassassin
  would be a no-go here as it would only be able to check the MAIL FROM and
  RCPT TO data),

- secondly as smtpfilter, that's the way Troy does it, but without a
  recipientfilter invoked previously exiting with a value of 99 IMHO there is
  no difference between using ~/.mailfilters/smtpfilter and ~/.mailfilter
  directly.

Best Regards
Mirko


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to