How to restart spamassassin in an Amavis-environment ?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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.
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...
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.
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 ..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.