1

Topic: Resolved “Amavis::IO::FileHandle”

SA failed: Can’t locate object method “READ” via package “Amavis::IO::FileHandle”

Debian 5.0.7 (lenny)

Error in mail.err:

Dec 12 20:00:12 isp amavis[1667]: (01667-10) (!!)SA failed: Can’t locate object method “READ” via package “Amavis::IO::FileHandle” at /usr/local/share/perl/5.10.0/Mail/SpamAssassin/Message.pm line 143, line 35892. at (eval 94) line 420, line 35892.

Fixed with: Spamassasin Bug 6257 ( for amavised-new 2.6.1)

Diff :

--- amavisd~    2008-06-29 02:37:58.000000000 +0200
+++ amavisd    2009-12-11 18:18:23.000000000 +0100
@@ -20295,3 +20295,3 @@
my($which_section) = 'SA prepare';
-  my($data_representation) = 'GLOB';  # pass data to SA as ARRAY or a GLOB
+  my($data_representation) = 'ARRAY';  # pass data to SA as ARRAY or a GLOB
my($saved_umask) = umask; my($saved_pid) = $$;
Change /usr/sbin/amavisd-new

From:

sub call_spamassassin($$$) {
my($self,$msginfo,$lines) = @_;
my($mail_obj,$per_msg_status);
my($which_section) = 'SA prepare';
my($data_representation) = 'GLOB';  # pass data to SA as ARRAY or a GLOB
...

To:

sub call_spamassassin($$$) {
my($self,$msginfo,$lines) = @_;
my($mail_obj,$per_msg_status);
my($which_section) = 'SA prepare';
my($data_representation) = 'ARRAY';  # pass data to SA as ARRAY or a GLOB
...

/etc/init.d/amavis restart

Link is : http://www.andreaspollak.eu/2010/12/sa- … ilehandle/

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Resolved “Amavis::IO::FileHandle”

May i know which version of iRedMail and amavisd you use? So that i can fix it in iRedMail. Thanks. smile

3

Re: Resolved “Amavis::IO::FileHandle”

I had the same issue and this fixed the problem. I am currently using iRedAdmin-Pro v1.6.0 (LDAP) on Debian Lenny.