You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Matthias Fuhrmann <Ma...@stud.uni-hannover.de> on 2006/01/29 22:13:09 UTC

Sys Hostname Long.pm

Hello,

recently i see many of those lines in our syslog:

Jan 29 21:56:06 machine spamd[1951]: Insecure dependency in `` while
running with -T switch at /opt/gnu/lib/perl5/site_perl/5.8.3/Sy
s/Hostname/Long.pm line 91, <GEN14618> line 90.

running 3.0.4 / perl 5.8.3 on sparc sun solaris 5.9. latest version of
Sys::Hostname::Long.pm (1.4) has been installed.

any idea, on how to cope with that issue?

regards,
Matthias

Re: Sys Hostname Long.pm

Posted by Matthias Fuhrmann <Ma...@stud.uni-hannover.de>.
On Mon, 30 Jan 2006, Duncan Hill wrote:

> On Sunday 29 January 2006 21:19, Matthias Fuhrmann wrote:
> > On Sun, 29 Jan 2006, Matthias Fuhrmann wrote:
> > > Hello,
> > >
> > > recently i see many of those lines in our syslog:
> > >
> > > Jan 29 21:56:06 machine spamd[1951]: Insecure dependency in `` while
> > > running with -T switch at /opt/gnu/lib/perl5/site_perl/5.8.3/Sy
> > > s/Hostname/Long.pm line 91, <GEN14618> line 90.
> > >
> > > running 3.0.4 / perl 5.8.3 on sparc sun solaris 5.9. latest version of
> > > Sys::Hostname::Long.pm (1.4) has been installed.
> > >
> > > any idea, on how to cope with that issue?
> >
> > i was wrong with our SA version. we already got 3.1.0 installed.
>
> Sys::Hostname::Long calls external binary programs to determine the hostname.
> I'd guess that perl is complaining about that.

thanks for that hint. i'll try to find the problem, since this error above
seems connected to another one in syslog (only listed while running in
debug mode it seems):

Jan 30 16:02:27 machine spamd[3553]: Insecure dependency in `` while
running with -T switch at /opt/gnu/lib/perl5/site_perl/5.8.3/Sys
/Hostname/Long.pm line 91, <GEN488> line 294.

Jan 30 16:02:27 machine spamd[3553]: spf: cannot load or create
Mail::SPF::Query module: Insecure dependency in `` while running with
 -T switch at /opt/gnu/lib/perl5/site_perl/5.8.3/Sys/Hostname/Long.pm line
91, <GEN488> line 294.

regards,
Matthias

Re: Sys Hostname Long.pm

Posted by Matthias Fuhrmann <Ma...@stud.uni-hannover.de>.
On Thu, 2 Feb 2006, Duncan Hill wrote:

> On Wednesday 01 February 2006 21:58, Matthias Fuhrmann wrote:
>
> > just a question about the purpose of Long.pm. Am I right asuming, it
> > just tries to get local machines hostname and domainname. nothing else
> > additionaly. Correct? Just to ensure, i dont blow anything :)
> >
> > well, asuming this, a friend helped me solving the problem. in
> > Sys::Hostname::Long we replaced method 'exec_hostname_domainname' with this
> > one:
> >
> > 'exec_new_domainname' => {
> >                 'title' => 'new version',
> >                 'description' => 'new version',
> >                 'exec' => sub {
> >                         open HOSTNAME, "<", "/etc/hostname.hme0"  or warn;
> >                         open DOMAINNAME, "<", "/etc/defaultdomain"  or
> > warn; my $tmp = <HOSTNAME> .  '.' . <DOMAINNAME>; close HOSTNAME;
> >                         close DOMAINNAME;
> >                         $tmp =~ tr/\0\r\n//d;
> >                         return $tmp;
> >                      }
> >         },
>
> >From my reading of the code the other day, it's actually cross-platform, so
> one change for you may be ok, but may not work for someone else.  If it works
> for you, and the data returned by the new function is what data from the old
> function was, then there should be no problems (for your machine).

yes, just a fix for my local system; but maybe someone else runing solaris
may see this error i described above and so he can use this fix too.

thanks answering.

regards,
Matthias

Re: Sys Hostname Long.pm

Posted by Duncan Hill <sa...@nacnud.force9.co.uk>.
On Wednesday 01 February 2006 21:58, Matthias Fuhrmann wrote:

> just a question about the purpose of Long.pm. Am I right asuming, it
> just tries to get local machines hostname and domainname. nothing else
> additionaly. Correct? Just to ensure, i dont blow anything :)
>
> well, asuming this, a friend helped me solving the problem. in
> Sys::Hostname::Long we replaced method 'exec_hostname_domainname' with this
> one:
>
> 'exec_new_domainname' => {
>                 'title' => 'new version',
>                 'description' => 'new version',
>                 'exec' => sub {
>                         open HOSTNAME, "<", "/etc/hostname.hme0"  or warn;
>                         open DOMAINNAME, "<", "/etc/defaultdomain"  or
> warn; my $tmp = <HOSTNAME> .  '.' . <DOMAINNAME>; close HOSTNAME;
>                         close DOMAINNAME;
>                         $tmp =~ tr/\0\r\n//d;
>                         return $tmp;
>                      }
>         },

From my reading of the code the other day, it's actually cross-platform, so 
one change for you may be ok, but may not work for someone else.  If it works 
for you, and the data returned by the new function is what data from the old 
function was, then there should be no problems (for your machine).

Re: Sys Hostname Long.pm

Posted by Matthias Fuhrmann <Ma...@stud.uni-hannover.de>.
On Mon, 30 Jan 2006, Duncan Hill wrote:

> On Sunday 29 January 2006 21:19, Matthias Fuhrmann wrote:
> > On Sun, 29 Jan 2006, Matthias Fuhrmann wrote:
> > > Hello,
> > >
> > > recently i see many of those lines in our syslog:
> > >
> > > Jan 29 21:56:06 machine spamd[1951]: Insecure dependency in `` while
> > > running with -T switch at /opt/gnu/lib/perl5/site_perl/5.8.3/Sy
> > > s/Hostname/Long.pm line 91, <GEN14618> line 90.
> > >
> > > running 3.0.4 / perl 5.8.3 on sparc sun solaris 5.9. latest version of
> > > Sys::Hostname::Long.pm (1.4) has been installed.
> > >
> > > any idea, on how to cope with that issue?
> >
> > i was wrong with our SA version. we already got 3.1.0 installed.
>
> Sys::Hostname::Long calls external binary programs to determine the hostname.
> I'd guess that perl is complaining about that.

hi,

just a question about the purpose of Long.pm. Am I right asuming, it
just tries to get local machines hostname and domainname. nothing else
additionaly. Correct? Just to ensure, i dont blow anything :)

well, asuming this, a friend helped me solving the problem. in
Sys::Hostname::Long we replaced method 'exec_hostname_domainname' with this one:

'exec_new_domainname' => {
                'title' => 'new version',
                'description' => 'new version',
                'exec' => sub {
                        open HOSTNAME, "<", "/etc/hostname.hme0"  or warn;
                        open DOMAINNAME, "<", "/etc/defaultdomain"  or warn;
                        my $tmp = <HOSTNAME> .  '.' . <DOMAINNAME>;
                        close HOSTNAME;
                        close DOMAINNAME;
                        $tmp =~ tr/\0\r\n//d;
                        return $tmp;
                     }
        },

testall.pl gave correct answer, after these changes.
this seems working fineat all, since those syslog warnings disapeared. Can
anyone confirm or validate, what we did with Long.pm?

thanks in advance.

regards,
Matthias

Re: Sys Hostname Long.pm

Posted by Duncan Hill <sa...@nacnud.force9.co.uk>.
On Sunday 29 January 2006 21:19, Matthias Fuhrmann wrote:
> On Sun, 29 Jan 2006, Matthias Fuhrmann wrote:
> > Hello,
> >
> > recently i see many of those lines in our syslog:
> >
> > Jan 29 21:56:06 machine spamd[1951]: Insecure dependency in `` while
> > running with -T switch at /opt/gnu/lib/perl5/site_perl/5.8.3/Sy
> > s/Hostname/Long.pm line 91, <GEN14618> line 90.
> >
> > running 3.0.4 / perl 5.8.3 on sparc sun solaris 5.9. latest version of
> > Sys::Hostname::Long.pm (1.4) has been installed.
> >
> > any idea, on how to cope with that issue?
>
> i was wrong with our SA version. we already got 3.1.0 installed.

Sys::Hostname::Long calls external binary programs to determine the hostname.  
I'd guess that perl is complaining about that.

Re: Sys Hostname Long.pm

Posted by Matthias Fuhrmann <Ma...@stud.uni-hannover.de>.
On Sun, 29 Jan 2006, Matthias Fuhrmann wrote:

>
> Hello,
>
> recently i see many of those lines in our syslog:
>
> Jan 29 21:56:06 machine spamd[1951]: Insecure dependency in `` while
> running with -T switch at /opt/gnu/lib/perl5/site_perl/5.8.3/Sy
> s/Hostname/Long.pm line 91, <GEN14618> line 90.
>
> running 3.0.4 / perl 5.8.3 on sparc sun solaris 5.9. latest version of
> Sys::Hostname::Long.pm (1.4) has been installed.
>
> any idea, on how to cope with that issue?

i was wrong with our SA version. we already got 3.1.0 installed.

regards,
Matthias