Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to change 'from' field in Plesk email notifications that are being sent to clients?
It contains the personal email address of an administrator which should be hidden.
Answer
Warning: Some notifications are sent from the "System" with address: no-reply@<full-server-hostname>
, such as: Additional Administrators activation email, some password reset requests.
As for now, the only way to change this "System" sender email address is to change the full hostname under Tools & Settings > Server Settings > Full hostname.
The mails that are sent by default over the Administrator mail, they can be adjusted following these steps:
-
Connect to the server via SSH / Connect to the server via RDP
-
Open the panel.ini file for editing, which is located here:
(Plesk for Linux)/usr/local/psa/admin/conf/panel.ini
(Plesk for Windows)%plesk_dir%admin\conf\panel.ini
You can also edit the file in the Plesk interface using the Panel.ini Editor extension. -
Add lines of the following pattern to the panel.ini and save it:
[notification]
senderAddress=<custom email address>For example:
[notification]
senderAddress=plesk_notifications@example.com
Comments
16 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.
Please sign in to leave a comment.