Postfix, send e-mail with IP for specific Virtual Server

2 posts / 0 new
Last post
#1 Thu, 02/25/2010 - 08:26
moskit
moskit's picture

Postfix, send e-mail with IP for specific Virtual Server

Is it possible to send e-mail with sending server domain as domain from which mail is being send, not with serwer hostname?

For example: Server hostname: server.eu Virtual Server: domain.eu

How to send mail from user@domain.eu with header:

X-Original-To: xxxx@domain.pl
Delivered-To: xxxx@domain.pl
Received: from domain.eu (rev.domain.eu [xxx.xxx.xxx.xxx])
by domain.pl (Postfix) with ESMTP id xxxxxxxxx

but not

X-Original-To: xxxx@domain.pl
Delivered-To: xxxx@domain.pl
Received: from server.eu (rev. server.eu  [xxx.xxx.xxx.xxx])
by domain.pl (Postfix) with ESMTP id xxxxxxxxx

Is is possible?

Thu, 02/25/2010 - 09:41
andreychek

Howdy,

You can set the "From" address of the outgoing emails.

However, you can't change what shows up in the "Received" headers.

Those are all tagged by the receiving server, based on the IP address of the server sending the email. What it's putting in there are the forward and reverse lookup of your server's IP address. If a given domain owner cares that much about what shows up in the "Received" headers, outside of setting up some really crazy routing rules, the only way to solve that is to setup a new server just for them :-)

-Eric

Topic locked