On Fri, 6 Mar 2009, Adi Nugroho wrote:
It is working well, but not global (just check for my.address, and not
for everyone).
Actually, it _is_ global, as it can only match on the domain name. Any
mail from any user in your domain to any other user in your domain will
hit this rule.
Please help me again to teach me, how to make it a little bit different:
First, it read the sender, and put it into a variable
Then, it check, if the recipient is the same as that variable
Unfortunately this cannot be done in SpamAssassin, and adding the ability
to do that (have one rule depend on the actual text matched by another
rule rather than just whether or not that rule matched _something_) is
difficult and will likely not be done anytime soon.
This particular test - whether from == to - is something that is best done
by something outside SA.
(1) configure your MTA to reject it at SMTP time
(2) configure your MTA to reject mail claiming to be from your domain when
it's coming in from outside your network
(3) do something like write a procmail rule to check for that match and
add a customer header if it is found, then have SA add points if that
header is present (which, of course, depends on your using procmail to
glue SA into your mail system)
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Failure to plan ahead on someone else's part does not constitute
an emergency on my part. -- David W. Barts in a.s.r
-----------------------------------------------------------------------
2 days until Daylight Saving Time begins in U.S. - Spring Forward