Subject: | Possible bug in Sys-Hostname-Long |
I am calling Sys::Hostname::Long from Mail::SpamAssassin::Plugin::SPF
on Solaris 8, Perl version is 5.8.7. The SPF plugin does not work on
all our Sun Solaris machines and I suspect the cause might be problem
with Sys::Hostname::Long on Solaris.
In some situations the SPF plugin in SpamAssassin reports the
following error:
[3903] dbg: spf: cannot load or create Mail::SPF::Query module:
Insecure dependency in `` while running with -T switch at /usr
/local/lib/perl5/site_perl/5.8.7/Sys/Hostname/Long.pm line 91.
Possibly module Sys::Hostname::Long does not handle all the
various Solaris hostname/domainname conventions that can occur.
On one machine where hostname = "myhost.mydomain" and domainname = ""
SPF module works. I.e. hostname is set to FQDN.
On another machine where hostname = "myhost", domainname = "" or
"mydomain" SPF module fails with error reported above.
Also, I think the "su nobody hostname --fqdn" command, which
Sys::Hostname::Long tries to run, may not work on Solaris 8 because
the hostname command does not have a --fqdn option.