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:
justdave%bugzilla.org 2006-06-29 00:00:43 +00:00
parent 50b82fb6d9
commit 4a6e40e949

View File

@ -42,7 +42,7 @@ chop(my $hostname = `/bin/hostname`);
my ($remote,$port, $iaddr, $paddr, $proto, $line);
$remote = $mailhost;
$remote = "localhost";
$port = 25;
if ($port =~ /\D/) { $port = getservbyname($port, 'tcp') }
die "No port" unless $port;