spamassassin-users December 2011 archive
Main Archive Page > Month Archives  > spamassassin-users archives
spamassassin-users: Re: Making a rule -- "to" not matc

Re: Making a rule -- "to" not matching "for"

From: John Hardin <jhardin_at_nospam>
Date: Thu Dec 15 2011 - 18:44:29 GMT

On Thu, 15 Dec 2011, agamemnus wrote:

> One thing that would really help is to discard any emails where the "to"
> doesn't match the "for" fields: 99% of my spam is like that. Can anyone tell
> me what the rule for this would be? Thanks!

Sample headers would help.

By "for" do you mean the envelope recipient address in the Received:
header(s)? Those are not added by all MTAs, and _discarding_ (vs. just
adding a point for) any mail where the envelope recipient address does not
match the header To: address (what you seem to be suggesting) would
prevent you from receiving legitimate blind carbon copies from anyone.

Is that truly what you want?

-- John Hardin KA7OHZ FALaholic #11174 pgpk -a key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 ----------------------------------------------------------------------- Today: Bill of Rights day