On Wed, Oct 30, 2024 at 08:57:32PM +0800, Adriel via Postfix-users wrote: > I have another question. Suppose I have two domains: foo.com and bar.com. > Both point to an MX server: mx1.sample.com. However, on mx1.sample.com, I > want to route bar.com's emails to mx2.sample.com, because mx2.sample.com has > the complete user database for bar.com, and mx2.sample.com is only > accessible from restricted IP addresses. In mx1.sample.com's postfix > configuration, I'm using the following settings: > > relay_domains = bar.com > transport_maps = inline:{ > { bar.com = relay:[mx2.sample.com] }} > > Is this configuration correct? Thank you.
Correct, but not complete, it is missing a recipient table for the relay domain, you need: # Real table if more than a handful of users. relay_recipient_maps = inline:{ { la...@bar.com = exists }, { moe@bar@.com = exists }, { cu...@bar.com = exists }, } -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org