MailScanner 4.50.15 problem: Scan Messages variable.
Philip Hachey
PHachey at city.cornwall.on.ca
Tue Feb 7 15:45:42 GMT 2006
In MailScanner.conf, I have the variable "Scan Messages" pointed to a
ruleset. The "result values" are apparently ignored when two lines are
matched. Below are various scenarios and the results.
SCENARIO A:
From: 127.0.0.1 no
FromOrTo: default yes
RESULTS A:
Mail to any at domain.com from localhost => not scanned
Mail to any at domain.com from external => scanned
OK
SCENARIO B:
To: postmaster at domain.com no
FromOrTo: default yes
RESULTS B:
Mail to postmaster at domain.com from localhost => not scanned
Mail to postmaster at domain.com from external => not scanned
Mail to anyother at domain.com from localhost => scanned
Mail to anyother at domain.com from external => scanned
OK
SCENARIO C (the desired one):
From: 127.0.0.1 no
To: postmaster at domain.com no
FromOrTo: default yes
RESULTS C:
Mail to postmaster at domain.com from localhost => SCANNED!
Mail to postmaster at domain.com from external => not scanned
Mail to anyother at domain.com from localhost => not scanned
Mail to anyother at domain.com from external => scanned
NOT OK
I even tried adding the following to the ruleset:
From: 127.0.0.1 and To: postmaster at domain.com no
However, while it works if it's the only matching rule in the ruleset, as
soon as I add either of the following lines, then none of them are
triggered when mail is sent to postmaster at domain.com from localhost:
From: 127.0.0.1 no
To: postmaster at domain.com no
Philip Hachey
More information about the MailScanner
mailing list