Lucas,

> I am developing a mail filter and I would like to know if I can
> reject a message in befored_send function.
> Can I do it?

I assume you are referring to amavisd custom hook 'before_send'.

The 'before_send' is a bit late, the 'checks' hook would be
more suitable. The idea is to set $r->recip_destiny to D_REJECT
and $r->recip_done(1) for all recipients.

Note that D_REJECT is not useful in a typical Postfix or dual-MTA
setup where filtering takes place after message has already been
recieved and queued. Rejecting a message is only suitable for
pre-queue setups like a milter setup.

  Mark

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to