Aniruddha,

> I would like to change '$final_virus_destiny'  from 'D_DISCARD;' to
> 'D_PASS;'. However I would like to inform the users that the message
> probably contains a virus.
> 
> Is it possible to gives the message a custom header, like e.g.
> ***WARNING VIRUS DETECTED***? And if so how do I achieve this?
> I only found the '$X_HEADER_TAG = 'X-Virus-Scanned';' option.


The %subject_tag_maps_by_ccat already contains the following
default:

  %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') },
  );

So if instead of inserting '***INFECTED*** ' into the subject of a
passed infected message you prefer your own text, just change it
in amavisd.conf, e.g.:

$subject_tag_maps_by_ccat{+CC_VIRUS} =
  [ '***WARNING VIRUS DETECTED*** ' ];

and similarly for banned, if you like:

$subject_tag_maps_by_ccat{+CC_BANNED} = [ '***BANNED*** ' ];


Also you may want:

  $defang_virus  = 1;  # MIME-wrap passed infected mail


Mark

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
AMaViS-user mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

Reply via email to