These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Change Default e-mail address in usermin on the new forum.
Hi,
Usermin uses one of domains which is an alias of my main virtualmin server domain as the default "from address" in sent e-mails. It probably selects the first domain in alphabetic order. How can I change that default behavior? In short, I need to change the default e-mail address shown under mail - usermin on the top left side of the interface. (I would've attached a screen shot but upload fails with: oops there was a problem Validation error, please try again. If this error persists, please contact the site administrator.)
Thanks for your help
While this is an old question, it turns up in searches.
To change the order of the domains per virtual server, edit the "From: address mapping file". To find out what this is, go to Webmin -> Usermin Configuration -> Usermin Module Configuration -> Read Mail and search for "From: address mapping file".
In our case, the file is:
/etc/postfix/virtual
Edit the file from the command line and make sure your preferred alias is above all other aliases for the same account.
e.g.
my@preferredemailaddress.com emailaddress.my
my@emailaddress.com emailaddress.my