* [gentoo-user] OT - spamassassin not rewriting subject headers
@ 2007-05-29 21:22 Michael Sullivan
0 siblings, 0 replies; only message in thread
From: Michael Sullivan @ 2007-05-29 21:22 UTC (permalink / raw
To: gentoo-user
I'm having a problem. I'm running spamassassin with exim:
baby ~ # emerge -pv exim spamassassin
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] mail-mta/exim-4.67 USE="exiscan exiscan-acl ldap mysql
pam perl sasl ssl syslog tcpd -X -dnsdb -domainkeys -dovecot-sasl
-gnutls -ipv6 -lmtp -mailwrapper -mbox -mbx -nis -postgres -radius -spf
-sqlite -srs" 0 kB
[ebuild R ] mail-filter/spamassassin-3.1.8-r1 USE="berkdb doc mysql
ssl -ipv6 -ldap -postgres -qmail -sqlite -tools" 980 kB
and I've finally gotten spamassassin to add X-Spam headers to potential
spammish emails, but it's not rewriting the Subject header. Here's the
ACL from /etc/exim/exim.conf:
acl_check_data:
# Deny if the message contains a virus. Before enabling this check,
you
# must install a virus scanner and set the av_scanner option above.
#
# deny malware = *
# message = This message contains a virus ($malware_name).
# Add headers to a message if it is judged to be spam. Before enabling
this,
# you must install SpamAssassin. You may also need to set the
spamd_address
# option above.
#
warn spam = nobody
add_header = X-Spam_score: $spam_score\n\
X-Spam_score_int: $spam_score_int\n\
X-Spam_bar: $spam_bar\n\
X-Spam_report: $spam_report
# Accept the message.
accept
Here's my /etc/mail/spamassassin/local.cf:
baby ~ # cat /etc/mail/spamassassin/local.cf
# This is the right place to customize your installation of
SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# Only a small subset of options are listed below
#
###########################################################################
# Add *****SPAM***** to the Subject header of spam e-mails
#
rewrite_header Subject *****SPAM*****
# Save spam messages as a message/rfc822 MIME attachment instead of
# modifying the original message (0: off, 2: use text/plain instead)
#
report_safe 0
# Set which networks or hosts are considered 'trusted' by your mail
# server (i.e. not spammers)
#
#trusted_networks 70.234.122.
# Set file-locking method (flock is not safe over NFS, but is faster)
#
lock_method flock
# Set the threshold at which a message is considered spam (default:
5.0)
#
required_score 5.0
# Use Bayesian classifier (default: 1)
#
use_bayes 1
# Bayesian classifier auto-learning (default: 1)
#
bayes_auto_learn 1
# Set headers which may provide inappropriate cues to the Bayesian
# classifier
#
# bayes_ignore_header X-Bogosity
# bayes_ignore_header X-Spam-Flag
# bayes_ignore_header X-Spam-Status
#
#
header CITIBANK Body =~ /Citi/
score -100
header YAHOOGROUPS Reply-To =~ /yahoogroups.com/
score -100
So why isn't it rewriting the Subject header?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-29 23:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-29 21:22 [gentoo-user] OT - spamassassin not rewriting subject headers Michael Sullivan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox