Disable receiving email

  1. I wish to use MIAB to send emails only as there is already another MX record and server doing the receiving
  2. To prevent MIAB from complaining, I had to add MIAB as one of the MX records, see Suppress/re-classify MX errors
  3. By adding MIAB, there is a small possiblity that emails will end up in MIAB without anyone knowing
  4. So, is there a way to prevent MIAB from accepting emails for a domain + don’t report any errors in the status checks page?

Just block inbound port 25:

# iptables -A INPUT -p tcp --destination-port 25 -j DROP

Thanks, but that would block all domains.

After some googling, I plan to use smtpd_recipient_restrictions to return 4XX soft bounce. Postfix - how to block emails sending out to a particular domain - Server Fault

This should work right?

Sorry, I assumed you were only running one domain on the box.

I have no idea if that will work. I’ve never done it! But good luck.

After more thoughts, I came to the conclusion that no immediate action was required in my case because the users that exist on the primary server were not created on MIAB, thus it will always lead to a hard bounce, which is also acceptable for now.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.