• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Resolved Plesk Email Security bug aftermath - script to push server wide settings to all mailboxes

TomBoB

Silver Pleskian
Server operating system version
AlmaLinux 8.10
Plesk version and microupdate number
Plesk 18.0.68 #1
In order to resolve the non-delivery of mails during the PES bug the PES extension was removed, then reloaded. Resolved it on most servers but had the after effect that the mailbox security settings were reset to default (for most).
Server wide security settings are as they should be. Custom level, send to Spam folder, certain allow and block lists.
Anyone know which CLI command to use to push those server wide settings to all mailboxes on an effected server?
 
Thanks for the question, Tom. For anyone else who might come across this issue, you should be able to achieve that using the following command:

plesk ext email-security --settings-reset-policy

(Reset spam policy to server default for all users - no values)

To be on the safe side, please create a backup copy beforehand, just in case:

plesk db dump emailsecurity > emailsecurity.sql
 
Back
Top