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
  #1  
Old 8th November 2008, 18: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 04: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
 

Bookmarks

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 18:20
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Going to setup a small company server... but how? LINUXstarter Server Operation 13 23rd December 2007 18:33
Proper Environment Setup fishtenors Installation/Configuration 1 28th September 2007 18:09
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04


All times are GMT +2. The time now is 10:15.


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