On 05-18-2021 11:17 am, Matus UHLAR - fantomas wrote:
So, you want postfix X to deliver mail to whatever server is MX for the
recipient domain.
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.
meanwhile, you blame postfix X for delivering the mail locally, when
the
recipient is local for postfix X.
Yes, i understand the logic of what is happening. The only behavior im
trying to change is for the submission service, because on a single
server setup (in my perfect world) postfix is the destination for mail
received via smtp:25 but should never do a local delivery for mail
received via submission:587.
Then simply remove the destination domain from mydestination and
virtual_mailbox_domains on postfix X, because postfix X clearly thinks
the
mail for recipients domain has to be delivered locally.
On a two server setup, your suggestion of virtual_mailbox_domains=""
works, same as virtual_transport=smtp:mxhost.example.com works. However
on a single server setup neither of these would work... they way im
trying to make them work.
After Wietse and Viktor's responses i now see that postfix isn't
designed to do what im trying to accomplish using two different
transport values for smtp:25 vs submission:587. I either have to use
MULTI-INSTANCE or a two server setup.
If im coming across confusing in some of my reply above, its because im
considering both multi server and single server setups. Your suggestion
works for the mutli server, i was just hoping to find a solution that i
could also translate into a single server setup. Im realizing it is not
possible without Viktor's suggestion of MULTI-INSTANCE.