On 2018-04-23 (13:38 MDT), Viktor Dukhovni <postfix-us...@dukhovni.org> wrote: > >> On Apr 23, 2018, at 3:30 PM, @lbutlr <krem...@kreme.com> wrote: >> >> I changed my inet_interfaces setting this morning, and stopped and started >> postfix (postfix stop; postfix start) >> >> # postconf -n inet_interfaces >> inet_interfaces = 127.0.0.1, 65.121.55.42 >> >> But when I am trying to send emails to a certain company, I am getting an >> SPF error (even though my entire netblock is in the SPF settings) that >> claims I am connecting from a different IP (an IP that is assigned to the >> same physical machine as postfix) than specified in inet_interfaces. > > You're looking for: > > smtp_bind_address = 65.121.55.42
That would break many things. > The inet_interfaces setting controls what interfaces Postfix listens on, > not the local address of outgoing connections. That does not match what the documentation says, which I quoted. Here it is again. <http://www.postfix.org/postconf.5.html#inet_interfaces> When inet_interfaces specifies just one IPv4 and/or IPv6 address that is not a loopback address, the Postfix SMTP client will use this address as the IP source address for outbound mail. Support for IPv6 is available in Postfix version 2.2 and later.