How to assign domain name to Postfix Mail Server

OS type and version CentOS Linux 7.9.2009
Webmin version 1.994

We have multiple domains on the server, and we want to Emails must be sent from a domain name, not from Hostname.

Your IP address is associated with the domain .
Nevertheless your message appears to be sent from .

How we can fix this issue… So All emails are associated with the domain.


You don’t. Mail will always be sent from the servers hostname not an individually hosted domain.

It really shouldn’t attract any attention because it’s a typical setup. In terms of numbers, only a tiny percentage of domains host their own mail servers.

Is the mail server sending from a different IP than the domain’s A record? That’s also not unusual, but the DNS records have to reflect it.

update your SPF record to allow the IP and for mx

You would either need Postfix 3.4+ that supports SNI or a private IP address for each domain.

1 Like

The Postfix 3.x on GhettoForge works great on CentOS / RH 7.9 and Virtualmin. I’ve been using it for well over a year without so much as a belch, fart, or hiccup.


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.