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
Then add the following into it.
email@example.com REJECT firstname.lastname@example.org 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.
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 email@example.com