On Wed, Jun 13, 2012 at 3:06 PM, Jan Stary <h...@stare.cz> wrote:
> On Jun 13 19:39:46, Jan Stary wrote:
>> Through my smtpd, I am sending an email to an address
>> in the fjfi.cvut.cz domain. The email get delivered alright,
>> but the maillog message is strange:
>>
>> Jun 13 19:32:08 mini smtpd[7138]: 93fe4a4f: from=<r...@mini.stare.cz>, 
>> size=427, nrcpts=1, proto=ESMTP, relay=0@localhost [IPv6:::1]
>> Jun 13 19:32:10 mini smtpd[6586]: 93fe4a4f700df332: 
>> to=<jan.st...@fjfi.cvut.cz>, delay=2, relay=n003-000-000-000.static.ge.com 
>> [147.32.9.3], stat=Sent (2.0.0 Ok: queued as CECD3C0083)
>>
>> $ host -t mx fjfi.cvut.cz.
>> fjfi.cvut.cz mail is handled by 70 brk1.fjfi.cvut.cz.
>> fjfi.cvut.cz mail is handled by 30 mailgw1.fjfi.cvut.cz.
>> fjfi.cvut.cz mail is handled by 50 mailgw2.fjfi.cvut.cz.
>> fjfi.cvut.cz mail is handled by 60 brk2.fjfi.cvut.cz.
>>
>> So smtpd correctly chooses the first priority MX, which is
>>
>> $ host mailgw1.fjfi.cvut.cz.
>> mailgw1.fjfi.cvut.cz has address 147.32.9.3
>>
>> $ host 147.32.9.3
>> 3.9.32.147.in-addr.arpa domain name pointer mailgw1.fjfi.cvut.cz.
>>
>> All the resolvers in my /etc/resolv.conf resolve
>> mailgw1.fjfi.cvut.cz. to 147.32.9.3 and back, as above.
>>
>> So how did "relay=n003-000-000-000.static.ge.com [147.32.9.3]"
>> get into the log? Am I missing something?
>
> A different, but similarly strange thing happens with
> an email to artax.karlin.mff.cuni.cz, which again resolves
> fine to 195.113.26.195 and back, yet the log says
>
> Jun 13 20:34:55 mini smtpd[7138]: ee78679b: from=<r...@mini.stare.cz>, 
> size=449, nrcpts=1, proto=ESMTP, relay=0@localhost [IPv6:::1]
> Jun 13 20:35:00 mini smtpd[6586]: ee78679b5ae80015: 
> to=<jsta6...@artax.karlin.mff.cuni.cz>, delay=5, relay=<unknown> 
> [195.113.26.195], stat=Sent (2.0.0 Ok: queued as 5A9C698085)
>

I wish I knew the smptd codebase and/or had more time to become
familiar; the DNS lookup for "relay" is being done using the wrong
endianness.

[david@mbp0 patch]$ host 147.32.9.3
3.9.32.147.in-addr.arpa domain name pointer mailgw1.fjfi.cvut.cz.
[david@mbp0 patch]$ host 3.9.32.147
147.32.9.3.in-addr.arpa domain name pointer n003-000-000-000.static.ge.com.

HTH

--david

Reply via email to