Karthik, thanks for your answer.
I still get the message delivered. I got the notification, only if it is an internal user.
I am testing with the EICAR pattern:
MailScanner[14964]: New Batch: Scanning 1 messages, 1086 bytes
MailScanner[14964]: MCP Checks: Starting
MailScanner[14964]: Virus and Content Scanning: Starting
MailScanner[14964]: /var/spool/MailScanner/incoming/14964/./218794/msg-14964-1.txt: Eicar-Test-Signature FOUND
MailScanner[14964]: /var/spool/MailScanner/incoming/14964/./218794/msg-14964-2.html: Eicar-Test-Signature FOUND
MailScanner[14964]: Virus Scanning: ClamAV found 2 infections
MailScanner[14964]: Infected message 218794 came from 10.10.250.71
MailScanner[14964]: Virus Scanning: Found 2 viruses
MailScanner[14964]: Saved infected "msg-14964-2.html" to /var/spool/MailScanner/quarantine/20040407/218794
MailScanner[14964]: Saved infected "msg-14964-1.txt" to /var/spool/MailScanner/quarantine/20040407/218794
MailScanner[14964]: Cleaned: Delivered 1 cleaned messages
MailScanner[14964]: Sender Warnings: Delivered 1 warnings to virus senders
MailScanner[14964]: New Batch: Scanning 1 messages, 1003 bytes
MailScanner[14964]: MCP Checks: Starting
MailScanner[14964]: Virus and Content Scanning: Starting
MailScanner[14964]: Uninfected: Delivered 1 messages


On Wed, 2004-04-07 at 15:23, S.Karthikeyan wrote:
Dear Jose, 
 
> Hi, I would like to set up MailScanner so mails sent from internal users  
> (@mydomain) if they have viruses, then they will be notified and the  
> email won't be sent. 
>  
> If emails are external, then to apply the default config of not notifing  
> the sender and delivering the mail. 
>  
> I've been trying with rules, but couldn't do it. (Silent Viruses is a  
> little confusing to me...) 
 
In /etc/MailScanner/MailScanner.conf, set 
 
Notify Senders = /etc/MailScanner/notifysender.rule 
Silent Viruses = /etc/MailScanner/silentvirus.rule 
Still Deliver Silent Viruses = /etc/MailScanner/stilldeliversilentvirus.rule 
 
In /etc/MailScanner/notifysender.rule,  
 
From:		certifica.com	yes 
FromorTo:		default		no 
 
In /etc/MailScanner/silentvirus.rule, 
 
From:		certifica.com		none 
FromOrTo:		default			All-Viruses 
 
In /etc/MailScanner/stilldeliversilentvirus.rule, 
 
From:		certifica.com	no 
FromorTo:		default		yes 
 
This should work for you. Bug me if it doesn't work or you need some other 
configuration. 
 
cheers, 
Karthikeyan, S. 


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Opencomputing-openprotect mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opencomputing-openprotect

Reply via email to