in reply to Mail::Audit, sendmail, and Sys::Hostname: hostname fails in .forward

try testing POSIX::uname to see if it works
use POSIX; $host = (POSIX::uname())[1]; print "$host\n";
it should try to use POSIX::uname after it tries the hostname command, but before it tries uname and /com/host commands. if that works, and you aren't too concerned about portability to non-POSIX systems, you could just use that instead of Sys::Hostname (it's even a standard module, so you don't have anything extra to install).
  • Comment on Re: Mail::Audit, sendmail, and Sys::Hostname: hostname fails in .forward
  • Download Code

Replies are listed 'Best First'.
Re(2): Mail::Audit, sendmail, and Sys::Hostname: hostname fails in .forward
by FoxtrotUniform (Prior) on Jun 20, 2002 at 21:23 UTC

    sigh

    POSIX::uname works just fine, as does hostname and all the others... EXCEPT when called by Mail::Audit in the mail_filter script, and then only when mail_filter is run by sendmail from the .forward.

    (I'm frustrated, but not with you, robobunny; thanks for your help!)

    --
    The hell with paco, vote for Erudil!
    :wq