Topic: Postfix on External Virtual IP?
I recently installed iRedMail onto CentOs 5.5. The server has two IP addresses. The main hostname in this example is
host.mydomain.com at IP 6.97.29.101
and the one I want to handle all email related stuff is
mail.mydomain.com at IP 6.97.29.102
All mail clients are able to send/receive email using mail.mydomain.com and this is the MX record for the domains it handles. However, the HEADERS on sent email give away the wrong IP address. How can I force postfix to only send email via the 2nd virtual IP? I included an example email sent from mydomain to gmail. You will see that the final send from my server to Google sends via 6.97.29.101 instead of 6.97.29.102. In fact, the SPF check that Google does, mentions the .102 address as well. Any help, is this even possible?
I did update vi postfix/main.cf as follows, which doesn;t help.
inet_interfaces = 6.97.29.102, localhost
All IP addresses, hostnames, and email addresses were modified as obfuscation.
MAIL SOURCE:
------------------
Delivered-To: mygmail@gmail.com
Received: by 10.229.42.75 with SMTP id r11cs98381qce;
Wed, 21 Jul 2010 17:15:41 -0700 (PDT)
Received: by 10.224.37.9 with SMTP id v9mr770806qad.114.1279757740640;
Wed, 21 Jul 2010 17:15:40 -0700 (PDT)
Return-Path: <steve@mydomain.com>
Received: from mail.mydomain.com (host.mydomain.com [6.97.29.101])
by mx.google.com with ESMTP id a30si12567454qco.3.2010.07.21.17.15.40;
Wed, 21 Jul 2010 17:15:40 -0700 (PDT)
Received-SPF: pass (google.com: domain of steve@mydomain.com designates 66.197.129.101 as permitted sender) client-ip=66.197.129.101;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of steve@mydomain.com designates 66.197.129.101 as permitted sender) smtp.mail=steve@mydomain.com
Received: from localhost (localhost.localdomain [127.0.0.1])
by mail.mydomain.com (iRedMail) with ESMTP id 773911F005D
for <mygmail@gmail.com>; Wed, 21 Jul 2010 20:15:39 -0400 (EDT)
X-Virus-Scanned: amavisd-new at mail.mydomain.com
Received: from mail.mydomain.com ([127.0.0.1])
by localhost (mail.coparttech.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id nYUeTTlsxmrY for <mygmail@gmail.com>;
Wed, 21 Jul 2010 20:15:38 -0400 (EDT)
Received: from [192.168.1.175] (myhomewanip.dyn.optonline.net [6.8.100.1])
by mail.mydomain.com (iRedMail) with ESMTPSA id 759431F005C
for <mygmail@gmail.com>; Wed, 21 Jul 2010 20:15:38 -0400 (EDT)
Message-ID: <4C478DAA.3050207@mydomain.com>
Date: Wed, 21 Jul 2010 20:15:38 -0400
From: Steve <steve@mydomain.com>
MIME-Version: 1.0
To: Steve <mygmail@gmail.com>
Subject: test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
test
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.