Fix sendnotification.pl to know the hostname of the mail server
git-svn-id: svn://10.0.0.236/trunk@201169 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
50b82fb6d9
commit
4a6e40e949
@ -42,7 +42,7 @@ chop(my $hostname = `/bin/hostname`);
|
|||||||
|
|
||||||
my ($remote,$port, $iaddr, $paddr, $proto, $line);
|
my ($remote,$port, $iaddr, $paddr, $proto, $line);
|
||||||
|
|
||||||
$remote = $mailhost;
|
$remote = "localhost";
|
||||||
$port = 25;
|
$port = 25;
|
||||||
if ($port =~ /\D/) { $port = getservbyname($port, 'tcp') }
|
if ($port =~ /\D/) { $port = getservbyname($port, 'tcp') }
|
||||||
die "No port" unless $port;
|
die "No port" unless $port;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user