I did not get this solution started in the proper direction -- sorry. I believe the following solution is closer:
main.cf: sender_dependent_relayhost_maps = regexp:/etc/postfix/sender_relay.regexp sender_relay.regexp: /@raystedman\.org$/ [smtp-relay.gmail.com] This should relay email where the from email address contains the domain @raystedman.org to smtp-relay.gmail.com. I need this relay to use a specific ip address to separate bulk and transactional email onto different ip addresses. How can I accomplish this? Thanks, Greg www.RayStedman.org On Wed, Aug 26, 2020 at 1:43 PM Greg Sims <webmas...@raystedman.org> wrote: > > I would like to separate our bulk email and transactional email on > different ip addresses. All of the transactional email will be sent > to a remote email gateway for delivery. This gateway is authenticated > by ip address. > > It seems that I need to add an entry to my transport.regexp so all > email for our domain uses a specific transport: > > '@raystedman\.org$/ raystedman: > > Then create an smtp process in master.cf to bind a specific ip address: > > raystedman unix - - n - - smtp > -o smtp_bind_address=xxx.xxx.xxx.234 > -o smtp_helo_name=mail0.raystedman.org > -o syslog_name=raystedman > > Now I need this smtp process to deliver to the email gateway which is: > smtp-relay.gmail.com. How can I associate this gateway address with > the raystedman: transport? > > Thanks, Greg > www.RayStedman.org