Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
Plesk email notifications sent to clients contain the personal email of the Administrator. How to change the 'From' field to hide this personal email address?
Answer
Warning: The solution below works only if Postfix/Qmail is installed on the server and is not relevant for MSMTP (relay only)
Plesk administrator can specify a custom email address to be used as a mail relay. The email address will be used as the sender address for all Plesk email notifications enabled in the Tools & Settings > Notifications menu.
To adjust the settings, perform the following:
-
Edit the Plesk panel.ini file by adding the lines below there:
CONFIG_TEXT: [notification]
senderAddress=<custom email address>For example:
Note: Some notifications such as Additional Administrators activation email, password reset requests, etc. are sent from the "System" with the address: no-reply@<full-server-hostname>
. To change this "System" sender email address set the required full hostname under Tools & Settings > Server Settings > Full hostname.
Comments
21 comments
Plesk/Onyx 17.8.11. In my case plesk sends from an email like: root@subdomain.mydomain.com. It is the subdomain the server is set up on.
This is not the email set at My Profile, even after i changed it.
As a result emails are undelivered due to not meeting sending guidelines.
So, how do i change the email? The above doesn't work.
Hello @Tony Saravazėhos,
The behaviour when notifications from Plesk are delivered to Spam folders is considered as Plesk bug with ID #PPPM-7489 which will be fixed in the future Plesk versions.
Please see the additional information below:
https://support.plesk.com/hc/en-us/articles/115003684634
Plesk uses root@hostname as the return path.
At the moment, there is no functionality to change the notifications email address.
Hi,
so, if I use plesk@mydomain.com for the administrator email, how do I set it up so that those emails are sent from that address, but to another, like admin@mydomain.com ?
Hello @Michele,
The workaround is provided here, in the 1st comment.
thank you Ivan,
that works indeed.
:)
The provided answer is absolutely not true - though the workaround provided by Ivan can work. But it is not an option to set up more mail servers.
Please make fields in the server settings for "System Mail Sender Address" and "System Mail Sender Name". Thanks.
Hello Lasse B.
Feel free to vote here, this should speed up the implementation.
Sorry.. I don't have an account to that system.
Lasse B. I believe my colleague Ivan wanted to provide a link to user voice where you can register for free and add your vote:
https://plesk.uservoice.com/forums/184549-feature-suggestions/suggestions/16956373-set-a-senders-email-address-for-plesk-notification
This does not work out when using MSMTP
You can work around the problem with the sender/from address (if using Debian as I do) for a period until next update of psa (and following system restart) by doing this:
Go far down in the script file until the function named mc_generate_msmtp_config() and modify the content of the function.
I have changed/set the following options/settings:
auto_from off #*** Changed to off
#maildomain xxx #*** Commented out
#domain xxx #*** Commented out
from no-reply@yourdomain.tld #*** Changed to your desired sender address
The above works 100%, but must only be used on you own risk!!!
Even though my psa has been updated, the settings/changes are still in /etc/msmtprc as it hasn't been overwritten yet because the system has not been restarted since.
Hope this can help some. But i would still recommend the Plesk dev team to add this small feature, so a "from address" can be entered into the settings and used when generating /etc/msmtprc.
This is not working for me. I changed the administrator email in his profile (it's the only user account in plesk), but the backup notification emails are still sent from the previous email address. I also restarted plesk and all his services. There must be the old address saved somewhere, but can't find where.
I suggest that this feature request is more appropriate.
Additionally, the From: email address of notifications needs to be set separately from the To: address, so that SPF checks on the notifications don't fail and cause the notifications to be rejected or marked as spam due to SPF failure. In many cases, the Plesk server IP is not authorized by SPF to send mail pretending to be from the email address set as the Plesk administrator.
Wow! so disappointed.
Changing email address to send Administrative emails and being able to configure SMTP account is such a basic requirement. This will help emails going to SPAM folder. Not sure if this will ever happen... their own administrative emails go to SPAM folder when you signup or reset the password and they are not bothered.
WOW shocking!!
This security breach I had to contact Plesk Support today about this problem today also.
I think you either do something about it or court action would be taken in the effect of you leaking people's email addresses there weren't any docs or warnings to tell us not to use our personal email addresses on our profiles.
DATA PROTECTION GDPR
Are you serious? Why would you use a personal email in a company service\server where you resell space to others exactly? This is your fault. This has nothing to do with the GDPR. You intentionally put your email there. And is your own server which is using it. No one else is using it. GDPR has nothing to do with it.
i have obsidian 18.0.47 on ubuntu and cannot find panel.ini in the indicated directory neither Tools & Settings > Server Settings > Full hostname. tab...
@Laurent Just install the panel.ini editor extension.
It didn't work on my server... Plesk Obsidian 18.0.44 on Debian 9.13 with Postfix installed. I added these lines on panel.ini using the editor extension. Plesk keeps sending all the messages from my external email address set on my profile. What could be wrong?
Thank you
Hello Alex Bosch,
This feature was added in Plesk Obsidian 18.0.45: https://docs.plesk.com/release-notes/obsidian/change-log/#plesk-18045. Debian 9 reached EOL and is currently not supported, so no further Plesk updates are available for such a server.
Please either migrate to a new server with the supported OS and Plesk versions: https://support.plesk.com/hc/en-us/articles/213912645 or consider performing a dist-upgrade: https://support.plesk.com/hc/en-us/articles/213410369.
Hi, Anastasia;
We already have planned to update to a new OS soon. I’ll try again when it is done.
Thank you so much
Please sign in to leave a comment.