LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-18-2010, 11:43 PM   #1
rafalek
Member
 
Registered: Oct 2003
Posts: 43

Rep: Reputation: 15
amavis problem


Hi.

I install postfix with amavis-new few days ago, but every day I receive mail with following content:

Code:
/etc/cron.daily/amavisd-new:
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/BayesStore/SQL.pm line 133.
Use of uninitialized value $db_ver in numeric ne (!=) at /usr/share/perl5/Mail/SpamAssassin/BayesStore/SQL.pm line 135.
Use of uninitialized value $db_ver in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/BayesStore/SQL.pm line 136.
bayes: database version  is different than we understand (3), aborting! at /usr/share/perl5/Mail/SpamAssassin/BayesStore/SQL.pm line 136.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/BayesStore/SQL.pm line 180.
Use of uninitialized value $db_ver in numeric ne (!=) at /usr/share/perl5/Mail/SpamAssassin/BayesStore/SQL.pm line 182.
Use of uninitialized value $db_ver in concatenation (.) or string at /usr/share/perl5/Mail/SpamAssassin/BayesStore/SQL.pm line 183.
bayes: database version  is different than we understand (3), aborting! at /usr/share/perl5/Mail/SpamAssassin/BayesStore/SQL.pm line 183.
I use Ubuntu - server edition. Every packets are new.

Is somebody can help me to fix it?
I don't know if this is important but every mail I receive on this server is scored above 7

Thanks
 
Old 08-19-2010, 05:06 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
How did you install the whole spamassassin/amavisd thing?
It looks like you're using sql database to store bayes data and you miss the version value. If you're using mysql take a look at bayes_mysql.sql:
Quote:
CREATE TABLE bayes_expire (
id int(11) NOT NULL default '0',
runtime int(11) NOT NULL default '0',
KEY bayes_expire_idx1 (id)
) TYPE=MyISAM;

CREATE TABLE bayes_global_vars (
variable varchar(30) NOT NULL default '',
value varchar(200) NOT NULL default '',
PRIMARY KEY (variable)
) TYPE=MyISAM;

INSERT INTO bayes_global_vars VALUES ('VERSION','3');
Similar goes for postgreSQL.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Amavis Help glyn3332 Linux - Server 10 10-08-2008 04:28 PM
mail delivery problem while using amavis and postfix rajendranath Linux - Networking 2 01-02-2007 12:28 AM
Problem with amavis-milter + sendmail + clamav bhaveshvv109 Linux - General 0 06-21-2006 07:56 AM
Problem with amavis-stats Koven Linux - Software 1 02-23-2005 11:20 AM
amavis problem egyptian Linux - Networking 0 12-29-2004 04:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration