Plesk

How to manage Plesk email notifications via CLI?

Question

How to manage the email notifications from Tools & Settings > Notifications list via CLI?

For example, for the following components:

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:

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

Exit mobile version