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.