Re: [AMaViS-user] Rewrite subject of virus infected mails

This is a discussion on Re: [AMaViS-user] Rewrite subject of virus infected mails within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Cian, > I was wondering if there's an easy way of getting amavisd-new to > rewrite the subject ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-23-2007
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] Rewrite subject of virus infected mails

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
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:07 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0