Help - Search - Members - Calendar
Full Version: mailscanner
The Planet Forums > Control Panels > cPanel/WHM
arhs
How do I set, mailscanner not to scan for viruses for one domain name/user.

Thanks!
chirpy
You need to change the directive in MailScanner.conf:

Virus Scanning = yes

You need to make this a ruleset like this:

Virus Scanning = %rules-dir%/virus.scanning.rules

Then create a file in the rules subdirectory called virus.scanning.rules using the following format:

FromOrTo: *@somedomain.com no
FromOrTo: default yes

Then restart MailScanner.

This will scan for all domains except for "somedomain.com".
arhs
Thanks for the how To... Jonathan.

Should I Change:

Virus Scanning = yes

To:

Virus Scanning = %rules-dir%/virus.scanning.rules

And create a "virus.scanning.rules" file in “/usr/mailscanner/etc” directory.

Right?
chirpy
Almost, you need to put virus.scanning.rules into /usr/mailscanner/etc/rules/ with the format I mentioned.
arhs
Thanks icon_smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.