1

Topic: Server hostname & mail headers

I want to set up a mail server to host multiple domains and users. Mail will be handled only for the hosted domains, not for the server domain.

The servers FQDN is mail.example.com
One of the hosted domains is fubar.org
Another is fizbiz.com

If someone receives an email from a user at fubar.org, the email headers should a path to fubar.org, NOT including mail.example.com

Is this possible? If so, how do I set it up?

2

Re: Server hostname & mail headers

You can use header_checks in postfix to replace them in every incoming mail. But why do you care about hostname in mail header?

3

Re: Server hostname & mail headers

ZhangHuangbin wrote:

You can use header_checks in postfix to replace them in every incoming mail. But why do you care about hostname in mail header?

I don't care about incoming, just outgoing.

I would prefer that the hosted domain is seen as the hosting server.