Ulrich,

> I want to rewrite the return-path header for mail identified as being
> spam or virus. So i try something like this :
>
> $msginfo->header_edits->delete_header('Return-Path');
> $msginfo->header_edits->add_header('Return-Path','<t...@toto>');
>
> It seems to have no effect on that header. This work for any other
> headers. Maybe it's not possible to modify within Amavis that header ?

There is usually no Return-Path in a header section during mail transfer
(and even if there were, it is often discarded). This header field is added
by a local delivery agent just before storing a message into a mailbox.
It reflects the envelope sender address.

So perhaps what you want is changing the envelope sender address.
It can be achieved in Postfix by canonical rewrites.

  Mark

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
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