Re: Perl Module: libnet-smtp-server-perl
Andreas John <lists-qqKX2RIXbnLLeiHq/[email protected]> Sun, 28 May 2006 13:06:46 +0200
| Newsgroups | gmane.comp.isp.ispman.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi!
Joerg Delker wrote:
> Andreas John wrote:
>> The ISPMan agent droped it's work with an error:
>>
>> Can't call method "mail" on an undefined value at
>> /opt/ispman/bin/../lib/ISPMan/MailMan.pm line 21, <DATA> line 424.
>>
>> I apt-get install-ed "libnet-smtp-server-perl", this seems to fix the
>> problem (read: The error vanished). If my assumption is right, then it
>> should be added to the debian-package list.
>
> Hi Andreas,
>
> that's odd, because Net::SMTP (required at that point) is in the bundled
> libnet-1.19.tar.gz.
> Regarding Debian, that's provided by "perl-modules".
Maybe I forgot to mention that I went the Debian-provides-the-perl
modules way. The strange thing is that I did not change anything else,
the process lingered around and I simply restarted ispman-agent. The
agent stop'd when reaching the point of error and I had to restart it.
I dont use daemontools at the time and I don't think daemontools is the
good way to go, as would supress such errors ... I daemon should simply
not crash/stop, that's the better option ;)
> The package "libnet-smtp-server-perl" on the other hand provides
> Net::Server::Mail, which isn't used here.
> From your reported error message above, I rather get the impression that
> you provided a bogus/empty mailhost, that led to a undefined $smtp
> variable, which would explain that error.
Now that I re-read the above error-msg again, it really reads as if the
not the function is missing but rather the value of the agrument.
Reading line 21 of MailMan.pm: $hash->{'from'}. The $hash is taken from
the 1st argmnent of ARGV, right? (shift ... ; my $hash = shift)... Or
does the error above not necessarily have to do with the hash, but one
of the other values that are initialised before?
There comes the following line to my mind:
$mailhost = $self->getConfig("mailhost") || "localhost";
But localhost is definitely defined in /etc/hosts. I reads like there
should be a variable "mailhost" set in the ispman.conf.example, which
should be defaulted to localhost, nor? If so, could you add such to cvs?
rgds,
Andreas
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642