mail-relay: Up inbound security against backscatter
- Reject mails from internal backend sender domains on inbound
- Reject mails to unverified recipients on inbound
- Ignore Delivery Status Notification commands on inbound
This all aims to prevent the inbound SMTP server from sending mail back to (maybe spoofed) external domains, by making synchronous decisions to accept or reject mail during the initial SMTP exchange and taking steps to avoid initially accepting emails that later turn out to be rejected, and by disabling asynchronous notifications of successful delivery.
The first item also forces internal domains to authenticate through the outbound port even for sending to other backends, making it much harder to spoof mail from one backend domain to another. The flip side is that the outbound relay must now always allow relaying mail from one backend to another internally, without circling through the inbound relay, as a matter of necessity rather than mere optimisation.