How to change the "from" email address of Webmin email notifications?

5 posts / 0 new
Last post
#1 Tue, 08/07/2012 - 12:24
glenvistalabs

How to change the "from" email address of Webmin email notifications?

Hello,

In order to avoid having a server get flagged for sending spam, I'm trying to change the from email field of Webmin notifications, i.e. backups not working, so that it's from a FQDN that actually points to the host. I've done everything necessary in the MTA configuration (Postfix), yet the domain name of notification emails is still the non-FQDN name of the host as it was set in /etc/hosts during the installation of the OS (Ubuntu Server).

The particular host name being used by Webmin is the name associated with 127.0.0.1. Is there a way to get around having Webmin use that hostname without having to edit /etc/hosts? Is there an option buried somewhere in the menus that I've been overlooking?

Tue, 08/07/2012 - 13:50
andreychek

Howdy,

You can set your desired email address in System Settings -> Virtualmin Config -> Actions upon user and server creation, and in there you can set "From: address for email sent by Virtualmin".

-Eric

Tue, 08/07/2012 - 14:59
glenvistalabs

Ah, I see. So it is a per-VPS setting? Is there any way to bulk change this, or will I need to change it in every domain (and how?)

Thank you very much.

Wed, 08/08/2012 - 23:13
andreychek

Howdy,

Settings in System Settings -> Virtualmin Config are valid for your entire server.

So you only need to make that one change, and then emails sent from Webmin/Virtualmin should do so using that email address.

-Eric

Wed, 08/24/2016 - 12:12
eddieb

It seems that this answer is outdated.

Webmin uses the address set in webmin/edit_sendmail.cgi, while virtualmin (haven't checked) uses the address set as described above. Is this correct?

Operating system Ubuntu Linux 16.04.1 Webmin version 1.810 Virtualmin version 5.04

Topic locked