Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th January 2008, 16:25
Fruchtzwerg Fruchtzwerg is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Spamd/Spamc configuration with latest version

Hello,

I have read various posts about spamd/spamc with ispconfig, but there are some users with problems and it is not clear what to change. In one post its written ispconfig would support spamd/spamc now. Does anyone have a tutorial to enable this functionality or is it detected automatically by ispconfig?

Best regards
Fruchti
Reply With Quote
Sponsored Links
  #2  
Old 11th January 2008, 09:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

ISPConfig is writing only the nescessary per user configuration for spamd. Aditionally, you will have to install spamd from your linux distribution and the switch from spamassassin to the spamd binary of your linux distribution in /root/ispconfig/isp/conf/spamassassin.rc.master. All new ot updated users will use spamd then.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 6th February 2008, 23:42
timbe timbe is offline
Junior Member
 
Join Date: Dec 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So all one would do to switch is open up

/home/ispconfig/isp/conf/spamassassin.rc.master

and change

| /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --prefs-file={PREFS_FILE}

to

| /usr/sbin/spamd --prefs-file={PREFS_FILE}

and resave all the user's preferences

correct?
Reply With Quote
  #4  
Old 7th February 2008, 11:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Yes, nearly The spamd program does not understand the --prefs-file switch, so you have to change from:

| /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --prefs-file={PREFS_FILE}

to:

| /usr/sbin/spamd

Spamd should find the prefs file automatically in the homedir of the user. The current ISPConfig releases create a symlink for that.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 4th March 2008, 02:12
timbe timbe is offline
Junior Member
 
Join Date: Dec 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Since I have done this, Spam is being filtered but does not include the ruleset that I have downloaded (via rules_du_jour) which worked perfectly before

sa-learn + rules_ju_jour = kicked butt on our server

also is there an easy way to setup a mailbox to send to have spamassassin learn?

Thanks for your time
Reply With Quote
  #6  
Old 6th March 2008, 18:33
timbe timbe is offline
Junior Member
 
Join Date: Dec 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any thoughts?
Reply With Quote
  #7  
Old 7th March 2008, 09:03
jbravo jbravo is offline
Member
 
Join Date: Nov 2007
Location: Poland
Posts: 81
Thanks: 12
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by timbe
Since I have done this, Spam is being filtered but does not include the ruleset that I have downloaded (via rules_du_jour) which worked perfectly before

sa-learn + rules_ju_jour = kicked butt on our server
Are these different from rules located in
Code:
/usr/share/spamassassin
These rules are being automatically used by spamd.

Quote:
Originally Posted by timbe
also is there an easy way to setup a mailbox to send to have spamassassin learn?
Personally i use different way - mod ispconfig to move spam into Spam maildir or move there spam with imap client and create cron job to sa-learn from this folder (for every user you want to do it).
Then spamd will use bayes db for every user you'll enable this. Note that you should learn at least about 200 messages of every type (ham & spam) to start bayes working.
__________________
--
GreetZ .:JbRaVo:.
ISPConfig 3.0.5.2 @ mail&web @ RHEL6.4,
ISPConfig 2.2.29@mailsrv & 2.2.38@websrv @ SLES10SP4
Reply With Quote
  #8  
Old 9th March 2008, 17:22
timbe timbe is offline
Junior Member
 
Join Date: Dec 2007
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I guess the question I am asking is.

Before spamc/spamd My custom rules where in.

/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin

now after the simple switch. I feel like my rules are ignored.

I have the same rules in

/home/admispconfig/ispconfig/tools/spamassassin/etc/mail/spamassassin

symlinked to

/etc/mail/spamassassin

and also symlinked to

/etc/spamassassin

It feels like the filtering is back to stock and my custom rulesets are "ignored"

Thoughts?
Reply With Quote
  #9  
Old 10th March 2008, 08:56
jbravo jbravo is offline
Member
 
Join Date: Nov 2007
Location: Poland
Posts: 81
Thanks: 12
Thanked 3 Times in 2 Posts
Default

This is the place you find everyting about spamassassin:
http://wiki.apache.org/spamassassin/...AskedQuestions

Sitewide rules comes with SpamAssasin are in /usr/share/spamassassin and updated with sa-update command are in /var/lib/spamassassin/<version>.
__________________
--
GreetZ .:JbRaVo:.
ISPConfig 3.0.5.2 @ mail&web @ RHEL6.4,
ISPConfig 2.2.29@mailsrv & 2.2.38@websrv @ SLES10SP4
Reply With Quote
  #10  
Old 11th March 2008, 09:35
stpe stpe is offline
Junior Member
 
Join Date: Sep 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I have upgrade to ispconfig 2.2.21 on Debian and enabled spamd
now my spamassassin is not working any longer.
What is the different between use spamd or spamc in spamassassin.rc?
Not all user have got the symlink to user_prefs file ?
Please help

/etc/default/spamassassin
Code:
# /etc/default/spamassassin
# Duncan Findlay

# WARNING: please read README.spamd before using.
# There may be security risks.

# Change to one to enable spamd
ENABLED=1

# Options
# See man spamd for possible options. The -d option is automatically added.

# SpamAssassin uses a preforking model, so be careful! You need to
# make sure --max-children is not set to anything higher than 5,
# unless you know what you're doing.

OPTIONS="--create-prefs --max-children 5 --helper-home-dir"

# Pid file
# Where should spamd write its PID to file? If you use the -u or
# --username option above, this needs to be writable by that user.
# Otherwise, the init script will not be able to shut spamd down.
PIDFILE="/var/run/spamd.pid"

# Set nice level of spamd
#NICE="--nicelevel 15"
/root/ispconfig/isp/conf/spamassassin.rc.master
Code:
# SpamAssassin sample procmailrc
#
# Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
# if you use the spamc/spamd combination)
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
:0fw
* < 256000
| /usr/sbin/spamc
# | /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --prefs-file={PREFS_FILE}

# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*
/dev/null

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "/dev/null".
{SPAM_COMMENT}:0:
{SPAM_COMMENT}* ^X-Spam-Status: Yes
{SPAM_COMMENT}/dev/null

# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped.  This will re-add it.
:0
* ^^rom[ ]
{
  LOG="*** Dropped F off From_ header! Fixing up. "

  :0 fhw
  | sed -e '1s/^/F/'
}
/var/log/mail.err
Code:
Mar 11 09:17:03 isp01 spamd[1247]: spamd: could not create INET socket on 127.0.0.1:783: Permission denied 
Mar 11 09:17:12 isp01 spamd[1286]: spamd: could not create INET socket on 127.0.0.1:783: Permission denied 
Mar 11 09:19:22 isp01 spamd[1403]: spamd: could not create INET socket on 127.0.0.1:783: Permission denied 
Mar 11 09:20:40 isp01 spamd[1492]: spamd: could not create INET socket on 127.0.0.1:783: Permission denied 
Mar 11 09:21:15 isp01 spamd[1561]: spamd: could not create INET socket on 127.0.0.1:783: Permission denied 
Mar 11 09:21:16 isp01 spamd[1565]: spamd: could not create INET socket on 127.0.0.1:783: Permission denied
Reply With Quote
Reply

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
debian stable packages often not latest production version rjamesd Smalltalk 2 12th November 2007 16:51
Need help with ATI's graphics driver installer Wraithfire Installation/Configuration 25 16th June 2007 13:33
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19
Problems installing NForce4 sound drivers Wraithfire Installation/Configuration 21 16th April 2006 17:30
KErnel not showing all my memory Jorem Kernel Questions 8 13th April 2006 12:59


All times are GMT +2. The time now is 02:39.


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