On 2007-10-08 09:12:53 +0200, Johan Almqvist wrote:
> 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?

Um, what was the original question?

<looks back through the thread>

Oh, getting the host name for creating a TLS certificate. Yes, "me" sounds
like the right solution. 

        hp

-- 
   _  | Peter J. Holzer    | I know I'd be respectful of a pirate 
|_|_) | Sysadmin WSR       | with an emu on his shoulder.
| |   | [EMAIL PROTECTED]         |
__/   | http://www.hjp.at/ |    -- Sam in "Freefall"

Attachment: signature.asc
Description: Digital signature

Reply via email to