On Sat, Sep 20, 2003 at 09:30:27AM -0400, Steven W. Orr wrote:
> 
> Ok. Maybe there's another explanation. See, SA can be used by lots of 
> different people. Trolls included. Not everyone uses SA by piping it 
> through procmail. I know; the better people do it that way, but I prefer 
> to reject all of my spam before reception is complete by using 
> spamass-milter with sendmail and rejecting during reception, rather than 
> using the Hansel and Gretel approach with procmail. 
 
You can block mail at (basically) four points during mail reception:

* During the HELO/EHLO
* During or after you receive envelope information
* At the *end* of data but before you have decided to accept the message 
  and sent a 250 return code to the client
* After you have accepted the mail but before its next hop (either 
  delivery to a mailbox or relay to another server)

The first 3 of those stages you can send a 5xx return code and the sender
knows right there that you rejected the message. In the last case, you 
have to generate a bounce to the envelope sender, which in the case of 
most spam and email-borne viruses will be forged. So you'd prefer to 
reject unwanted mail as early as possible in the SMTP transaction. 

There's not, for practical purposes, any way to cut off a message in the
middle of the DATA stage, which is what you seem to want to do. Having 
given the client the OK to send data, it'll just send the whole lot down 
your pipe and wait for an answer. I don't know about milter, but in the
case of postfix, body checks are enforced at the *end* of data and 
content filters generate bounces.

With SA, you have to receive the whole message to make any sense of it, 
so you basically can't hope to save bandwidth based on anything you spot 
in the message contents.

Everyone uses SA by piping it through something, be it procmail, 
amavis, milter, or something else entirely. Something has to read and
act on the data SA adds to the message. I'm oversimplifying a bit, but
not much.

regards
rob c


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to