Hi there !
 
Im new to writing custom rules for SpamAssassin, and have been struggling on this problem for a month now.
 
Im running SpamAssassin v2.6 and MailScanner v4.23 .
 
I have been receiving allot of spam from people where the From: address contain my company's address
eg. [EMAIL PROTECTED] and the To: address contains eg. [EMAIL PROTECTED] 
 
I need to drop all mail where the From: and To: contain @xyz.com
I created this rule, but it's been dropping allot of legal mail.
 
header __FAKE_FROM_MYCOMP           from =~ /(\@)(xyz)/
header __FAKE_TO_MYCOMP             to =~ /(\@)(xyz)/
meta FROM_MYCOMP_TO_MYCOMP (( __FAKE_FROM_MYCOMP + __FAKE_TO_MYCOMP) > 1)
score FROM_MYCOMP_TO_MYCOMP 20.0
 
Can someone please help me with my problem?
 
Regards
-Lean-
 
e-Mail:  
[EMAIL PROTECTED]

Reply via email to