Spamassassin not working

Discussion in 'General' started by hairydog2, Jul 11, 2008.

  1. hairydog2

    hairydog2 Member

    I was having problems with spamassassin not working, so I decided to upgrade to the latest version of ispconfig in the hope that it would sort it out. But it did not - it got worse! :-(

    I have changed to running spamd in the past. Right now mail does not seem to be being spamfiltered. And there are loads of errors if I restart postfix. Any suggestions? This is from mail.log after a postfix reload:

    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/Check.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 37) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::Check: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::Check" at (eval 38) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/HTTPSMismatch.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 39) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::HTTPSMismatch: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::HTTPSMismatch" at (eval 40) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/URIDetail.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 41) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::URIDetail: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::URIDetail" at (eval 42) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/Bayes.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 43) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::Bayes: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::Bayes" at (eval 44) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/BodyEval.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 45) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::BodyEval: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::BodyEval" at (eval 46) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/DNSEval.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 47) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::DNSEval: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::DNSEval" at (eval 48) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/HTMLEval.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 49) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::HTMLEval: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::HTMLEval" at (eval 50) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/HeaderEval.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 51) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::HeaderEval: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::HeaderEval" at (eval 52) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/MIMEEval.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 53) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::MIMEEval: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::MIMEEval" at (eval 54) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/RelayEval.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 55) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::RelayEval: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::RelayEval" at (eval 56) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/URIEval.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 57) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::URIEval: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::URIEval" at (eval 58) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/WLBLEval.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 59) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::WLBLEval: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::WLBLEval" at (eval 60) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/VBounce.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 61) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::VBounce: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::VBounce" at (eval 62) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/ImageInfo.pm in @INC (@INC contains: ../lib /usr/share/perl5 /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4) at (eval 63) line 1.
    Jul 11 14:00:26 hosting spamd[15925]: plugin: failed to create instance of plugin Mail::SpamAssassin::plugin::ImageInfo: Can't locate object method "new" via package "Mail::SpamAssassin::plugin::ImageInfo" at (eval 64) line 1.


    I am also seeing

    could not create INET socket on 127.0.0.1:783: Permission denied

    in the mail.log
     
    Last edited: Jul 11, 2008
  2. hairydog2

    hairydog2 Member


    hosting:/etc# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:45221 *:* LISTEN 19200/rpc.statd
    tcp 0 0 localhost:mysql *:* LISTEN 30408/mysqld
    tcp 0 0 localhost:spamd *:* LISTEN 15925/spamd.pid
    tcp 0 0 *:sunrpc *:* LISTEN 2766/portmap
    tcp 0 0 localhost:www *:* LISTEN 30189/apache2
    tcp 0 0 garden-hardware.co.:www *:* LISTEN 30189/apache2
    tcp 0 0 hdog.co.uk:www *:* LISTEN 30189/apache2
    tcp 0 0 hosting.hairydog.co:www *:* LISTEN 30189/apache2
    tcp 0 0 thefunnyside.co.uk:www *:* LISTEN 30189/apache2
    tcp 0 0 .:www *:* LISTEN 30189/apache2
    tcp 0 0 x-seal.co.uk:www *:* LISTEN 30189/apache2
    tcp 0 0 upvc-hardware.co.uk:www *:* LISTEN 30189/apache2
    tcp 0 0 stovesareus.co.uk:www *:* LISTEN 30189/apache2
    tcp 0 0 hosting.hairydog.co:www *:* LISTEN 30189/apache2
    tcp 0 0 hosting.hairydog.co.:81 *:* LISTEN 30040/ispconfig_htt
    tcp 0 0 .:domain *:* LISTEN 30342/named
    tcp 0 0 .:domain *:* LISTEN 30342/named
    tcp 0 0 .:domain *:* LISTEN 30342/named
    tcp 0 0 .:domain *:* LISTEN 30342/named
    tcp 0 0 garden-hardware.:domain *:* LISTEN 30342/named
    tcp 0 0 hdog.co.uk:domain *:* LISTEN 30342/named
    tcp 0 0 hosting.hairydog:domain *:* LISTEN 30342/named
    tcp 0 0 thefunnyside.co.:domain *:* LISTEN 30342/named
    tcp 0 0 .:domain *:* LISTEN 30342/named
    tcp 0 0 x-seal.co.uk:domain *:* LISTEN 30342/named
    tcp 0 0 upvc-hardware.co:domain *:* LISTEN 30342/named
    tcp 0 0 stovesareus.co.u:domain *:* LISTEN 30342/named
    tcp 0 0 hosting.hairydog:domain *:* LISTEN 30342/named
    tcp 0 0 hairydog.dh.byte:domain *:* LISTEN 30342/named
    tcp 0 0 localhost:domain *:* LISTEN 30342/named
    tcp 0 0 *:munin *:* LISTEN 3612/munin-node
    tcp 0 0 localhost:953 *:* LISTEN 30342/named
    tcp 0 0 *:smtp *:* LISTEN 30287/master
    tcp 0 0 garden-hardware.c:https *:* LISTEN 30189/apache2
    tcp 0 0 thefunnyside.co.u:https *:* LISTEN 30189/apache2
    tcp 0 0 .:https *:* LISTEN 30189/apache2
    tcp 0 0 upvc-hardware.co.:https *:* LISTEN 30189/apache2
    tcp 0 0 stovesareus.co.uk:https *:* LISTEN 30189/apache2
    tcp 0 0 hdog.co.uk:https *:* LISTEN 30040/ispconfig_htt

    tcp6 0 0 *:imaps *:* LISTEN 17752/couriertcpd
    tcp6 0 0 *:pop3s *:* LISTEN 17687/couriertcpd
    tcp6 0 0 *:pop3 *:* LISTEN 19431/couriertcpd
    tcp6 0 0 *:imap2 *:* LISTEN 20124/couriertcpd
    tcp6 0 0 *:ftp *:* LISTEN 30400/proftpd: (acc
    tcp6 0 0 *:ssh *:* LISTEN 18786/sshd
    tcp6 0 0 ip6-localhost:953 *:* LISTEN 30342/named
     
  3. hairydog2

    hairydog2 Member

    Spamassassin clean setup? Please help!

    Some progress! I discovered that spamc was no longer installed. apt-get install spamc worked, and now I don't get all the errors on reloading postfix.

    However, I still get

    spamd: could not create INET socket on 127.0.0.1:783: Permission denied


    and spam filtering just isn't happening

    Please, can anyone suggest what to do?

    Where are the default spamassassin config files? If I could maybe remove them all and start again, I might get it all to work

    Help!
     
  4. sk_kgs

    sk_kgs New Member

    My suggestion is Update the perl latest version & install required Perl modules.

    Siva
     
  5. hairydog2

    hairydog2 Member

    Is this the current version?

    Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8


    I thought that 5.10 was out but there isn't an apt-get package as far as I know.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Your spamd is looking for the "normal" SpamAssassin installation, not the one from ISPConfig.
    Try
    Code:
    apt-get install spamassassin
     
  7. hairydog2

    hairydog2 Member

    That gives me:


    spamassassin is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
     
  8. hairydog2

    hairydog2 Member

    Think I've fixed it!

    I changed the line in spamassassin.master.rc to read

    #| {SPAMASSASSIN_PATH} --prefs-file={PREFS_FILE}
    | /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamc

    then did an sql query to set all users to have u = "y"

    and changed one user's settings.

    Now it all seems to be working again
     

Share This Page