Note: Per https://www.virtualmin.com/documentation/email/troubleshooting this is not a new problem
Domains used in documentation below
Environment
Problem:
email sent
from user_a@example11.com hosted on machine1.example01.com
to user_b@example12.com (for test purposes also on machine1.example01.com
shows in recipient's mailbox as being sent from user_a.example11@example01.com (completely different domain)
this is consistent whether recipient is using Squirrelmail on host machine1.example01.com or a free email account from a provider whose name begins with Y and ends in !
Configuration Settings
Per https://www.virtualmin.com/node/8415, configurations
And https://www.virtualmin.com/documentation/email/troubleshooting
Path: Webmin > Usermin Configuation > Usermin Module Configuration > Read Mail
Section: User From addresses
Option: From: address Mapping File set to "/etc/postfix/virtual"
Option: Address mapping file format set to "Address to username(virtusertable)"
Per: https://www.virtualmin.com/node/17716
file /etc/postfix/virtual is world readable
Per: https://www.virtualmin.com/node/32318
Webmin: Networking > Network Configuration
Option: Hostname and DNS Client
hostname is some_name_not_in_dns.example01.com, name is NOT registered in example01.com's DNS records
Additional actions taken
In Squirrlemail
Path: Options > Personal Information > Edit Advanced Identities
email address shows as user_a.example11@example02.com (another domain on machine1.example01.com )
Note: for domain example11.com squirrelmail was probably setup when logged into root at
PARTIAL FIX
Uninstalled Squirrelmail and reinstalled logged into root at
Logged into http://example11.com/squirrelmail/ as user_a.example11
Options > Personal Information > Edit Advanced Identities
show E-Mail Address as "user_a.example11@example11.com"
(some progress at least, mail is now coming from correct domain, username is still not in desired format)
Also, stopped and started Postfix, results did not change
What have I missed?