Articles in this section

Plesk Email Security extension blocklist does not work

kb: bug Plesk for Linux kb: technical ext: pes

Applicable to:

  • Plesk for Linux

Symptoms

  • Plesk Obsidian running on a Linux-based operating system
  • Blocklist configuration in Plesk > Extensions > Plesk Email Security > Server Settings > Blocklist section does not take effect, regardless of how the senders have been entered into the field

  • Emails are delivered to mailboxes, even though it is added to the Blocklist

Cause

This behavior is tied to a known bug for the Plesk Email Security extension with ID #EXTPLESK-4437 Plesk email security blocklist doesn't work. The bug in question will be fixed in future releases of Plesk. You can confirm whether the bug was resolved permanently by looking for the bug ID in the Plesk Change Log.

Resolution

As a temporary workaround, you may block the incoming email senders directly in Postfix by following these steps:

1. Log into your server via SSH

2. Open (or create) the /etc/postfix/sender_access file with your favorite command-line text editor
3. Append sender email ID as necessary by using the following examples:

# ADDRESS PATTERNS         # ACTION
sender@example.com         550 Blacklisted
domain.com                 REJECT
user@                      REJECT

4. Save and close the file

5. Use the postmap command in order to create a database based on the file that was created:

# postmap /etc/postfix/sender_access

6. Open /etc/postfix/main.cf with a command-line text editor and add the following line:

CONFIG_TEXT: smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access

7. Save and close the file

8. Restart Postfix by executing the following command:

# systemctl restart postfix

Alternatively, an easier way to block entire domains from delivering emails to your Plesk server via the Plesk GUI is to to follow the steps in this article:

How to add an email address or domain (top-level domain) to the server-wide blacklist in Plesk? - tab For Plesk on Linux, section Block emails from a domain completely on the mail server level

Additional information

Permanently reject a specific email sender address using postfix - Experiencing Technology

Was this article helpful?

Comments

1 comment
Date Votes
  • Is the blocklist issue in Plesk Email Security Extension (Bug ID EXTPLESK-4437) resolved?

    I’m referring to the known issue EXTPLESK-4437, where the blocklist feature in the Plesk Email Security Extension does not work as expected.

    I’m currently running AlmaLinux 9.6 with the latest version of Plesk. Unfortunately, the blocklist still doesn’t seem to function properly—emails from blocked senders continue to be delivered.

    Could you please let me know whether this issue has been resolved in the current version or if it’s still open? If not yet resolved, is there a recommended workaround?

    Thank you in advance.

    Best regards,

    Michael

    0

Please sign in to leave a comment.