Re: [exim-dev] Preliminary testing of a new Exim test suite

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: John Jetmore
CC: exim-dev
Tárgy: Re: [exim-dev] Preliminary testing of a new Exim test suite
On Mon, 3 Oct 2005, John Jetmore wrote:

> Line 2 of "test-mail-munged" does not match line 2 of "mail/2127.usery".
> ----------
> Received: from the.local.host.name.cinergycom.net ([ip4.ip4.ip4.ip4]
> helo=myhost.test.ex)
> ----------
> Received: from the.local.host.name ([ip4.ip4.ip4.ip4] helo=myhost.test.ex)
> ===============
> 1 difference found.
>
> That is, something is tacking cinergycom.net (which is the domain for the
> test server). Everything else seemed to run fine.


Maybe the problem is the other way round: the test suite isn't finding
the FQDN of the local host. If that is the case, the output munging is
just changing the basic name into "the.local.host.name", leaving the
outer domain untouched. What is the output of this Perl script?

chomp($temp = `hostname`);                   
$parm_hostname = (gethostbyname($temp))[0];
$parm_hostname = "<no hostname found>" if $parm_hostname eq "";           
print "Hostname is $parm_hostname\n";                                           


That's the code that the test suite uses. In fact, you can see the
output when you run the test suite, so the question is, are you seeing a
FQDN at that point, or not?

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book