HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Tips/Tricks/Mods (http://www.howtoforge.com/forums/forumdisplay.php?f=19)
-   -   calling on spamc? (http://www.howtoforge.com/forums/showthread.php?t=7565)

pjaric 19th October 2006 07:02

calling on spamc?
 
I've been trying to get the mail to go throught spamc/spamd rather than spamassassin, but no luck.

I've selected enable Spamd in /etc/default/spamassassin and changed the .spamassassin.rc where it use to say:
:0fw
* < 256000
| /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin

now it is

:0fw
* < 256000
| /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamc

The mails do not get scanned. What other file can I look at to change this?

till 19th October 2006 10:34

1) /etc/default/spamassassin is not the config file for the ISPConfig spamassassin. The config file is in/home/admispconfig/ispconfig/tools/spamassassin/etc/

2) The ISPConfig spamd is not started and there is no start script for it, because ISPConfig does not use it.

3) The main problem with spamc is and thats why it is not enabled in ISPConfig is that spamd is not able to read the spamassassin preferences file that ISPConfig uses because spamc does not ahve a parameter to provide the location of the user_prefs file.

pjaric 20th October 2006 03:51

Thanks for the answer. Make sense to me now even thought I was beating my head against the wall trying to make it work.

Is it possible to activate spamd and have it read another file, something that IspConfig does not create?

till 20th October 2006 11:56

What you might try is this:

1) Install spamc / spamd from your linux distribution and make shure it is automatically started at boot time.

2) insert the path to the spamc program from your linux distribution in the file .spamassassin.rc instead of the ISPConfig spamc path.

This will enable spamd with your global spamassassin settings.

To use the settings from ISPConfig, you can try to create a symlink inside of the subdirectory .spamassassin that can be found in each users home directory like this:

Quote:

ln -s ../.user_prefs .user_prefs

pjaric 20th October 2006 17:47

I installed spamd and it works well now after the modifications.

The problem I am having is that it is not reading any user_prefs file, nor any local.cf file.

The mail is being scanned with 5.0 as required hits no matter what changes I make in any of the user_pref files. It seems that the default is 5 but I do not know where it is reading it from.

Also, if I stay with ISPconfig's spamassassin rather than spamce, where do I install RulesDuJour? /etc/mail/spamassassin? or under /home/admispconfig/......./spamassassin?

till 21st October 2006 13:07

If you use the ISPConfig spamassassin, you must do all modifications and installations in /home/admispconfig/......./spamassassin

jmroth 7th August 2007 03:20

Quote:

Originally Posted by pjaric
The problem I am having is that it is not reading any user_prefs file, nor any local.cf file.

I see the post is quite old, but it helped me a lot today.
As a remark: the actual user_prefs file is called user_prefs and not .user_prefs (no dot)

So the command is
Code:

ln -s ../.user_prefs user_prefs
(works only for users which are not domain administrators anyway)
for them you have to point the link somewhere else
Code:

ln -s ../user/<username>/.user_prefs user_prefs
Currently I have not yet hacked the ispconfig scripts to do that. I leave that as an exercise ;-)

tafkaz 10th September 2007 17:01

Howto get spamd running with ispconfig ?
 
Hi there.
I tried to find some answer in the forum, but either i am to dumb to find it or there is nothing availlable here, that explains how to make ispconfig use spamc/spamd instead of spamassassin as default for all mail on the server.
We updated to the neweset (2.2.16) version today, hoping thet spamd would now be working.
We have an incredible amount of load here, just because spamassassin takes over all the potential of our server.
We allready changed to clamd, that was easy....

Any help ?

Thanx very much in advance !

till 10th September 2007 17:15

ISPConfig does not support spamd out of the box. To use spamd, install spamd from your linux distribution on your server and then change the spamassassin procmail recipe in /root/ispconfig/isp/conf/ to use the your spamd. All new or updated users will use the new configuration.

tafkaz 10th September 2007 17:22

Hi Till.
Many thanks for your reply


So in /root/ispconfig/isp/conf/spamassassin.rc.master i would change this line:

:0fw
* < 256000
| /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --prefs-file={PREFS_FILE}

to:


:0fw
* < 256000
| //usr/bin/spamc --prefs-file={PREFS_FILE}


Would that be correct ?
And how would i best update every existing user to use spamc then ?


Thanks again for your help !
Sascha


All times are GMT +2. The time now is 13:23.

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