View Single Post
  #1  
Old 8th November 2008, 19:39
gwa7 gwa7 is offline
Member
 
Join Date: Jan 2007
Posts: 34
Thanks: 2
Thanked 10 Times in 6 Posts
Default spamc/spamd quick setup for Ubuntu server

I just setup my Ubuntu server to use the spamc/spamd combination so I thought I would write this howto. Doing this reduced the load on my server and made spamassassin work faster. There is a lot of information about spamc/spamd on this forum, however I could not find one post that told me exactly what I needed to do. I am going to try to do that here. There may be better ways of doing this, but this worked for me. If you know a better way please let me know.

1. Install spamc.
Quote:
sudo aptitude install spamc
2. Then, edit /etc/default/spamassassin to enable startup of the spamd process. In this file, change:
Quote:
ENABLED=1
Also, do this at the bottom of the file:
Quote:
CRON=1
(the above is supposed to make sa-update run every night)

3. Start the spamd process:
Quote:
sudo /etc/init.d/spamassassin start
4. Edit this file: /root/ispconfig/isp/conf/spamassassin.rc.master and change
Quote:
| {SPAMASSASSIN_PATH} --prefs-file={PREFS_FILE}
to
Quote:
| /usr/bin/spamc
5. In ISPconfig change a setting on one user for each domain you have. (I had to do this to get Ispconfig to update the .spamassassin.rc file for every user in each domain.)

You should be finished now.

Notes:
Spamd should find the prefs file automatically in the homedir of the user. The current ISPConfig releases create a symlink for that.

Test new configuration: Start top on your server. Send send out a test email to users in all your domains. You should only see spamd in the list of processes. If you see spamassassin, make sure you did step 5 above.

While the steps above will take a lot of load off your server, converting to clamd will take even more load off. I believe both spamd and clamd are vital for busy servers.

Optional: You can add another spamassassin update channel to add more rules. This worked pretty well for me: http://saupdates.openprotect.com/

Hope this information helps someone. I appreciate all the help I have received here.
Thanks,
Gary

This information was collected from the following places:
This forum
http://samat.org/pages/speeding-up-s...nd-ubuntu.html
http://spamassassin.apache.org/

Last edited by gwa7; 5th January 2009 at 05:20. Reason: correction: /usr/bin/spamc
Reply With Quote
Sponsored Links