Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 8th November 2008, 19:39
gwa7 gwa7 is offline
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.
sudo aptitude install spamc
2. Then, edit /etc/default/spamassassin to enable startup of the spamd process. In this file, change:
Also, do this at the bottom of the file:
(the above is supposed to make sa-update run every night)

3. Start the spamd process:
sudo /etc/init.d/spamassassin start
4. Edit this file: /root/ispconfig/isp/conf/spamassassin.rc.master and change
| /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.

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.

This information was collected from the following places:
This forum

Last edited by gwa7; 5th January 2009 at 05:20. Reason: correction: /usr/bin/spamc
Reply With Quote
The Following 3 Users Say Thank You to gwa7 For This Useful Post:
falko (9th November 2008), Rasputin (19th February 2010), till (9th November 2008)
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Server, postfix, gmail relay sjau Server Operation 3 14th December 2010 19:20
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 17:59
Going to setup a small company server... but how? LINUXstarter Server Operation 13 23rd December 2007 19:33
Proper Environment Setup fishtenors Installation/Configuration 1 28th September 2007 19:09
Rejecting outbound mail tristanlee85 General 11 20th May 2007 18:04

All times are GMT +2. The time now is 03:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.