Hi everyone,

I'm trying to implement load balancing thanks to /transport_maps/ and /randmap/ as described in postfix 3.0 release notes[1].

/etc/postfix/local_transport_map

   my.domain    :
   .my.domain   :

(where myhostname = myorigin = virtual_mailbox_domains = my.domain)

Then I have in main.cf: transport_maps = hash:/etc/postfix/local_transport_map randmap:{smtp:[relay1.com]:587 smtp:[relay2.com]:587}

(with /etc/postfix/local_transport_map being postmap'ed, and postfix reloaded)

*What I expected*: incoming mail for my.domain to be delivered locally (virtual), outgoing mail to be balance-relayed through relay1 and relay2.

*What I get*: incoming and outgoing mail are being balance-relayed through relay1 and relay2.

*Questions*:

 * How do I make sure that incoming mail for locally-managed domains is
   delivered locally, not relayed?
 * Could it have something to do with local delivery being 'virtual'
   and not 'local'?

Thank you very much in advance,
Nico

P.S.: I'm running postfix 3.5.6. Also, I believe this question[2] is showing the same issue.

[1] http://postfix.cs.utah.edu/source/official/postfix-3.0.0-RC1.RELEASE_NOTES

[2] https://stackoverflow.com/questions/62561912/how-to-configure-postfix-with-transport-maps-and-randmap

Attachment: OpenPGP_0x23459069119D37B6.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to