• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved How to backup the spam filter black list

Blairvoyach

New Pleskian
Server operating system version
Windows server 2012 r2
Plesk version and microupdate number
Obsidian 18.0.44 update #3
Can anyone tell me either where the email black list is stored in Plesk for windows or a method of exporting it? I have hundreds of blocked addresses and domains but can't find any way to back them up as an independent backup in case I want to re-install or start a new server.
 
The server-wide Black List is located in the badmailfrom table of the Plesk database:
Code:
C:\>plesk db "select * from badmailfrom"
+----+--------------+---------------+
| id | domain       | serviceNodeId |
+----+--------------+---------------+
|  1 | *@domain.com |             1 |
+----+--------------+---------------+
This corresponds to the information in the Plesk GUI in Tools and Settings > Mail Server Settings > Black List
 
The server-wide Black List is located in the badmailfrom table of the Plesk database:
Code:
C:\>plesk db "select * from badmailfrom"
+----+--------------+---------------+
| id | domain       | serviceNodeId |
+----+--------------+---------------+
|  1 | *@domain.com |             1 |
+----+--------------+---------------+
This corresponds to the information in the Plesk GUI in Tools and Settings > Mail Server Settings > Black List
Stumbled onto this while trying to find a way to migrate the block list from one server to another, but after importing to the new servers database, Plesk still shows an empty list. Do we need to trigger a config file regeneration somehow? (Linux here)
 
I'd recommend using the CLI utility for this.

You can view all blacklist entries using this command:
Code:
plesk bin mailserver --info black-list

And add any domains to the blacklist with this command:
Code:
plesk bin mailserver --add-to-black-list example.com
 
I'd recommend using the CLI utility for this.

You can view all blacklist entries using this command:
Code:
plesk bin mailserver --info black-list

And add any domains to the blacklist with this command:
Code:
plesk bin mailserver --add-to-black-list example.com
Thanks. Turns out the page just took a while to update and does now show the imported entries, and I can see them with this command too so presumably all is good now =).
 
Back
Top