[Mimedefang] Virus Notifications for Recipients
    Kevin A. McGrail 
    kmcgrail at pccc.com
       
    Thu Dec 23 18:01:35 EST 2004
    
    
  
Hello All,
I'd like to send an email with virus notification for recipients internally 
(NOT for Senders) as we have had a few instances where something important 
was stripped.
Right now, I use this in filter_begin:
 if ($FoundVirus) {
        md_graphdefang_log('virus', $VirusName, $RelayAddr);
        md_syslog('warning', "Discarding because of virus $VirusName");
        return action_discard();
    }
I'm thinking about changing action_discard() to 
action_replace_with_warning($msg) with $msg something like "This email was 
discarded because it contained the virus $VirusName".
My hopes is that this will essentially just send a simple note to a user 
that they would have received a virus but now they are just receiving this 
little email.  Can anyone confirm or recommend a better solution?
Regards,
KAM 
    
    
More information about the MIMEDefang
mailing list