• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question Plesk email alert login

MicheleB

Regular Pleskian
Hello... is possible to activate an email alert when someone login on Plesk (for example when a customer enter to manage its hosting or a user enter on Plesk to manage its mail account)?
Thanks.
 
It seems there was such a feature request on Plesk UserVoice. But I could not find it right away.
 
It seems there was such a feature request on Plesk UserVoice. But I could not find it right away.

I've found this your reply on UserVoice that suggest to use "Event Manager" to do it:

Which command shall I use to send an email to the administrator or custom email?
2020-04-23_08-45-45.png
 
# echo "Test text" | mail -s "Test title" [email protected]

Thanks Igor, it works except the body of the message.
If I use this format the body is empty, "Plesk event" text is not included:
echo "Plesk event" | mail -s "Alert: Plesk user logged in" tech@mypleskdomain

In addition I've two questions:
  1. Is possible to change the "from email"?
    Now I receive the email from psa user ("psaadm@mypleskdomain") but it doesn't exist.
    Is not a priority because I can activate an alias for psaadm@ but I'd like to use another email.
  2. How can I insert a message in the email including the username that logged in to Plesk?
    For example "The user 'mycustomer1' logged in to Plesk".

Thanks.
 
Last edited:
Thanks Igor, it works except the body of the message.
If I use this format the body is empty, "Plesk event" text is not included: mywegmansconnect
echo "Plesk event" | mail -s "Alert: Plesk user logged in" tech@mypleskdomain

In addition I've two questions:
  1. Is possible to change the "from email"?
    Now I receive the email from psa user ("psaadm@mypleskdomain") but it doesn't exist.
    Is not a priority because I can activate an alias for psaadm@ but I'd like to use another email.
  2. How can I insert a message in the email including the username that logged in to Plesk?
    For example "The user 'mycustomer1' logged in to Plesk".

Thanks.

Your information is very interesting. Thank you for sharing
 
Back
Top