OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Rejecting spam and viruses at SMTP time

From: Magnus Bäck (magnusdsek.lth.se)
Date: Tue May 02 2006 - 23:53:32 CDT


On Wednesday, May 03, 2006 at 04:46 CEST,
     Paul Johnson <balooursine.ca> wrote:

> I'm looking to replace my existing exim setup with postfix for ease of
> maintainability reasons. One thing I would like to be able to do in
> Postfix that I currently do in Exim is scan for spam and viruses with
> SpamAssassin (spamd called by spamc for the receiving user) and clamav
> (clamd) and reject it with a 500 after DATA (and I am aware that this
> is counter-indicated by the RFCs).

Your idea is fundamentally flawed. How are you supposed to handle
multi-recipient messages? You can only give one status code per message.

> Amavis seems like a good start, but it doesn't call spamc for the
> appropriate user.

Is that really important?

--
Magnus Bäck
magnusdsek.lth.se