Hi
I am configuring postfix server to send mail for 8 differnet domains. I configured it using virtual_alias_domains and virtual_alias_maps parameters. I am able to send mail as FROM any of these 8 domains.
I am facing issue with the header of mail being sent from any of the virtual domain, please refer to the header of one of the mail as below:
Please refer to the 7th line in the header:
"Received: from CentOS52.localdomain ([<my public IP>])"
CentOS52.localdomain is the hostname of the system postfix is hosted on.
If I am sending from domain tmails.com then why is it showing hostname "CentOS52.localdomain " in the header, is there any way to replace hostname in the header with the domain name.
like if I am sending mail as ashwani@tmails.com then it should show in header at 7th line:
"Received: from tmails.com ([<my public IP>])"
and if the second virtual domain configured in my postfix is "xmails" and if I am sending mail as ashwani@xmails.com then it should show in header at 7th line:
"Received: from xmails.com ([<my public IP>])"
Header:
Delivered-To: ashuji@gmail.com
Received: by 10.220.74.19 with SMTP id s19cs55809vcj;
Wed, 10 Jun 2009 11:33:24 -0700 (PDT)
Received: by 10.142.232.7 with SMTP id e7mr637135wfh.164.12446588
04206;
Wed, 10 Jun 2009 11:33:24 -0700 (PDT)
Return-Path: <ashwani@tmails.com>
Received: from CentOS52.localdomain ([<my_public_IP>])
by mx.google.com with SMTP id 3si1551335pzk.134.2009.06.
10.11.33.2
2;
Wed, 10 Jun 2009 11:33:23 -0700 (PDT)
Received-SPF: fail (google.com: domain of ashwani@tmails.com does not designate <my_public_IP> as permitted sender) client-ip=<my_public_IP>;
Authentication-Results: mx.google.com; spf=hardfail (google.com: domain of ashwani@tmails.com does not designate <my_public_IP> as permitted sender) smtp.mail=ashwani@tmails.c
om
Received: from indiaws145 (unknown [192.168.2.72])
by CentOS52.localdomain (Postfix) with SMTP id CD778781E5
for <ashuji@gmail.com>; Thu, 11 Jun 2009 00:03:19 +0530 (IST)
Message-ID: <6A5120BB1FEC46B9AA851EA2D
C295A62@ra
pidcorp.co
m>
Reply-To: "Ashwani Jain" <ashwani@tmails.com>
From: "Ashwani Jain" <ashwani@tmails.com>
To: <ashuji@gmail.com>
Subject: Test-5
Date: Thu, 11 Jun 2009 00:03:14 +0530
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_0
00_005D_01
C9EA28.03C
C93A0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
This is a multi-part message in MIME format.
------=_NextPart_000_005D_
01C9EA28.0
3CC93A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding:
quoted-printable
hi!
------=_NextPart_000_005D_
01C9EA28.0
3CC93A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding:
quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16825" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hi!</FONT></DIV><
/BODY></HT
ML>
------=_NextPart_000_005D_
01C9EA28.0
3CC93A0--