• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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