> On May 18, 2021, at 11:45 AM, post...@ptld.com wrote: > > Yes, and postfix X is not the MX server for the recipient domain. If you > didn't get the beginning of this thread, the purpose of postfix X is to be > only a submission service for dovecot/imap. I wouldn't even use postfix if > possible and let dovecot do the submission:587 service however dovecot has no > mechanisms for reject_sender_login_mismatch. So i need postfix in the loop > unless i want to allow people to send spoofed from addresses.
A multi-instance configuration can do what you ask and more. Trying to shoehorn this sort of policy into a single instance won't work, because once a message is in the queue, how it got there is mostly irrelevant. Since the recipient is local, it will be delivered locally. If you try to deliver it via SMTP to "self", it will loop. Breaking the loop in a way that depends on the recipient domain requires multiple instances. I believe this is the third time I've said that that's the main way (likely the only way) to do this. -- Viktor.