I'm looking to reject email that is sent by mail servers thinking its a good idea to send back undeliverable messages for mails that couldn't have possibly come from my mail server.
I also want to have postfix return a proper permanent reject message back, so the sending mail server stops retrying.
Currently I'm using a header_check to rewrite all outgoing Message-IDs to something consistent, and then check on incoming mail for that specific Message-ID format and reject ones that don't match (but only ones that are clearly forged, not ones that are from legit sources). The problem with this is that the REJECT in the header_check (set on the cleanup service) isn't sending back a permanent failure, and some servers continue to retry to send the same reject over and over. It does seem to be returning a 5.7.1 code back, but I'm not seeing which main reply code it's sending back.
I don't need to fix my current method, I'd just like for my server to reject these clearly pointless backscatter emails AND let the admins know of these unwanted emails without creating my own backscatter.