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 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
-----------------------------------------------------------------------
Watch... Wallet... Gun... Knee... -- Denny Crane
-----------------------------------------------------------------------
6 days until the 1930th anniversary of the destruction of Pompeii