Question
How to manage the email notifications from Tools & Settings > Notifications list via CLI?
For example, for the following components:
- WP Toolkit
- Imunify AV
Answer
Use the plesk bin notification
utility. The general syntax is as follows:
# plesk bin notification --update -code <notification code> -send2admin false -send2reseller false -send2client false -send2email false
where:
-
<notification code>
- the required notification's code. Can be looked up in Plesk documentation or theModuleSettings
database table -
-send2admin
- determines whether or not the notification will be sent to the Administrator. Can be set to true or false -
-send2reseller
- determines whether or not the notification will be sent to the resellers. Can be set to true or false -
-send2client
- determines whether or not the notification will be sent to the customers. Can be set to true or false -send2email
- determines whether or not the notification will be sent to a specific email address set in Tools & Settings > Notifications. Can be set to true or false
Visit the Plesk documentation page for additional details.
Use the examples below to manage specific notifications:
Note: The examples below describe how to disable notifications. To enable notifications, replace the corresponding false
with true
.
WP Toolkit
1. WordPress application updates (administrator's digest)
# plesk bin notification --update -code ext-wp-toolkit-notification-admin_updates -send2admin false -send2reseller false -send2client false -send2email false
2. WordPress application updates (reseller's digest)
# plesk bin notification --update -code ext-wp-toolkit-notification-reseller_updates -send2admin false -send2reseller false -send2client false -send2email false
3. WordPress application updates (customer's digest)
# plesk bin notification --update -code ext-wp-toolkit-notification-client_updates -send2admin false -send2reseller false -send2client false -send2email false
4. WordPress installation is quarantined (administrator's digest)
# plesk bin notification --update -code ext-wp-toolkit-notification-admin_suspicious_instance -send2admin false -send2reseller false -send2client false -send2email false
5. WordPress installation is quarantined (reseller's digest)
# plesk bin notification --update -code ext-wp-toolkit-notification-reseller_suspicious_instance -send2admin false -send2reseller false -send2client false -send2email false
6. WordPress installation is quarantined (customer's digest)
# plesk bin notification --update -code ext-wp-toolkit-notification-client_suspicious_instance -send2admin false -send2reseller false -send2client false -send2email false
Imunify AV
1. ImunifyAV Admin notifications
# plesk bin notification --update -code ext-revisium-antivirus-notification-admin_notification -send2admin false -send2reseller false -send2client false -send2email false
2. ImunifyAV Reseller’s notifications
# plesk bin notification --update -code ext-revisium-antivirus-notification-reseller_notification -send2admin false -send2reseller false -send2client false -send2email false
3. ImunifyAV Client’s notifications
# plesk bin notification --update -code ext-revisium-antivirus-notification-client_notification -send2admin false -send2reseller false -send2client false -send2email false