LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to restart spamassassin in an Amavis-environment ? (https://www.linuxquestions.org/questions/linux-server-73/how-to-restart-spamassassin-in-an-amavis-environment-568980/)

Marc Thoelen 07-13-2007 04:15 AM

How to restart spamassassin in an Amavis-environment ?
 
Hello,

I urgently need to restart Spamassassin since it stops too much mail. However i dont see a kind of 'spam-daemon': no spamd or whatsoever. Now i read someplace that in an Amavis(-new) environment, Spamassassin no longer uses it's own daemon. So the question is: how do i force Spamassassin to re-read the /etc/mail/spamassassin/local.cf-file (containing the local settings).
I tried to issue 'amavisd reload' (as i was told by someone) but to no avail...

Marc

bathory 07-13-2007 07:09 AM

Quote:

So the question is: how do i force Spamassassin to re-read the /etc/mail/spamassassin/local.cf-file (containing the local settings).
When you use amavisd with spamassassin, then there is no need for spamassassin to run and the modifications made in its' confioguration are not used by amavisd. What you need to do if you miss legit emails (that are considered spam from amavisd) is to increase the "sa_kill_level_deflt" in amavisd.conf and then restart amavisd.

Regards

Marc Thoelen 07-18-2007 03:15 AM

Hi and thanks for your reply.
Indeed i can increase the kill-level of all mails, but i this case i merely want to change some small items, and change the blacklists and/or whitelists.
I assume i still have to do this in the local.cf-file that is used by spamassassin ?
And then i still have the question: how to force spamassassin or amavisd to read this local conf.-file...

Thanks in advance...

Marc

bathory 07-18-2007 08:15 AM

You can tweak local.cf to your liking and spamassassin will use it to give a score to emails. That score is then passed to amavisd to decide what to do with the emails according to the settings in amavisd,conf. So the changes you make at spamassassin's local.cf are passed to amavisd. But there is no need to restart amavisd if you change things in local.cf.

Marc Thoelen 07-18-2007 09:46 AM

ok, thanks; that suggests that spamassassin reads it's local.cf file everytime it checks an email for spam. Anyhow i just changed a few small things, and will try out the effects.
Until now i only managed to get the local.cf settings enforced by 'rebooting' the whole server, but of course that should not be the standard way of working, is it ..

Marc

bathory 07-18-2007 04:27 PM

I think you should take a look at this article and specifically the Mail::Spamassassin topic.

Regards

Marc Thoelen 07-20-2007 08:46 AM

ok,thanks. Very interesting doc !

Marc


All times are GMT -5. The time now is 08:58 PM.