Cian,
> I was wondering if there's an easy way of getting amavisd-new to
> rewrite the subject of virus infected e-mail? I just want to add a
> "INFECTED" tag or something.
...
> As far as I know, the "$defang_virus = 1" will change the body
> so isn't really an option for us.
It does add '***INFECTED*** ' to the Subject by default
for passed infected mail to a local recipient:
%subject_tag_maps_by_ccat = (
CC_VIRUS, [ '***INFECTED*** ' ],
CC_BANNED, undef,
CC_UNCHECKED, sub { [ c('undecipherable_subject_tag') ] },
CC_SPAM, undef,
CC_SPAMMY.',1', sub { ca('spam_subject_tag3_maps') },
CC_SPAMMY, sub { ca('spam_subject_tag2_maps') },
CC_CLEAN.',1', sub { ca('spam_subject_tag_maps') },
);
You may change the text, e.g.:
$subject_tag_maps_by_ccat{+CC_VIRUS} = [ 'WARNING-INFECTED ' ];
This assumes a reasonably recent version of amavisd-new.
Mark
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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/