Postfix email header question

4 posts / 0 new
Last post
#1 Wed, 06/25/2008 - 23:27
velvetpixel

Postfix email header question

I am seeing values in my sent email headers that don't look right so I thought I would ask here for help.

The original Received: from header for emails sent from phplist are like this:

Received: from www.exampledomain.com (unknown [xx.xx.xx.50]) by vps.examplehost.net (Postfix)

notice the unknown!

The original Received: from header for emails sent from other php apps that send via smtp are like this:

Received: from localhost (unknown [xx.xx.xx.50]) by vps.examplehost.net (Postfix)

notice the unknown AND the localhost!

What can I do in my postfix settings to have the unknown be the correct value and how can I have the sending domain listed instead of localhost?

Thu, 06/26/2008 - 05:36
andreychek

First -- I believe the the field where it says "unknown" is a reverse lookup of your IP address.

If you type: host xx.xx.xx.50

Do you get a result? If not, you may need to talk to your ISP about setting up your reverse DNS (you control your DNS, but they control your reverse lookups).

As for your second question, that's more difficult to resolve. Check out Joe's response to this post:

http://www.virtualmin.com/forums/webmin/postfix-address-rewriting....html

Have a good one,
-Eric

Fri, 06/27/2008 - 18:39 (Reply to #2)
velvetpixel

OK my rdns has been and is good in that:
host xx.xx.xx.50
50.xx.xx.xx.in-addr.arpa domain name pointer vps.examplehost.net.

So it must be something else.

I looked at the link your provided and at the link in that link that joe provided and see something that might be the issue.

My VPS has an IP of xx.xx.xx.01
My virtual host on the VPS has a dedicated IP of xx.xx.xx.50

The Virtual host doesn't use a mail server at xx.xx.xx.50 because it is using the VPS's install of postfix so all mail is actually coming from xx.xx.xx.01

When I check host info like this:

host -t mx exampledomain.com
strangemonster.com mail is handled by 5 mail.exampledomain.com.

host mail.exampledomain.com
mail.exampledomain.com has address xx.xx.xx.50

Does the issue lie in the fact that mail.exampledomain.com has address xx.xx.xx.50 but mail is actually being sent from xx.xx.xx.01

Could this be why I am getting unknown in the header?

Fri, 06/27/2008 - 18:42 (Reply to #3)
velvetpixel

I wish edit worked but truthfully I would rather see Joe and Jamie working the software than on some forum install so I guess this is just a rant to ingore. Move along :)

Topic locked