in reply to Bad hostname 'mailhost'

I'm using an older version 1.33 but it looks like that if no host is passed it checks mailhost and then localhost. So mailhost is probably failing but localhost succeeds.

-Lee

"To be civilized is to deny one's nature."

Replies are listed 'Best First'.
Re: Re: Bad hostname 'mailhost'
by talexb (Chancellor) on Mar 26, 2002 at 17:32 UTC
    I have version 1.32 (I'm stuck with that version for now) -- so is this a warning that I can safely ignore?

    I don't mind seeing a warning as long as I know it's relatively benign.

    --t. alex

    "Here's the chocolates, and here's the flowers. Now how 'bout it, widder hen, will ya marry me?" --Foghorn Leghorn

      If it's working then I'd say yes. What I'd do is open up the .pm file in vi/emacs/pico and look at the line in question. If you see something like the following, it just means that it's trying mailhost first and it's failing.
      unless(defined($host)) { local $SIG{__DIE__}; my @hosts = qw(mailhost localhost); unshift(@hosts, split(/:/, $ENV{SMTPHOSTS})) if(defined $ENV{S +MTPHOSTS}); foreach $host (@hosts) { $smtp = eval { Net::SMTP->new($host, @hello) }; last if(defined $smtp); } }
      If you are the sysadmin, you could just remove the mailhost out of the qw() or set up the alias for mailhost in /etc/hosts. Another way to supress the warning would be to specify loclhost in $ENV{SMTPHOSTS}.

      -Lee

      "To be civilized is to deny one's nature."