I wonder if anyone is actually running SpamAssassin with Postfix/Amavisd-new under CentOS-6.4 . I have followed the instructions in <http://wiki.centos.org/HowTos/Amavisd> but as far as I can see SpamAssassin is not working. I should say that I do not understand from this document what is meant to happen to spam. I understand that a Spam header is added, but what actually happens to email considered to be spam? When I run spamassin --lint I get the response --------------------------------- [tim at alfred ~]$ sudo spamassassin --lint Jul 12 21:59:15.538 [19228] warn: config: failed to parse, now a plugin, skipping, in "/etc/mail/spamassassin/local.cf": ok_languages en it fr de ga --------------------------------- But this is exactly where the ok_languages line is meant to go, according to <http://wiki.apache.org/spamassassin/ImproveAccuracy>. -- Timothy Murphy e-mail: gayleard /at/ eircom.net tel: +353-86-2336090, +353-1-2842366 School of Mathematics, Trinity College, Dublin 2, Ireland
On Sat, 13 Jul 2013 00:20:51 +0200 Timothy Murphy wrote:> I wonder if anyone is actually running SpamAssassin > with Postfix/Amavisd-new under CentOS-6.4 . > I have followed the instructions in > <http://wiki.centos.org/HowTos/Amavisd> > but as far as I can see SpamAssassin is not working.I run spamassassin and postfix on my mailserver, but don't run amavisd. spamassassin adds a header to incoming email that looks something like this: X-Spam-Status: No, score=-103.5 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,USER_IN_WHITELIST autolearn=ham version=3.3.1 If the incoming message meets the points threshold that you have set to determine that the message is spam (defaults to 5.0) then the default setting is that the word [SPAM] (including the square brackets) is prepended to the message subject like, like this: Subject: [SPAM] Buy Viagra from a Nigerian Prince You can then configure your mail client to trash or sort email based on the presence or absence of the [SPAM] tag in the subject line. -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
On 7/12/2013 6:20 PM, Timothy Murphy wrote:> I wonder if anyone is actually running SpamAssassin > with Postfix/Amavisd-new under CentOS-6.4 . > I have followed the instructions in > <http://wiki.centos.org/HowTos/Amavisd> > but as far as I can see SpamAssassin is not working. > > I should say that I do not understand from this document > what is meant to happen to spam. > I understand that a Spam header is added, > but what actually happens to email considered to be spam? > > When I run spamassin --lint I get the response > --------------------------------- > [tim at alfred ~]$ sudo spamassassin --lint > Jul 12 21:59:15.538 [19228] warn: config: failed to parse, now a plugin, > skipping, in "/etc/mail/spamassassin/local.cf": ok_languages en it fr de ga > --------------------------------- > But this is exactly where the ok_languages line is meant to go, > according to > <http://wiki.apache.org/spamassassin/ImproveAccuracy>. >IIRC, SpamAssassin is run from Amavisd-new so the regular SA daemon does not run on its own. -- John Hinton 877-777-1407 ext 502 http://www.ew3d.com Comprehensive Online Solutions
On 07/13/2013 01:20 AM, Timothy Murphy wrote:> I wonder if anyone is actually running SpamAssassin > with Postfix/Amavisd-new under CentOS-6.4 . > I have followed the instructions in > <http://wiki.centos.org/HowTos/Amavisd> > but as far as I can see SpamAssassin is not working. > > I should say that I do not understand from this document > what is meant to happen to spam. > I understand that a Spam header is added, > but what actually happens to email considered to be spam? > > When I run spamassin --lint I get the response > --------------------------------- > [tim at alfred ~]$ sudo spamassassin --lint > Jul 12 21:59:15.538 [19228] warn: config: failed to parse, now a plugin, > skipping, in "/etc/mail/spamassassin/local.cf": ok_languages en it fr de ga > --------------------------------- > But this is exactly where the ok_languages line is meant to go, > according to > <http://wiki.apache.org/spamassassin/ImproveAccuracy>. >Hi! I have this setup working on my servers. Followed the above HowTo. Those can be useful too ( [1] , [2] ). If you have non marked spam messages, see what the headers are. spamassassin should be off in chkconfig. Amavis starts its own plugin. (When you check status it says spamd is stopped all the time) Your domain should be listed in @local_domains_maps. What happens to spam: $sa_tag2_level_deflt -> Adds $sa_spam_subject_tag to subject and passes the message (on client you can add a filter what to do with those messages) $sa_kill_level_deflt -> triggers spam evasive actions $final_spam_destiny -> says what to be the evasive action (I think :) ) It appeared amavis is chrooted in CentOS-6.4 by default so user_prefs are in /var/spool/amavisd/var/.spamassassin/, if you need more configurations (/etc/mail/spamassassin/local.cf can be used to). amavisd.conf rewrites common values from both. In [1] -> "SpamAssassin returns different score" part is interesting for testing. [1] http://www.ijs.si/software/amavisd/#faq-spam [2] http://wiki.apache.org/spamassassin/FrequentlyAskedQuestions HTH, Larry