How to block attachment file extension in Postfix (OS= Debian) Step 1. Add the following line on main.cf # vim /etc/postfix/main.cf mime_header_checks = regexp:/etc/postfix/mime_header_checks :wq!                 Save and clos…

Step 1. At first edit the main.cf file of postfix. # vim /etc/postfix/main.cf smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/ protected_destinations , permit_mynetworks, reject_unauth_destination sm…

Block a specific email address in postfix: (incoming)   Sometimes we need to block a specific  email address in postfix. Here is how to do that. Step 1. Add the following line in main.cf # vim /etc/postfix/main.cf smtpd_sende…