> On 02-25-2022 9:10 am, @lbutlr wrote: > Are there any issue with using multiple names for the same mail server?
No, postfix does not know what domain the client looked up to find the IP to connect to. > For example, I use mail.exampl.net as the FQDN for the mail sever, > but if I have a hosted domain at example.com can I have its MX set to > mail.example.com and point to the same IP without issue, > or do I need to do something in postfix to account for this? You can have mail.example.com and www.example.com and www.otherwebsite.com all on the same server/IP. otherwebsite.com can set its MX record to mail.example.com and you don't need to do anything extra in postfix other than set it up to work for mail.example.com. Of-course you have to tell postfix what domains it accepts or relays emails for, but I think that is separate from what you are asking. > In short, does postfix need to know the name the client used to connect to > the server? > (I already have the domains configured in virtual and in virtual_sql.pcre and > in the database, > this is just wondering about the domain name for the MX record and if postfix cares. Nope, postfix doesn't need to know and actually doesn't know. Postfix knows the IP of the client that connected, does a PTR lookup of the IP to get the hostname, then checks the A record of that hostname to see if it matches the IP.