- Plesk for Linux
- Plesk for Windows
- Unable to add more than 100 email addresses to SpamAssassin White List or Black List through Plesk interface either in Tools & Settings > Spam Filter or in Subscriptions > example.com > Mail > Email Addresses > firstname.lastname@example.org > Spam Filter (this tab will be available if SpamAssassin is installed).
After 100 addresses are added, the following message is shown:
PLESK_ERROR: Error: Only %available%% unique email addresses can be added.
PLESK_WARN: Warning: Only 100 first unique e-mail addresses will be added.
PLESK_ERROR: ERR  PleskUtilException: spammng failed:
Plesk has a default limit on the number of email addresses that can be added to SpamAssassin black/white lists.
This is done because a large number of addresses in the SpamAssassin white/black lists may significantly reduce server performance.
First of all, connect to the server using SSH.
For Plesk 11.0 and earlier, use the following SQL query to set the maximum number of addresses to 150:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e "replace into misc values('spamfilter_max_addr_list_length', 150);"
Starting from Plesk 11.5, use different query to perform the same action:
# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e "replace into ServiceNodeConfiguration values (1, 'mailServer', 'spamfilter_max_addr_list_length', 150);"