Alex: > Hi, > > > > Would I have to have multiple instances of postfix running to be able > > > to control which IP is used for which domain? > > > > Give each instance its owninet_inteerfaces setting. > > > > This is covered in > > http://www.postfix.org/BASIC_CONFIGURATION_READNE.html > > Is there a document that provides a bit more explanation as to how > this would work? Should I also be reading MULTI_INSTANCE?
Yes. If you weant to separate outbound mail streams, use multiple instances with: http://www.postfix.org/BASIC_CONFIGURATION_README.html#myhostname http://www.postfix.org/BASIC_CONFIGURATION_README.html#mydomain http://www.postfix.org/BASIC_CONFIGURATION_README.html#inet_interfaces Or use a partial and more complex solution like below. Wietse /etc/postfix/main.cf # Do "postmap hash:/etc/postfix/sender_transport" after editing the file. sender_dependent_default_transport_maps = hash:/etc/postfix/sender_transport /etc/postfix/sender_transport @one.example smtp_one_example: @two.example smtp_two_example: # How shall bounces be delivered? <> ??? ... - Each delivery transport needs its own smtp_bind_address and smtp_helo_name. - Each smtp_helo_name value needs a DNS A (or AAAA) record that resolves to the corresponding smtp_bind_address value. - Each IP address needs a PTR record that resolves to the smtp_helo_name value. /etc/postfix/master.cf smtp_one_example .. .. .. .. .. .. smtp # Add smtp_bind_address6 as needed -o smtp_bind_address=address-for-one -o smtp_helo_name=helo-for-one smtp_two_example .. .. .. .. .. .. smtp -o smtp_bind_address=address-for-two -o smtp_helo_name=helo-for-two ... Additionally, you may need to reduce process limits in master.cf, or have smtp_one_example_destination_concurrency_limit etc. settings in main.cf.