Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th July 2008, 15:08
hairydog2 hairydog2 is offline
Senior Member
 
Join Date: Oct 2005
Posts: 196
Thanks: 9
Thanked 3 Times in 2 Posts
Default 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:NSEval: Can't locate object method "new" via package "Mail::SpamAssassin::Plugin:NSEval" 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 by hairydog2; 11th July 2008 at 15:10. Reason: added info
Reply With Quote
Sponsored Links
  #2  
Old 11th July 2008, 15:16
hairydog2 hairydog2 is offline
Senior Member
 
Join Date: Oct 2005
Posts: 196
Thanks: 9
Thanked 3 Times in 2 Posts
Default


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 *op3s *:* LISTEN 17687/couriertcpd
tcp6 0 0 *op3 *:* 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
Reply With Quote
  #3  
Old 11th July 2008, 17:13
hairydog2 hairydog2 is offline
Senior Member
 
Join Date: Oct 2005
Posts: 196
Thanks: 9
Thanked 3 Times in 2 Posts
Default 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!
Reply With Quote
  #4  
Old 11th July 2008, 19:35
sk_kgs sk_kgs is offline
Junior Member
 
Join Date: Jul 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Spamassassin not working

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

Siva
Reply With Quote
  #5  
Old 11th July 2008, 22:06
hairydog2 hairydog2 is offline
Senior Member
 
Join Date: Oct 2005
Posts: 196
Thanks: 9
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by sk_kgs View Post
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.
Reply With Quote
  #6  
Old 12th July 2008, 12:01
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by hairydog2 View Post
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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 12th July 2008, 12:08
hairydog2 hairydog2 is offline
Senior Member
 
Join Date: Oct 2005
Posts: 196
Thanks: 9
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
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.
Reply With Quote
  #8  
Old 12th July 2008, 21:15
hairydog2 hairydog2 is offline
Senior Member
 
Join Date: Oct 2005
Posts: 196
Thanks: 9
Thanked 3 Times in 2 Posts
Default 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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPconfig 2.2.21 Load Averange Very High mmiyamoto General 3 6th March 2008 13:13
spamassassin not working - debian 3.1 fulltilt Installation/Configuration 4 13th August 2007 07:55
Question on Clamscan and SpamAssassin AZMel Installation/Configuration 3 11th January 2007 19:56
spamassassin stop working after woody to sarge update shark_tico Server Operation 1 19th October 2006 14:01
SpamAssassin stops working heygazeebo HOWTO-Related Questions 19 19th June 2006 08:15


All times are GMT +2. The time now is 13:14.


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