(I thought this would be a faq, but I can't find a solution.)
I am new to virtualmin and have installed it on AWS EC2 cloud on top of Centos 7. All seems to work so far except for the sending of email.
When I send email, either from the roundcube or a mail client (Thunderbird), the mail is accepted and delivered, but the domain part of the "from" address is changed.
For example, an address of:
becomes email@example.com (ip parts changed to xx)
This is not even the server's hostname, which is set to a resolvable address in another domain whose reverse dns points to the server's public ip address.
Any ideas what is happening? I even set the myhostname= in main.cf to what the hostname is set to and it did not make any difference.