> 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

The inet_interfaces setting controls what interfaces Postfix listens on,
not the local address of outgoing connections.

If you do make any connections to localhost for content filters and
the like, you'll need to unset smtp_bind_address for the transport
that connects to loopback addresses.

-- 
        Viktor.

Reply via email to