Article ID: 120925, created on Apr 6, 2014, last review on May 4, 2016

  • Applies to:
  • Plesk for Linux/Unix

Symptoms :

How to set spam filter settings for bunch of email accounts avoiding configuration of Spamassassin on server level in Plesk for Linux?

Resolution :

Plesk GUI and spamasassin utility do not support multiple mail accounts management at once. Instead, the following command should be used to update multiple mailboxes simultaneously:

# mysql -uadmin -p`cat /etc/psa/.psa.shadow ` -Dpsa -Ne"SELECT CONCAT(mail_name,'@',name) FROM mail,domains WHERE AND postbox='true';"|while read i;do /usr/local/psa/bin/spamassassin -u $i -status true -action del -hits 5;done

This command will enable Spamassassin on all mailboxes (if disabled), set 5 hits required for marking a message as spam, set spam messages to be deleted

Additional information

For details about spam settings management via Plesk CLI, visit:

122520 [How to] Manage spam settings in Plesk via CLI?

Search Words

spamassassin parallels

manage mail settings in bunch batch spam assassin spamassassin filter

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 29d1e90fd304f01e6420fbe60f66f838

Email subscription for changes to this article
Save as PDF