Hello
I have 2 websites on my virtualmin server. For every website i created a mail account. And when i test both email the outgoing email server is my hostname server (ns1.example.com). It is possible to setup for every domain a personalized hostname?
For example for domain1.com the hostname to be domain1.com also for the outgoing emails, for the domain2.com the outgoing hostname email server to be domain2.com
Yeah by default all email goes out via the primary IP address.
If that’s not what you want, you could always setup something like Sender Dependent Outgoing Email. Note that this requires a dedicated IP for each domain that’s participating. Details on that are here:
Yes i did this configuration and now every domain has its own ip. The problem is the ip have the name server like host not the domain name.
I need to configure the hostname for every domain, so the mail will be appear to be sended from the hostname i specify (example.com) not from the default hostname (ns1.example.com)