Teodor,

> I am trying to replace a header from emails sent out by amavis, I
> configured the options for altemime but it seems they are not applied.
>
> Let me be more specific... On mails sent from my domain, there is a header:
>
> " Received: from XCD.GATEWAY (unknown [10.4.128.2]) "
>
> I want to mangle this header, so I inserted in amavisd.conf the following:
>
> $altermime = 'altermime';     # a path to the program
> @altermime_args_defang     = qw(--alter-header="Received: from
> XCD.GATEWAY (unknown [10.4.128.2])" --alter-with="XCD.GATEWAY
> xx.xx.xx.xx" --alter-mode=replace);
>
> If I run altermime from the console with the above line, and with
> sample email from a file, it works, it replaces the desired header,
> but in amavis it does nothing... maybe something is missing or what?

Depends on who is inserting this Received header field.
If it is amavisd itself, or MTA after filtering by amavisd,
then altermime has no say in it, header field is added
AFTER mail transformation by altermime.

It is probably more suitable to do this transformation
in Postfix. See:
  man header_checks | less +/REPLACE
This topic pops up on the Postfix users list regularly.

  Mark


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-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