vi /etc/mail/spamassassin/local.cf

# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)

# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.

required_hits 5
report_safe 0
rewrite_header Subject [SPAM]

whitelist_from *@watchdata.com
whitelist_from *@watchdata.com.cn

#whitelist_from *@gmail.com

header LOCAL_RCVD From =~ /(|watchdata|.watchdata\.com.cn)/(mail.domain.com|ip address)/
describe LOCAL_RCVD Received from local machine
score LOCAL_RCVD -1000

service spamassassin restart
service postfix restart

No comments: