Change Default e-mail address in usermin

2 posts / 0 new
Last post
#1 Tue, 01/20/2015 - 23:45
carbar

Change Default e-mail address in usermin

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

Tue, 10/20/2015 - 19:52
imclean

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
Topic locked