Koozali.org: home of the SME Server

smtpfront-qmail error from amavis

mbachmann

smtpfront-qmail error from amavis
« on: March 10, 2004, 12:11:58 PM »
tail /var/log/smtpfront-qmail shows errors resulting from amavis (6.0).

@400000004043312b12408604 Use of uninitialized value in undef operator at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/MTA/Qmail.pm line 41
7, <GEN4> line 78.

@400000004043312c302e7324 Use of uninitialized value in undef operator at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/MTA/Qmail.pm line 41
7, <GEN4> line 417.

And line 417 does not exist.

It seems related to this post: http://forums.contribs.org/index.php?topic=17654.msg68953#msg68953
But the deliviery does not stop nor are messages put to the problmes directory.

Offline allun

  • ***
  • 46
  • +0/-0
    • http://www.protechnz.com
smtpfront-qmail error from amavis
« Reply #1 on: January 07, 2005, 02:58:11 AM »
Hi,

did you get any resolution on this?

I have the same issue (everything seems to work OK though)

Cheers

A.
...

Offline allun

  • ***
  • 46
  • +0/-0
    • http://www.protechnz.com
smtpfront-qmail error from amavis
« Reply #2 on: January 09, 2005, 05:28:25 AM »
Actually I lied...i have a SIMILAR issue....

I get:

Use of uninitialized value in undef operator at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/MTA/Qmail.pm line 421, <GEN4> line 51.

and in my qmail.pm, line 421 and 422 are as shown below:

    $ENV{PATH}  = '/bin:/usr/bin:/sbin:/usr/sbin';
    undef $ENV{QMAILQUEUE};

hmmm... perl experts out there - what the heck does that error mean?
...

mbachmann

smtpfront-qmail error from amavis
« Reply #3 on: January 10, 2005, 08:37:06 AM »
It was fixed with a recent version of amavis (from Knudsen) and e-smith-email-4.15.0-07gr07.

Offline allun

  • ***
  • 46
  • +0/-0
    • http://www.protechnz.com
smtpfront-qmail error from amavis
« Reply #4 on: January 10, 2005, 11:30:41 AM »
I have the latest version of amavis available from jesper's site, but had an older e-smith-email (e-smith-email-4.14.0-07gr1).

I have installed the latest e-smith-email and it's dependencies.....same error.....different line now!

Use of uninitialized value in undef operator at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/MTA/Qmail.pm line 421, <GEN4> line 33.

Bugger.

Well at least it doesn't seem to be harmful, infected mail gets trapped and clean mail gets through...but it's a loose end that i want to tidy up :-)

Thanks for the help!
...

mbachmann

smtpfront-qmail error from amavis
« Reply #5 on: January 10, 2005, 01:12:31 PM »
Then i only thought it was fixed through that and am not correct. Skimmed through the current log and have seen no errors. Possible candidats:

perl-CGI-FormMagick-0.89-09 (evil)
perl-Mail-RFC822-Address-0.3-1
perl-MailTools-1.61-1

Offline allun

  • ***
  • 46
  • +0/-0
    • http://www.protechnz.com
smtpfront-qmail error from amavis
« Reply #6 on: January 10, 2005, 11:18:56 PM »
Hmmm have checked those packages and tried upgrades..... and dammit still the same error.

I also tried (just for fun!) installing from scratch (using jesper knudsen's install script) on yet another SME6.0 server and i get the same thing!  

Well, I am going to go away and have a real good look at what other perl and mail contribs are on theses servers that may be a common factor here.....
...

Offline gregswallow

  • *
  • 651
  • +1/-0
smtpfront-qmail error from amavis
« Reply #7 on: January 11, 2005, 01:32:52 AM »
Try this:

replace:
undef $ENV{QMAILQUEUE};
with:
$ENV{QMAILQUEUE}=undef;
or
delete $ENV{QMAILQUEUE};

...similar problem/solution here:  http://coding.derkeiler.com/Archive/Perl/comp.lang.perl.misc/2003-10/0572.html

Offline allun

  • ***
  • 46
  • +0/-0
    • http://www.protechnz.com
smtpfront-qmail error from amavis
« Reply #8 on: January 11, 2005, 04:59:12 AM »
at around line 421 of Qmail.pm I tried replacing:

Code: [Select]
undef $ENV{QMAILQUEUE};
with
Code: [Select]
$ENV{QMAILQUEUE}=undef;
and got a different error....
Code: [Select]
Use of uninitialized value in scalar assignment at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/MTA/Qmail.pm line 423, <GEN4> line 34.

BUT, when i used
Code: [Select]
delete $ENV{QMAILQUEUE};

The error is gone, clean and infected mails are dealt with in the appropriate way, and i'm a happy chappy!

 :-D  :-D  :-D  :-D  :-D  :-D  :-D  :-D  :-D

Many thanks to both of you - quite often with a problem like this that goes on for a while it's good motivation to keep digging for the answer if you get fresh ideas from the community....And of course there's always the altruistic hope that by posting the final solution here it will help someone else!
...

Offline gregswallow

  • *
  • 651
  • +1/-0
smtpfront-qmail error from amavis
« Reply #9 on: January 11, 2005, 08:22:49 AM »
OK, so I'm not sure who's contrib that was that you were using allun, but maybe you could pass that fix along to the author :-)

Offline allun

  • ***
  • 46
  • +0/-0
    • http://www.protechnz.com
smtpfront-qmail error from amavis
« Reply #10 on: January 12, 2005, 05:01:39 AM »
Of course - I have emailed Jesper Knudsen, but i believe it's some other contrib or mod i have made to these servers rather than a real "problem" with his packages.....

Stangely though, since finding out how to fix the problem i have proceeded to install amavis/clam on 4 of the the other servers i look after, and each one has needed the same fix!  

Not that that proves much, because i tend to install the same set of contribs on any SME server....I will try to track down the common factor.
...

paul_sc

smtpfront-qmail error from amavis
« Reply #11 on: July 09, 2005, 11:24:07 PM »
Hi all...is anyone else still having issues with uninitialized value's?

I did the following fix...


Quote

delete $ENV{QMAILQUEUE};  
The error is gone, clean and infected mails are dealt with in the appropriate way


All was working fine until this AM.

I now get the following error


2005-07-07 05:18:53.731973500 Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/MTA/Qmail.pm line 132.
2005-07-07 05:18:53.732159500 Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/MTA/Qmail.pm line 135.
2005-07-07 05:18:53.732201500 Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/MTA/Qmail.pm line 147.

Entries in my Spam RBL black list are being let through again. any ideas of where to start to look?

The only thing I notice, and have no idea if it is related, is an auto update/install of e-smith-USA-0.4.0-1 was performed a few hours before the error started to occur.

Thanks

Offline raem

  • *
  • 3,972
  • +4/-0
smtpfront-qmail error from amavis
« Reply #12 on: July 10, 2005, 03:48:32 AM »
paul_sc

>...an auto update/install of e-smith-USA-0.4.0-1

Try the later version
e-smith-USA-0.4.1-1.noarch.rpm
...

paul_sc

smtpfront-qmail error from amavis
« Reply #13 on: July 10, 2005, 04:19:32 AM »
Thank you for the response Ray.

It appears I copied the wrong line from my log...I in fact do have 4.1-1 installed...at least according to the email update and in my rpm list.

Subject: SpamAssassin was updated
   
The following updates have been downloaded and installed:
  - e-smith-USA-0.4.1-1.noarch.rpm

regards,
The automatic SpamAssassin updater

I went ahead and re-installed the RPM deleted and added the rbl entires with the hope that it will be back to normal. If not, I will report back.

Thanks again

paul_sc

smtpfront-qmail error from amavis
« Reply #14 on: July 11, 2005, 01:31:28 AM »
It does not appear that re-installing the rpm nor deleting/adding the rbl entries made a difference.  :hammer: