Peter J. Holzer wrote:
sub fqdn {
my $local = hostname();
return $local unless _is_short($local);
return ( gethostbyname($local) )[0] || $local;
}
[...]
It works on your particular Linux distribution. On some distributions it
might return the short name or even "localhost", depending on the
contents of /etc/hosts, /etc/nsswitch.conf and other factors.
Shouldn't we just use the 'me' config file, which is where qpsmtpd
itself will look by default?
-Johan
--
Johan Almqvist
Christies gate 34 A
0557 Oslo
Norway
Mobile: +47 40 04 68 21
E-mail: [EMAIL PROTECTED]