Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to switch sender (From and Reply to header) and subject of message for backup e-mail notifications in Plesk?
Answer
1. Log into your server via SSH as the root user
2. Open /usr/local/psa/admin/share/pmmcli/pmmcli-rc
for editing in your favorite command-line text editor, specify a required sender mailbox and enter the required mail subject by making sure all of the following entries exist:
Note: Replace example@example.com with any desired mailbox
CONFIG_TEXT: # AUTHREQUIRED param of smtpserver
AUTHREQUIRED 0
# smtpserver user name (not required if AUTHREQUIRED=0)
SMTPUSER example@example.com
# Notification mail 'mail-from' parameter
NOTIFICATION_MAIL_FROM 'example@example.com'
# Notification mail 'mail-reply-to' parameter
NOTIFICATION_MAIL_REPLYTO 'example@example.com'
# Backup task notification mail subject
NOTIFICATION_MAIL_SUBJECT_BACKUP 'Backup task notification'
# Restore task notification mail subject
NOTIFICATION_MAIL_SUBJECT_RESTORE 'Restore task notification'
3. Save the changes and close the file
4. Go to Plesk > Tools & Settings > Backup Manager
5. Press on Back Up
6. Check the When a backup task is completed, send a notification email to box and enter a mailbox on which you would like to receive this notification.
7. Press OK
Afterwards, you must wait for the backup to finish and 20 minutes after it have passed in order for the email to be sent out, so that you may check if it will be delivered properly.1. Connect to the server via RDP
2. Open %plesk_dir%admin\share\pmmcli\pmmcli-rc
for editing in any text editor (such as Notepad), specify a required sender mailbox and enter the required mail subject by making sure all of the following entries exist:
Note: Replace example@example.com with any desired mailbox
CONFIG_TEXT: # AUTHREQUIRED param of smtpserver
AUTHREQUIRED 0
# smtpserver user name (not required if AUTHREQUIRED=0)
SMTPUSER example@example.com
# Notification mail 'mail-from' parameter
NOTIFICATION_MAIL_FROM 'example@example.com'
# Notification mail 'mail-reply-to' parameter
NOTIFICATION_MAIL_REPLYTO 'example@example.com'
# Backup task notification mail subject
NOTIFICATION_MAIL_SUBJECT_BACKUP 'Backup task notification'
# Restore task notification mail subject
NOTIFICATION_MAIL_SUBJECT_RESTORE 'Restore task notification'
3. Save the changes and close the file
4. Go to Plesk > Tools & Settings > Backup Manager
5. Press on Back Up
6. Check the When a backup task is completed, send a notification email to box and enter a mailbox on which you would like to receive this notification.
7. Press OK
Afterwards, you must wait for the backup to finish and 20 minutes after it have passed in order for the email to be sent out, so that you may check if it will be delivered properly.
Comments
0 comments
Please sign in to leave a comment.