LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-13-2007, 04:15 AM   #1
Marc Thoelen
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Rep: Reputation: 0
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
 
Old 07-13-2007, 07:09 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 07-18-2007, 03:15 AM   #3
Marc Thoelen
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 07-18-2007, 08:15 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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.
 
Old 07-18-2007, 09:46 AM   #5
Marc Thoelen
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 07-18-2007, 04:27 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

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

Regards
 
Old 07-20-2007, 08:46 AM   #7
Marc Thoelen
LQ Newbie
 
Registered: Apr 2007
Posts: 8

Original Poster
Rep: Reputation: 0
ok,thanks. Very interesting doc !

Marc
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
To restart user session.Gnome environment rubendarioportillo Linux - Enterprise 2 10-31-2005 11:43 PM
Amavis Spamassassin Config, Where to change settings? schoeppchen Linux - General 1 08-15-2005 10:19 AM
HowTo "RedHat + Qmail + Vpopmail + SpamAssassin + AMaViS" spybreaker Linux - Software 0 05-25-2005 01:34 PM
Relay Server<-> GatewayServer<->filtering server: PostFix, amavis,spamassassin, cyrus admore Linux - General 0 11-02-2004 08:46 AM
Reinitialising environment variable without restart the machine yenonn Linux - Newbie 7 02-28-2003 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration