ceturtd., 2024. g. 1. aug., plkst. 14:10 — lietotājs Viktor Dukhovni via Postfix-users (<postfix-users@postfix.org>) rakstīja: > > On Thu, Aug 01, 2024 at 12:54:16AM +0300, Dāvis Mosāns via Postfix-users > wrote: > > > and in master.cf I have: > > submissions inet n - n - - smtpd > > -o syslog_name=postfix/submissions > > -o smtpd_tls_wrappermode=yes > > -o smtpd_tls_security_level=encrypt > > -o smtpd_sasl_auth_enable=yes > > -o transport_maps=lmdb:/etc/postfix/submission_transport > > > > where submission_transport is empty file. > > This can't work, because the transport lookups that *matter* are > performed by qmgr(8) during delivery from the active queue, not smtpd(8) > while adding the message to the queue. There's only one shared qmgr(8), > so the transport(8) table is effectively global. > > If you want separate routing (transport table) of incoming and outgoing mail, > you need multiple Postfix instances. > > https://www.postfix.org/MULTI_INSTANCE_README.html >
Nice! That works :) I created 2 instances where one master.cf has submissions inet n - n - - smtpd smtp unix - - n - - smtp without transport_maps and other has smtp inet n - n - - smtpd with transport_maps now it works exactly as I wanted. Also it turned out that I needed "smtp unix" otherwise it was failing with: postfix/qmgr[13862]: warning: connect to transport private/smtp: Connection refused Thanks! _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org