How to change 'from' field in Plesk email notifications sent to clients?

Follow

Comments

13 comments

  • Avatar
    Tony Saravazėhos

    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.

    1
    Comment actions Permalink
  • Avatar
    Maxim Krasikov

    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.

    0
    Comment actions Permalink
  • Avatar
    Michele Iannello

    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 ?

     

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello @Michele,

    The workaround is provided here, in the 1st comment.

    0
    Comment actions Permalink
  • Avatar
    Michele Iannello

    thank you Ivan,

    that works indeed. 

    :)

     

    0
    Comment actions Permalink
  • Avatar
    Lasse B.

    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.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Lasse B.

    Feel free to vote here, this should speed up the implementation. 

    0
    Comment actions Permalink
  • Avatar
    Lasse B.

    Sorry.. I don't have an account to that system.

    0
    Comment actions Permalink
  • Avatar
    Anton Maslov

    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

     

    0
    Comment actions Permalink
  • Avatar
    Nico Wiedemann

    This does not work out when using MSMTP

    0
    Comment actions Permalink
  • Avatar
    Lasse B.

    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:

    1. log into your installation as root
    2. navigate to /opt/psa/admin/sbin
    3. backup the file msmtpmng (in case you need to restore the file) using the command: cp msmtpmng msmtpmng.org
    4. edit the msmtpmng file. This file is used to generate the msmtp configuration at "/etc/msmtprc" being used by the system when sending mails with msmtp.
      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.

    0
    Comment actions Permalink
  • Avatar
    Giuseppe Tripiciano

    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.

    1
    Comment actions Permalink
  • Avatar
    Bob B

    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.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request