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
Comments
0 comments
Please sign in to leave a comment.