Raj,

> I am learning postfix with "The book of Postfix", and have setup a
> mail server with smtpd_proxy_filter as documented in the book (Chapt
> 12, Scanning for Virus with smtpd_proxy_filter and amavisd-new). The
> setup is working fine and gtube mails are getting rejected. But the
> d_reject message is bit terse, and I would like to give some more
> information in the bounce, like which SA rules the mail hit and some
> handle with which I can grep the logs if I receive a d_reject mail
> back as a complaint.

If you are using D_REJECT in a smtpd proxy setup, then it is the
upstream MTA which is generating a bounce, and you have no control
over it.

To have control over a bounce notification in amavisd-new,
the D_BOUNCE needs to be used (with its good and bad sides).
In this case you may use a macro %T in a notification template
to provide a list of SpamAssassin tests hitting.

> and some handle with which I can grep the logs

This is already provided in a template:

  Our internal reference code for your message is %n/%i

both the log_id (useful for grep on a log), as well as the
mail_id (useful for finding a quarantined message or as a
key in SQL logging). Again, all this is only available when
amavisd itself is generating a bounce.

Btw, providing a set of SA test (and a score) in a bounce
is probably not the best idea, although admittedly spammers
rarely pay attention to bounces.

  Mark 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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