MailScanner ignoring some rules

TecnoWay Digital mailscanner at tecnowaydigital.com.br
Fri Apr 4 01:59:41 IST 2008


Julian, another information about my server.

I'm using mailwatch too.

If the mailbox marketing at silmaq.com.br is not set to be scanned,
why it continue been logged to mailWatch SQL ?
I imagine the "MailWatch.pm" is called from MailScanner to log only scanned 
messages.

Thanks
Rogério


----- Original Message ----- 
From: "Julian Field" <MailScanner at ecs.soton.ac.uk>
To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
Sent: Thursday, April 03, 2008 5:17 PM
Subject: Re: MailScanner ignoring some rules


>I have just done a thorough test of a %rules-dir%/scan.messages.rules with 
>4 combinations:
>
> FromOrTo: ntl.com no
> FromOrTo: default yes
>
> FromOrTo: soton.ac.uk no
> FromOrTo: default yes
>
> FromOrTo: ecs.soton.ac.uk no
> FromOrTo: default yes
>
> FromOrTo: jkf at soton.ac.uk no
> FromOrTo: default yes
>
> with 2 messages. 1st from ntl at ntl.com to jkf at soton.ac.uk, 2nd from 
> jkf at ecs.soton.ac.uk to root at ecs.soton.ac.uk.
>
> In all combinations, it worked exactly as expected.
>
> What I would like you to do is show me the output of the following 5 
> commands:
>
> ls -lu /etc/MailScanner/rules/scan.messages.rules
> sleep 60
> MailScanner --value=scanmessages --from=marketing at silmaq.com.br --to=root at localhost
> MailScanner --value=scanmessages --from=root at localhost --to=marketing at silmaq.com.br
> ls -lu /etc/MailScanner/rules/scan.messages.rules
>
> Just cut and paste the whole block into your terminal window. It will take 
> just over a minute to run. Cut and paste *all* the output into a reply to 
> this message.
>
> The 'sleep 60' is to force the MailScanner commands into the next minute 
> on the clock. The "ls" commands will show the "last accessed" date stamp 
> on rules file. If the rules file is being read at all, the 2nd ls will 
> print a different date and/or time than the 1st ls. If it is not being 
> read for some reason, the 2 ls commands will print the same date and time.
>
> Then we'll be able to see what is going wrong with your setup.
>
> Best regards,
> Jules.
>
> TecnoWay Digital wrote:
>> For example: %rules-dir%/scan.messages.rules then content of
>> scan.messages.rules file is:
>>
>> FromOrTo:    marketing at silmaq.com.br    no
>> FromOrTo:    default    yes
>>
>>
>> On a server with mailscanner-4.46.2-2 (the rule works)
>>
>> but another server with mailscanner-4.68.8-1 the rule doesn't work
>> the mailbox marketing at silmaq.com.br continue has still being processed by
>> mailscanner.
>>
>> To certify that using the correct MailScanner.conf after upgrade, I'd put 
>> a wrong set
>> example "Sca Messages" and MailScanner report syntax error.
>>
>>
>> Best Regards
>>
>> ----- Original Message ----- From: "Hugo van der Kooij" 
>> <hvdkooij at vanderkooij.org>
>> To: "MailScanner discussion" <mailscanner at lists.mailscanner.info>
>> Sent: Thursday, April 03, 2008 2:29 AM
>> Subject: Re: MailScanner ignoring some rules
>>
>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> mailscanner at tecnowaydigital.com.br wrote:
>>>
>>> | At MailScanner recent versions, when I set some rules like:
>>> | Scan Messages = /etc/MailScanner/rules/scan.messages.rules
>>> | or
>>> | Filename Rules = /etc/MailScanner/filename.rules
>>> |
>>> | The MailScanner simply ignore the rules and don't print any error 
>>> message.
>>>
>>> Since you didn not include anything about the rules you have there we
>>> must assume MS is right and your rules are wrong. In what way we can not
>>> tell you by lack of any information.
>>>
>>> Hugo.
>>>
>>> - --
>>> hvdkooij at vanderkooij.org               http://hugo.vanderkooij.org/
>>> PGP/GPG? Use: http://hugo.vanderkooij.org/0x58F19981.asc
>>>
>>> A: Yes.
>>> >Q: Are you sure?
>>> >>A: Because it reverses the logical flow of conversation.
>>> >>>Q: Why is top posting frowned upon?
>>>
>>> Bored? Click on http://spamornot.org/ and rate those images.
>>>
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.7 (GNU/Linux)
>>>
>>> iD8DBQFH9GslBvzDRVjxmYERAiOiAKCcKHWSpoYBUC+M2k0uPSEhertCnACfQEa+
>>> KnYl0Qt9kzlzy4m99EgvKhU=
>>> =LsQL
>>> -----END PGP SIGNATURE-----
>>> -- 
>>> MailScanner mailing list
>>> mailscanner at lists.mailscanner.info
>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>
>>> Before posting, read http://wiki.mailscanner.info/posting
>>>
>>> Support MailScanner development - buy the book off the website!
>>
>
> Jules
>
> -- 
> Julian Field MEng CITP CEng
> www.MailScanner.info
> Buy the MailScanner book at www.MailScanner.info/store
>
> MailScanner customisation, or any advanced system administration help?
> Contact me at Jules at Jules.FM
>
> PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
> PGP public key: http://www.jules.fm/julesfm.asc
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website! 



More information about the MailScanner mailing list