HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Spamassassin not working (http://www.howtoforge.com/forums/showthread.php?t=25015)

hairydog2 11th July 2008 15:08

Spamassassin not working
 
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

hairydog2 11th July 2008 15:16


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

hairydog2 11th July 2008 17:13

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!

sk_kgs 11th July 2008 19:35

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

Siva

hairydog2 11th July 2008 22:06

Quote:

Originally Posted by sk_kgs (Post 135546)
My suggestion is Update the perl latest version & install required Perl modules.

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.

falko 12th July 2008 12:01

Quote:

Originally Posted by hairydog2 (Post 135505)
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.

Your spamd is looking for the "normal" SpamAssassin installation, not the one from ISPConfig.
Try
Code:

apt-get install spamassassin

hairydog2 12th July 2008 12:08

Quote:

Originally Posted by falko (Post 135616)
Your spamd is looking for the "normal" SpamAssassin installation, not the one from ISPConfig.
Try
Code:

apt-get install spamassassin

That gives me:


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

hairydog2 12th July 2008 21:15

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


All times are GMT +2. The time now is 10:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.