CONTROL PANELS Mail Servers Plesk

Block outgoing email of a domain in Plesk – Postfix

Block outgoing email
Block outgoing email

Block outgoing email of a domain in Plesk – Postfix

This post explains how to Block outgoing email of a domain in Plesk using Postfix mail server.

First, you need to create a file “/etc/postfix/recipient” using your favorite editor. I am using vim editor here. To know more about vi editor, please click Here

 
vim /etc/postfix/recipient

Then add the following into it.

 
spam-receiver1@domain1.com REJECT
spam-receiver2@domain2.com REJECT

Please change domain1.com and domain2.com with the desired domain names.

Edit Postfix configuration file and search for “smtpd_recipient_restrictions =“. Add “check_recipient_access hash:/etc/postfix/recipient” in the biginning of the string.

 
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recipient, permit_mynetworks, ...

Restart Postfix service.

 
service postfix restart

Run the following command to verify there is no issue with the hash-file creation.

That’s it!

If you like this post and wish to receive more articles from us, please like our FB page: Grepitout

Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.

For more details on our services, please drop us an E-mail at info@grepitout.com

Topics