Don't check mail from localhost

Scott Silva ssilva at sgvwater.com
Wed Mar 14 18:12:17 CET 2007


Arthur Sherman spake the following on 3/13/2007 5:10 PM:
>>> Hi do I set MailScanner not to scan mail from localhost? I 
>> stopped getting
>>> mail from root
>>>   
>> That root guy only sends spam anyways. ;-)
>>
>> Seriously, this is a two-step process.
>>
>> 1) Create a file called "content.scanning.rules" or similar 
>> and put it 
>> in your /etc/MailScanner/rules/ dir. Contents should be:
>>
>> From:           127.0.0.1      no
>> FromOrTo:       default        yes
>>
>> 2) Make a change to your MailScanner.conf file. Find the line that 
>> reads: Dangerous Content Scanning = yes and change it to:
>> Dangerous Content Scanning = %rules-dir%/content.scanning.rules
>>
>> 3) save, and restart MailScanner.
>>
You can enhance this by adding an "and" clause.
Example ;
 From:           127.0.0.1     and   from root at localhost no
 FromOrTo:       default        yes

Just use the root address mail is sent from.
-- 

MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!



More information about the MailScanner mailing list