• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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" admin@domain.tld

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