Hello. I'm hosting a mail server that provides mail services for 3 companies. (names and addresses changed to protect the innocent/guilty) It's like this:
myhostname = www.company1.com mydomain = company1.com myorigin = company1.com mydestination = company1.com, company2.com, company3.com The actual hostname of the box is www.company1.com, dating back to when I hosted just the one. So far this mail server has only ever handled incoming mail - outgoing mail is sent by their mail clients directly to the ISP's SMTP server. However, for various reasons I am going to need to begin handling outgoing traffic for all 3 companies now. It so happens that this is a multihomed (aliased) server so that they all have their own publically-routable static IP addresses. e.g. 172.19.201.10 - www.company1.com 172.19.201.11 - www.company2.com 172.19.201.12 - www.company3.com However, all the outgoing mail appears to come from "www.company1.com" in the message headers. e.g. when sending from webmail: ------------------------------------------------------------------------ Received: from www.company1.com (www.company1.com [172.19.201.10]) by www.example.net (Postfix) with ESMTP id CB4E03150B0 for <g_adam...@example.com>; Sat, 16 Nov 2013 02:01:58 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by www.company1.com (Postfix) with ESMTP id DA30125E289F for <g_adam...@example.com>; Sat, 16 Nov 2013 02:01:57 -0500 (EST) ------------------------------------------------------------------------ Company2 and Company3 do not want to have references to www.company1.com in the outgoing mail headers. They want mail to be going out with their own hostnames (both in the envelope and the From: headers). Is there a way to do this? Either through a Postfix change, or forcing the mail to go through an aliased NIC (eth0:1 or eth0:2) and its associated hostname rather than eth0 (which is www.company1.com's IP address)? Thanks to anyone who can help!