Re: local mail headers
Karsten Bräckelmann wrote: On Tue, 2009-08-18 at 19:09 -0400, Dave wrote: Hello, I'm a new user of spamassassin. I'm using version 3.2.5 on a CentOS 5.3 machine with postfix 2.3 as the MTA. Spamassassin is being called from amavisd-new version 2.6.4 to scan all messages. I don't want my outgoing emails scanned, i read spamassassin can be configured by not check if it detects specific headers. Here's what i have now for headers: Nope. If SA detects specific headers, it already *is* scanning the mail. What you should do instead, is to configure your glue to not pass the mail on to SA in the first place -- that's either amavis, or even further down the road of your mail processing chain. score LOCAL_RCVD -50 To accomplish what i want would this work: header LOCAL_RCVD Received =~ /.*\(\S+\.example\.com\s+\[.*\]\)/ describe LOCAL_RCVD Received from mail.example.com That will lower the score, but not prevent SA from scanning the mail. This implies a full scan. What we do is setup a separate mailserver, on a separate machine, that is outbound-mail only. All users must authenticate SMTP to this system and no other relaying is allowed on it unless auth SMTP. We don't run SA on this. Besides keeping the configuration simple it has the added effect of dividing the mail load between multiple servers. Ted
local mail headers
Hello, I'm a new user of spamassassin. I'm using version 3.2.5 on a CentOS 5.3 machine with postfix 2.3 as the MTA. Spamassassin is being called from amavisd-new version 2.6.4 to scan all messages. I don't want my outgoing emails scanned, i read spamassassin can be configured by not check if it detects specific headers. Here's what i have now for headers: # adding headers add_header spam Flag _YESNOCAPS_ add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_ add_header all Level _STARS(*)_ add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_ # local headers header LOCAL_RCVD Received =~ /.*\(\S+\.domain\.com\s+\[.*\]\)/ describe LOCAL_RCVD Received from local machine score LOCAL_RCVD -50 To accomplish what i want would this work: header LOCAL_RCVD Received =~ /.*\(\S+\.example\.com\s+\[.*\]\)/ describe LOCAL_RCVD Received from mail.example.com Thanks. Dave.
Re: local mail headers
On Tue, 18 Aug 2009, Dave wrote: Hello, I'm a new user of spamassassin. I'm using version 3.2.5 on a CentOS 5.3 machine with postfix 2.3 as the MTA. Spamassassin is being called from amavisd-new version 2.6.4 to scan all messages. I don't want my outgoing emails scanned, i read spamassassin can be configured by not check if it detects specific headers. Here's what i have now for headers: # adding headers add_header spam Flag _YESNOCAPS_ add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_ autolearn=_AUTOLEARN_ version=_VERSION_ add_header all Level _STARS(*)_ add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on _HOSTNAME_ # local headers header LOCAL_RCVD Received =~ /.*\(\S+\.domain\.com\s+\[.*\]\)/ describe LOCAL_RCVD Received from local machine score LOCAL_RCVD -50 To accomplish what i want would this work: header LOCAL_RCVD Received =~ /.*\(\S+\.example\.com\s+\[.*\]\)/ describe LOCAL_RCVD Received from mail.example.com You'd be better served figuring out how to tell amavisd to not pass those messages to SA. Assigning a large negative score to a message is not the same as not scanning it. -- John Hardin KA7OHZhttp://www.impsec.org/~jhardin/ jhar...@impsec.orgFALaholic #11174 pgpk -a jhar...@impsec.org key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 --- Watch... Wallet... Gun... Knee...-- Denny Crane --- 6 days until the 1930th anniversary of the destruction of Pompeii
Re: local mail headers
On Tue, 2009-08-18 at 19:09 -0400, Dave wrote: Hello, I'm a new user of spamassassin. I'm using version 3.2.5 on a CentOS 5.3 machine with postfix 2.3 as the MTA. Spamassassin is being called from amavisd-new version 2.6.4 to scan all messages. I don't want my outgoing emails scanned, i read spamassassin can be configured by not check if it detects specific headers. Here's what i have now for headers: Nope. If SA detects specific headers, it already *is* scanning the mail. What you should do instead, is to configure your glue to not pass the mail on to SA in the first place -- that's either amavis, or even further down the road of your mail processing chain. score LOCAL_RCVD -50 To accomplish what i want would this work: header LOCAL_RCVD Received =~ /.*\(\S+\.example\.com\s+\[.*\]\)/ describe LOCAL_RCVD Received from mail.example.com That will lower the score, but not prevent SA from scanning the mail. This implies a full scan. -- char *t=\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;il;i++){ i%8? c=1: (c=*++x); c128 (s+=h); if (!(h=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}