On 3/26/2014 2:42 PM, MV wrote: > I'm trying to use multiple smtp IPs without having multiple postfix instances. > > So I tried to split smtp using transport_maps and that works ok for > local mail destined to foreign destinations. > But it breaks the delivery of foreign mail destined to local > destinations with the error "mail for example.com loops back to > myself". > > Where's the place place to "plug" the custom service > (postfix-smtp-roundrobin.pl)? > > # main.cf > transport_maps = tcp:127.0.0.1:9999 > > # -------%<---------------------------------- > # master.cf > > smtp unix - - n - - smtp > relay unix - - n - - smtp > > 127.0.0.1:smtp inet n - n - - smtpd > > 1.1.1.1:smtp inet n - n - - smtpd > -o myhostname=mx1.example.com > -o smtp_helo_name=mx1.example.com > -o smtp_bind_address=1.1.1.1
You can't set "smtp" options within the "smtpd" service. Use separate postfix instances. -- Noel Jones