Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: mbachmann 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.
-
Hi,
did you get any resolution on this?
I have the same issue (everything seems to work OK though)
Cheers
A.
-
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?
-
It was fixed with a recent version of amavis (from Knudsen) and e-smith-email-4.15.0-07gr07.
-
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!
-
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
-
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.....
-
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
-
at around line 421 of Qmail.pm I tried replacing:
undef $ENV{QMAILQUEUE};
with
$ENV{QMAILQUEUE}=undef;
and got a different error....
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
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!
-
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 :-)
-
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.
-
Hi all...is anyone else still having issues with uninitialized value's?
I did the following fix...
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
-
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
-
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
-
It does not appear that re-installing the rpm nor deleting/adding the rbl entries made a difference. :hammer:
-
here is a related error I got on an SME6RC1 after installing and running clamd/amavis, without problems for a month, and then:
from /var/log/clamav/clamd.log
Sep 22 06:49:13 e6rc1 amavis[30004]: AMAVIS::AV::CLAMD: Cannot connect to /var/lib/clamav/clamd.sock.
from /var/log/smtpfront-qmail/current:
2005-09-22 06:49:13.263332500 Use of uninitialized value in undef operator at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/MTA/Qmail.pm line 417, <GEN4> line 80.
the clamd daemon died and amavis-ng dumped all mail into
/var/spool/amavis-ng/problems
until I started the clamd daemon again.
It is really helpful to have a daemontools version of
clamd as in the new SME7bx series.
Anthony[/img][/b]