Spamassassin configuration files not working

Jimmi jimmi at libero.it
Fri Apr 29 12:50:55 CEST 2011


 Hi,

 I configured a mail server using Squeeze's latest packages with Posfix 
 + Amavisd-new + Clamav + Spamassassin, but apparently the latter is not 
 using the system configuration files, and I cannot figure out why.

 After starting spamd, using spamc the behaviour is correct, but from 
 amavis don't.

 Running amavis in debug mode I get the following:
 # /etc/init.d/amavis debug
 Trying to run amavisd-new in debug mode...
 Apr 28 16:01:08.291 [1427]: starting.  /usr/sbin/amavisd-new at 
 ******************* amavisd-new-2.6.4 (20090625), Unicode aware, 
 LANG="it_IT.UTF-8"
 Apr 28 16:01:08.291 [1427]: user=, EUID: 110 (110);  group=, EGID: 116 
 116 (116 116)
 Apr 28 16:01:08.291 [1427]: Perl version               5.010001
 Apr 28 16:01:08.376 [1427]: INFO: no optional modules: 
 IO::Socket::INET6
 Apr 28 16:01:08.377 [1427]: SpamControl: attempting to load scanner 
 SpamAssassin, module Amavis::SpamControl::SpamAssassin
 Apr 28 16:01:08.378 [1427]: SpamControl: scanner SpamAssassin, module 
 Amavis::SpamControl::SpamAssassin
 Apr 28 16:01:09.021 [1427]: INFO: SA version: 3.3.1, 3.003001, no 
 optional modules: Net::CIDR::Lite Encode::Detect IP::Country::Fast 
 Image::Info Image::Info::GIF Image::Info::JPEG Image::Info::PNG 
 Image::Info::TIFF Mail::SPF Mail::SPF::Server Mail::SPF::Request 
 Mail::SPF::Mech Mail::SPF::Mech::A Mail::SPF::Mech::PTR 
 Mail::SPF::Mech::All Mail::SPF::Mech::Exists Mail::SPF::Mech::IP4 
 Mail::SPF::Mech::IP6 Mail::SPF::Mech::Include Mail::SPF::Mech::MX 
 Mail::SPF::Mod Mail::SPF::Mod::Exp Mail::SPF::Mod::Redirect 
 Mail::SPF::SenderIPAddrMech Mail::SPF::v1::Record Mail::SPF::v2::Record
 Apr 28 16:01:09.021 [1427]: SpamControl: init_pre_chroot on 
 SpamAssassin done
 Apr 28 16:01:09.023 [1427]: Net::Server: 2011/04/28-16:01:09 Amavis 
 (type Net::Server::PreForkSimple) starting! pid(1427)
 Apr 28 16:01:09.030 [1427]: Net::Server: Binding to UNIX socket file 
 /var/lib/amavis/amavisd.sock using SOCK_STREAM
 Apr 28 16:01:09.031 [1427]: Net::Server: Binding to TCP port 10024 on 
 host 127.0.0.1
 Apr 28 16:01:09.032 [1427]: Net::Server: Group Not Defined.  Defaulting 
 to EGID '116 116'
 Apr 28 16:01:09.032 [1427]: Net::Server: User Not Defined.  Defaulting 
 to EUID '110'
 Apr 28 16:01:09.032 [1427]: Net::Server: Setting up serialization via 
 flock
 Apr 28 16:01:09.034 [1427]: after_chroot_init: EUID: 110 (110);  EGID: 
 116 116 (116 116)
 Apr 28 16:01:09.034 [1427]: config files read: 
 /usr/share/amavis/conf.d/10-debian_scripts, 
 /usr/share/amavis/conf.d/20-package, /etc/amavis/conf.d/01-debian, 
 /etc/amavis/conf.d/05-domain_id, /etc/amavis/conf.d/05-node_id, 
 /etc/amavis/conf.d/15-av_scanners, 
 /etc/amavis/conf.d/15-content_filter_mode, 
 /etc/amavis/conf.d/20-debian_defaults, 
 /etc/amavis/conf.d/25-amavis_helpers, 
 /etc/amavis/conf.d/30-template_localization, /etc/amavis/conf.d/50-user
 Apr 28 16:01:09.073 [1427]: Module Amavis::Conf        2.207
 Apr 28 16:01:09.073 [1427]: Module Archive::Zip        1.30
 Apr 28 16:01:09.074 [1427]: Module BerkeleyDB          0.42
 Apr 28 16:01:09.074 [1427]: Module Compress::Zlib      2.02
 Apr 28 16:01:09.074 [1427]: Module Convert::TNEF       0.17
 Apr 28 16:01:09.075 [1427]: Module Convert::UUlib      1.12
 Apr 28 16:01:09.075 [1427]: Module Crypt::OpenSSL::RSA 0.25
 Apr 28 16:01:09.075 [1427]: Module DBD::mysql          4.016
 Apr 28 16:01:09.076 [1427]: Module DBI                 1.612
 Apr 28 16:01:09.076 [1427]: Module DB_File             1.82
 Apr 28 16:01:09.077 [1427]: Module Digest::MD5         2.39
 Apr 28 16:01:09.077 [1427]: Module Digest::SHA         5.47
 Apr 28 16:01:09.077 [1427]: Module Digest::SHA1        2.13
 Apr 28 16:01:09.079 [1427]: Module MIME::Entity        5.428
 Apr 28 16:01:09.079 [1427]: Module MIME::Parser        5.428
 Apr 28 16:01:09.080 [1427]: Module MIME::Tools         5.428
 Apr 28 16:01:09.080 [1427]: Module Mail::DKIM::Verifier 0.38
 Apr 28 16:01:09.081 [1427]: Module Mail::Header        2.06
 Apr 28 16:01:09.081 [1427]: Module Mail::Internet      2.06
 Apr 28 16:01:09.081 [1427]: Module Mail::SpamAssassin  3.003001
 Apr 28 16:01:09.083 [1427]: Module Net::DNS            0.66
 Apr 28 16:01:09.084 [1427]: Module Net::Server         0.97
 Apr 28 16:01:09.084 [1427]: Module NetAddr::IP         4.028
 Apr 28 16:01:09.085 [1427]: Module Razor2::Client::Version 2.84
 Apr 28 16:01:09.085 [1427]: Module Time::HiRes         1.9719
 Apr 28 16:01:09.086 [1427]: Module URI                 1.54
 Apr 28 16:01:09.087 [1427]: Module Unix::Syslog        1.1
 Apr 28 16:01:09.087 [1427]: Amavis::DB code      loaded
 Apr 28 16:01:09.088 [1427]: Amavis::Cache code   loaded
 Apr 28 16:01:09.088 [1427]: SQL base code        loaded
 Apr 28 16:01:09.088 [1427]: SQL::Log code        NOT loaded
 Apr 28 16:01:09.088 [1427]: SQL::Quarantine      NOT loaded
 Apr 28 16:01:09.088 [1427]: Lookup::SQL code     loaded
 Apr 28 16:01:09.089 [1427]: Lookup::LDAP code    NOT loaded
 Apr 28 16:01:09.089 [1427]: AM.PDP-in proto code loaded
 Apr 28 16:01:09.089 [1427]: SMTP-in proto code   loaded
 Apr 28 16:01:09.089 [1427]: Courier proto code   NOT loaded
 Apr 28 16:01:09.090 [1427]: SMTP-out proto code  loaded
 Apr 28 16:01:09.090 [1427]: Pipe-out proto code  NOT loaded
 Apr 28 16:01:09.090 [1427]: BSMTP-out proto code NOT loaded
 Apr 28 16:01:09.090 [1427]: Local-out proto code loaded
 Apr 28 16:01:09.090 [1427]: OS_Fingerprint code  NOT loaded
 Apr 28 16:01:09.091 [1427]: ANTI-VIRUS code      loaded
 Apr 28 16:01:09.091 [1427]: ANTI-SPAM code       loaded
 Apr 28 16:01:09.091 [1427]: ANTI-SPAM-EXT code   NOT loaded
 Apr 28 16:01:09.091 [1427]: ANTI-SPAM-C code     NOT loaded
 Apr 28 16:01:09.092 [1427]: ANTI-SPAM-SA code    loaded
 Apr 28 16:01:09.092 [1427]: Unpackers code       loaded
 Apr 28 16:01:09.092 [1427]: DKIM code            NOT loaded
 Apr 28 16:01:09.092 [1427]: Tools code           NOT loaded
 Apr 28 16:01:09.093 [1427]: Found $file            at /usr/bin/file
 Apr 28 16:01:09.093 [1427]: No $altermime,         not using it
 Apr 28 16:01:09.094 [1427]: Internal decoder for .mail
 Apr 28 16:01:09.094 [1427]: No decoder for       .F
 Apr 28 16:01:09.094 [1427]: Found decoder for    .Z    at 
 /bin/uncompress
 Apr 28 16:01:09.095 [1427]: Internal decoder for .gz
 Apr 28 16:01:09.095 [1427]: Found decoder for    .gz   at /bin/gzip -d 
 (backup, not used)
 Apr 28 16:01:09.095 [1427]: Found decoder for    .bz2  at /bin/bzip2 -d
 Apr 28 16:01:09.096 [1427]: Found decoder for    .lzo  at /usr/bin/lzop 
 -d
 Apr 28 16:01:09.096 [1427]: No decoder for       .rpm  tried: 
 rpm2cpio.pl, rpm2cpio
 Apr 28 16:01:09.097 [1427]: Found decoder for    .cpio at /usr/bin/pax
 Apr 28 16:01:09.097 [1427]: Found decoder for    .cpio at /bin/cpio 
 (backup, not used)
 Apr 28 16:01:09.097 [1427]: Found decoder for    .tar  at /usr/bin/pax
 Apr 28 16:01:09.098 [1427]: Found decoder for    .tar  at /bin/cpio 
 (backup, not used)
 Apr 28 16:01:09.098 [1427]: Found decoder for    .deb  at /usr/bin/ar
 Apr 28 16:01:09.098 [1427]: Internal decoder for .zip
 Apr 28 16:01:09.099 [1427]: No decoder for       .7z   tried: 7zr, 7za, 
 7z
 Apr 28 16:01:09.099 [1427]: No decoder for       .rar  tried: 
 unrar-free
 Apr 28 16:01:09.100 [1427]: Found decoder for    .arj  at /usr/bin/arj
 Apr 28 16:01:09.100 [1427]: Found decoder for    .arc  at 
 /usr/bin/nomarch
 Apr 28 16:01:09.100 [1427]: Found decoder for    .zoo  at /usr/bin/zoo
 Apr 28 16:01:09.101 [1427]: No decoder for       .lha
 Apr 28 16:01:09.101 [1427]: No decoder for       .doc  tried: ripole
 Apr 28 16:01:09.101 [1427]: No decoder for       .cab  tried: 
 cabextract
 Apr 28 16:01:09.102 [1427]: No decoder for       .tnef
 Apr 28 16:01:09.102 [1427]: Internal decoder for .tnef
 Apr 28 16:01:09.102 [1427]: Found decoder for    .exe  at /usr/bin/arj
 Apr 28 16:01:09.103 [1427]: Using primary internal av scanner code for 
 ClamAV-clamd
 Apr 28 16:01:09.103 [1427]: No primary av scanner: KasperskyLab AVP - 
 aveclient
 Apr 28 16:01:09.104 [1427]: No primary av scanner: KasperskyLab 
 AntiViral Toolkit Pro (AVP)
 Apr 28 16:01:09.104 [1427]: No primary av scanner: KasperskyLab 
 AVPDaemonClient
 Apr 28 16:01:09.105 [1427]: No primary av scanner: CentralCommand 
 Vexira (new) vascan
 Apr 28 16:01:09.105 [1427]: No primary av scanner: Avira AntiVir
 Apr 28 16:01:09.105 [1427]: No primary av scanner: Command AntiVirus 
 for Linux
 Apr 28 16:01:09.106 [1427]: No primary av scanner: Symantec CarrierScan 
 via Symantec CommandLineScanner
 Apr 28 16:01:09.106 [1427]: No primary av scanner: Symantec AntiVirus 
 Scan Engine
 Apr 28 16:01:09.107 [1427]: No primary av scanner: F-Secure Antivirus 
 for Linux servers
 Apr 28 16:01:09.107 [1427]: No primary av scanner: CAI InoculateIT
 Apr 28 16:01:09.107 [1427]: No primary av scanner: CAI eTrust Antivirus
 Apr 28 16:01:09.108 [1427]: No primary av scanner: MkS_Vir for Linux 
 (beta)
 Apr 28 16:01:09.108 [1427]: No primary av scanner: MkS_Vir daemon
 Apr 28 16:01:09.108 [1427]: No primary av scanner: ESET Software ESETS 
 Command Line Interface
 Apr 28 16:01:09.109 [1427]: No primary av scanner: ESET NOD32 for Linux 
 File servers
 Apr 28 16:01:09.109 [1427]: No primary av scanner: Norman Virus Control 
 v5 / Linux
 Apr 28 16:01:09.110 [1427]: No primary av scanner: Panda 
 CommandLineSecure 9 for Linux
 Apr 28 16:01:09.110 [1427]: No primary av scanner: NAI McAfee AntiVirus 
 (uvscan)
 Apr 28 16:01:09.110 [1427]: No primary av scanner: VirusBuster
 Apr 28 16:01:09.111 [1427]: No primary av scanner: CyberSoft VFind
 Apr 28 16:01:09.111 [1427]: No primary av scanner: avast! Antivirus
 Apr 28 16:01:09.112 [1427]: No primary av scanner: Ikarus AntiVirus for 
 Linux
 Apr 28 16:01:09.112 [1427]: No primary av scanner: BitDefender
 Apr 28 16:01:09.112 [1427]: No primary av scanner: BitDefender
 Apr 28 16:01:09.113 [1427]: No primary av scanner: ArcaVir for Linux
 Apr 28 16:01:09.113 [1427]: Found secondary av scanner ClamAV-clamscan 
 at /usr/bin/clamscan
 Apr 28 16:01:09.113 [1427]: No secondary av scanner: F-PROT Antivirus 
 for UNIX
 Apr 28 16:01:09.113 [1427]: No secondary av scanner: FRISK F-Prot 
 Antivirus
 Apr 28 16:01:09.114 [1427]: No secondary av scanner: Trend Micro 
 FileScanner
 Apr 28 16:01:09.114 [1427]: No secondary av scanner: drweb - DrWeb 
 Antivirus
 Apr 28 16:01:09.114 [1427]: No secondary av scanner: Kaspersky 
 Antivirus v5.5
 Apr 28 16:01:09.114 [1427]: Using internal spam scanner code for 
 SpamAssassin
 Apr 28 16:01:09.119 [1427]: Creating db in /var/lib/amavis/db/; 
 BerkeleyDB 0.42, libdb 4.8
 Apr 28 16:01:09.174 [1427]: initializing Mail::SpamAssassin
 Apr 28 16:01:09.174 [1427]: SpamAssassin debug facilities: info
 Apr 28 16:01:18.752 [1427]: SA info: pyzor: [1439] error: TERMINATED, 
 signal 15 (000f)
 Apr 28 16:01:18.911 [1427]: SpamAssassin loaded plugins: AWL, 
 AutoLearnThreshold, Bayes, BodyEval, Check, DCC, DKIM, DNSEval, 
 FreeMail, HTMLEval, HTTPSMismatch, Hashcash, HeaderEval, ImageInfo, 
 MIMEEval, MIMEHeader, Pyzor, Razor2, RelayEval, ReplaceTags, SPF, 
 SpamCop, TextCat, URIDNSBL, URIDetail, URIEval, VBounce, WLBLEval, 
 WhiteListSubject
 Apr 28 16:01:18.912 [1427]: SpamControl: init_pre_fork on SpamAssassin 
 done
 Apr 28 16:01:18.913 [1427]: extra modules loaded after 
 daemonizing/chrooting: Mail/SpamAssassin/BayesStore/MySQL.pm, 
 Mail/SpamAssassin/BayesStore/SQL.pm, 
 Mail/SpamAssassin/Plugin/FreeMail.pm, 
 Mail/SpamAssassin/SQLBasedAddrList.pm
 Apr 28 16:01:18.915 [1427]: Net::Server: Beginning prefork (2 
 processes)
 Apr 28 16:01:18.916 [1427]: Net::Server: Starting "2" children
 Apr 28 16:01:18.921 [1440]: Net::Server: Child Preforked (1440)
 Apr 28 16:01:18.922 [1440]: entered child_init_hook
 Apr 28 16:01:18.933 [1441]: Net::Server: Child Preforked (1441)
 Apr 28 16:01:18.936 [1440]: TIMING [total 14 ms] - bdb-open: 14 
 (100%)100, rundown: 0 (0%)100
 Apr 28 16:01:18.938 [1440]: SpamControl: init_child on SpamAssassin 
 done
 Apr 28 16:01:18.939 [1441]: entered child_init_hook
 Apr 28 16:01:18.944 [1427]: Net::Server: Parent ready for children.
 Apr 28 16:01:18.949 [1441]: TIMING [total 10 ms] - bdb-open: 10 
 (100%)100, rundown: 0 (0%)100
 Apr 28 16:01:18.951 [1441]: SpamControl: init_child on SpamAssassin 
 done
 Apr 28 16:01:30.202 [1440]: SpamControl: rundown_child on SpamAssassin 
 done

 All the howtos I found on internet are confirming that the same 
 configuration files in /etc/spamassassin should work for amavis spam 
 fitering, except few options like required score, spam tags etc. An 
 exception could be when running in chroot environment, but in my 
 /etc/postfix/master.cf I have:
 amavis unix - - n - 2 smtp

 Anyhow I also verified that a symlink exists in /etc/mail/spamassassin 
 to the original configuration files.

 I cannot understand where the problem is: anyone has an indication?

 Thanks in advance
-- 
 Jimmi


More information about the amavis-users mailing list