Trying to setup mail from multiple mail servers without any luck. My main domain – let’s call it maindomain.com – is setup to use the main (the only) Postfix mailserver at mail.maindomain.com. Works fine.
My virtual domain – virtualdomain – does currently appear to send mail correctly from its own domain address… this was accomplished via canonical address mapping inside Postfix. However, while mail does appear to come from “user@virtualdomain”, when looking at the mail headers, the mail server is clearly defined as “mail.maindomain”. This is sloppy.
I’ve setup the MX record for virtualdomain to point to mail.virtualdomain. This made no difference in the sending-server info, it just allowed me to login to user@virtualdomain via my mail client.
I’ve bashed my head against Postfix’s obscure documentation for several hours, looking for a configuration setting that will accomplish this. Haven’t found anything that will alter the “Received from: mail server” line to a virtual domain hosted on the same server.
Any advice on what I’m doing wrong? Do I need to somehow setup a second Postfix mail server, which will probably be a configuration nightmare?
(edit: had to remove all the “.coms”'s above because apparently “new users” here can only post two links. Sigh.)