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.
Received Headers
Moderators: Chris Corbyn, General Moderators
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Received Headers
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.
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Re: Received Headers
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.
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.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Received Headers
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).
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).
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL
Re: Received Headers
Thank you for your help! You're one smart man Mr. Corbyn!