I am trying to get postfix to send outgoing mail on a specific interface / IP address. I can find lots of info on how to set the outgoing domain, but that is working fine.
Our system hosts 2 domains, dqzone.com on 184.108.40.206 and dqsoft.com on 220.127.116.11. When I send mail using postfix -f it uses the first interface available which is the 214 address. Unfortunately, I want outgoing mail to all be from dqsoft.com which uses the 215 address, not the default 214 address.
Since the reverse IP lookup for 214 is not dqsoft.com, this causes us to get flagged by some spam programs causing delivery issues.
I have searched the docs and can find a mydomainname= directive for main.cf, but the only interface information I can find is for proxy server stuff which is not what I need.
To clarify, an email header from something I send currently shows:
Received: from dqsoft.com (18.104.22.168)
by mailgate.cesmail.net with SMTP; 10 Feb 2007 18:43:47 -0000
Received: from dqsoft.com (localhost.localdomain [127.0.0.1])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by dqsoft.com (Postfix) with ESMTP id 9EF8F8207
for <firstname.lastname@example.org>; Sat, 10 Feb 2007 11:43:46 -0700 (MST)
I want it to show:
Recieved: from dqsoft.com (22.214.171.124)
Blitzkrieg ('tanks in advance!)