jump to navigation

Spamassassin on RHEL 4 (disable per user settings) April 6, 2008

Posted by daakeung in E-Mail, IT, Linux.
Tags: , , ,
trackback

Recently I have been working with a group, to move their email system from a shared solution to a dedicated server.

Setting up Spamassassin has yield some ups and down.
By default, Spamassassin has per-user settings enabled by default. So any configuration I was making via /etc/mail/spamassassin/local.cf wasn’t being applied properly, as they were over-ridden by user_prefs located in ./home/(user)/.spamassassin/

To disable spamasssassin from using per-user prefs, you need to set a parameter when starting it.

File you need to edit is /etc/sysconfig/spamassassin
# Options to spamd
SPAMDOPTIONS=”-d -c -m5 -H”

The option you need to add is -x

so the output look like this
# Options to spamd
SPAMDOPTIONS=”-x -d -c -m5 -H”
Save and restart spamassassin

service spamassassin restart

and you will be working only with the config located at /etc/mail/spamassassin/local.cf

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: