Article ID: 9375, created on Nov 29, 2010, last review on May 10, 2014

  • Applies to:
  • Plesk 9.5 for Linux/Unix


Unable to add one certain network range to the spam protection whitelist. Other ranges can be added without any problems.
You can see following error when you try to add IP range into whitelist:

0: class.MailManager.php:242
MailManager::execWithException(string 'smart_exec', string 'mailmng', array, array, string 'lst')
1: class.MailManager.php:274
MailManager->callMailManager(string 'add-whitelist', array)
2: class.MailManager.php:847
MailManager->addWhitelist(string '', integer '16')
3: mail_white_list_edit.php:50


The problem in fact that IP range already exists in table smtp_poplocks of sqlite database /var/lib/plesk/mail/poplock/poplock.db. This table has ip_address field declared as unique, therefore it is not possible to add the network with other prefix but with the same IP address, so mailmng process will be failed on attempt to insert this IP range.


As possible solution you can remove record with conflict IP address from /var/lib/plesk/mail/poplock/poplock.db database:

# sqlite3 /var/lib/plesk/mail/poplock/poplock.db
SQLite version 3.3.6
Enter ".help" for instructions
sqlite> delete from smtp_poplocks where ip_address='';

where is your IP address which you can't add as IP range to whitelist.

60d3e722783ac7177a2b4b4c13af4062 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 6ef0db7f1685482449634a455d77d3f4 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF