Page 1 of 1

Received Headers

Posted: Tue Mar 04, 2008 2:23 pm
by seodevhead
Quick Question:

When email is sent out using Swift Mailer from my server, the "Received:" headers show this:

Received: from [1.2.3.4] (port=58347)
by host.myserver.com with esmtpa (EXIM 4.68)


The ip address above is fictitious for privacy sake, but shouldn't the mail server hostname be included before the ip address? I specifically use the SMTP authentication with swift and use mail.myserver.com as the connection... so shouldn't it show that like below?

Example:
Received: from mail.myserver.com [1.2.3.4] (port=58347)
by host.myserver.com with esmtpa (EXIM 4.68)


...Just wondering. I'm having a heck of a time staying out of junk folders.

Re: Received Headers

Posted: Tue Mar 04, 2008 4:51 pm
by Chris Corbyn
Not always.... it depends one the mail software. Is this running from command line or a browser? :) I ask because Swift uses $_SERVER['SERVER_NAME'] if it's available.

Re: Received Headers

Posted: Wed Mar 05, 2008 12:07 am
by seodevhead
Well, neither I guess. This is the email headers according to ESPC's tool at:
http://senderid.espcoalition.org/

Just thought perhaps that the email providers (yahoo, hotmail, etc) are looking for that originating hostname to do a PTR lookup.... but who knows. :)

Re: Received Headers

Posted: Wed Mar 05, 2008 1:20 am
by Chris Corbyn
Nah, the Received headers are intended for "debugging" purposes and for tracking. Although RFC 2821 does give guidelines as to what they SHOULD contain, it doesn't strictly enforce that and explicitly forbids checking the values of them and/or changing them in any way :)

Receivers do lookups based on the IP address which connects to them and/or the address used in the MAIL FROM command (the bit which specifies where bounces will go).

Re: Received Headers

Posted: Wed Mar 05, 2008 6:06 am
by seodevhead
Thank you for your help! You're one smart man Mr. Corbyn!