Rules problem with two "From:" statements
Mike
michael at NOMENNESCIO.NET
Thu Jun 23 21:02:06 IST 2005
Hi,
I seem to have stumbled onto a rules bug/problem, unless I'm doing
something wrong.
I noticed that my rules aren't firing properly. For example, I would
like the following (since I use MailWatch) in a ruleset (for instance
"Spam Checks"):
From: 127.0.0.1 and From: postmaster@<domain> no
In English: if the message is sent from the localhost AND has a sender
of postmaster@<domain>, skip the Spam Checks (and Filename/type checks
in other rulesets, etc.). The reason for this double check is that a
check on "From: postmaster@<domain>" only is not strict enough, since it
can be sent from any host. The "From: 127.0.0.1" localhost check only
would bypass Spam Checks for ALL senders from the localhost.
The rule above does not work at all. However, if I change it to:
From: 127.0.0.1 and To: support@<domain> no
the rule DOES work. This seems to imply that a rule with "and" cannot
have two "From:" statements (possibly the same holds for two "To:"
statements, I haven't checked this).
I've also tried to change the two "From:" statements to "FromOrTo:", but
then MailScanner syslogs the following message (which makes sense):
==========
Config Error: Cannot match against destination IP address when resolving
configuration option "spamchecks"
==========
Julian, can you confirm this behaviour and is it by design (i.e. "a
feature and not a bug" to speak with the words of one L. Torvalds...)?
Is what I want obscure or is it something others want as well (not sure
if this can easily be changed in the code).
Regards and thanks in advance,
Mike Klinkert
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list