Hi
I have received quite a few messages where my own address was used as
the from address. While most of those are now caught by other filters
I'd like to add a check for this.
Right now I have the following in ~/.spamassassin/user_prefs:
header LOCAL_TEST_RULE From =~ /(?<!Bram\sMertens)\s<bram-mertens\@linux\.be>/
score LOCAL_TEST_RULE 0.1
describe LOCAL_TEST_RULE Is someone faking to be me?
I'll explain what I want the regex to be doing:
Whenever I receive an e-mail I sent myself (from mailing list etc.) the
from header should be:
From: Bram Mertens <bram-mertens@linux.be>
This rule should catch all messages that look like:
From: "roger" <bram-mertens@linux.be>
Where '"roger"' can be anything other than 'Bram Mertens'
I haven't tested this thoroughly yet but I'd like your
comments/suggestions: are there any big mistakes in this rule?
TIA
--
# Mertens Bram "M8ram" <bram-mertens@linux.be> Linux User #249103 #
# SuSE Linux 8.2 (i586) kernel 2.4.20-4GB i686 256MB RAM #
# 11:05pm up 36 days 2:44, 6 users, load average: 0.24, 0.13, 0.10 #
I have received quite a few messages where my own address was used as
the from address. While most of those are now caught by other filters
I'd like to add a check for this.
Right now I have the following in ~/.spamassassin/user_prefs:
header LOCAL_TEST_RULE From =~ /(?<!Bram\sMertens)\s<bram-mertens\@linux\.be>/
score LOCAL_TEST_RULE 0.1
describe LOCAL_TEST_RULE Is someone faking to be me?
I'll explain what I want the regex to be doing:
Whenever I receive an e-mail I sent myself (from mailing list etc.) the
from header should be:
From: Bram Mertens <bram-mertens@linux.be>
This rule should catch all messages that look like:
From: "roger" <bram-mertens@linux.be>
Where '"roger"' can be anything other than 'Bram Mertens'
I haven't tested this thoroughly yet but I'd like your
comments/suggestions: are there any big mistakes in this rule?
TIA
--
# Mertens Bram "M8ram" <bram-mertens@linux.be> Linux User #249103 #
# SuSE Linux 8.2 (i586) kernel 2.4.20-4GB i686 256MB RAM #
# 11:05pm up 36 days 2:44, 6 users, load average: 0.24, 0.13, 0.10 #