On Fri, 05 Jun 2015 17:30:55 -0400
"Bill Cole" <postfixlists-070...@billmail.scconsult.com> wrote:

> On 5 Jun 2015, at 16:39, Janos Dohanics wrote:
> 
> > Hello Postfix Experts,
> 
> More important in this case: native English speakers.
> 
> > I want Postfix send mail from 199.233.231.177, so I set:
> >
> > # postconf inet_interfaces
> > inet_interfaces = 199.233.231.177, localhost
> >
> > But, the mail log on the destination server says:
> >
> > Jun  5 13:43:52 barrida postfix/smtpd[54769]: connect from 
> > gtxd.x.rootbsd.net[162.217.113.30]
> >
> > So, I added to the main.cf file:
> >
> > # postconf smtp_bind_address
> > smtp_bind_address = 199.233.231.177
> >
> > And now Postfix sends mail from the desired IP address, 
> > 199.233.231.177.
> >
> > Jun  5 16:24:47 barrida postfix/smtpd[56193]: connect from 
> > unknown[199.233.231.177]
> >
> > But I should not need smtp_bind_address set to 199.233.231.177 as
> > according to 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."
> >
> > Evidently, I'm missing something, would you please help?
> 
> Your configuration does not specify "just one IPv4 and/or IPv6
> address that is not a loopback address". It specifies two addresses,
> just one of which is not a loopback address. Those are quite
> different statements.
> 
> It might be less open to misunderstanding if that bit said "just one 
> IPv4 and/or IPv6 address AND that address is not a loopback address"
> but it makes for a clumsier sentence. I am unable to explain
> logically why the existing sentence does not say what you understood
> it to mean, I can only say that it's idiomatic English.

Bill,

thanks for the English lesson which I may well have needed; I have
misunderstood the sentence I quoted. But then, I have another computer
(FreeBSD 9.2-STABLE, postfix-2.11.5,1) which has:

# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        
options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
        ether 00:16:3e:6f:18:c9
        inet 199.102.77.98 netmask 0xfffffff8 broadcast 199.102.77.103
        inet6 fe80::216:3eff:fe6f:18c9%em0 prefixlen 64 scopeid 0x2 
        inet 199.102.77.99 netmask 0xfffffff8 broadcast 199.102.77.103
        inet 199.102.77.100 netmask 0xfffffff8 broadcast 199.102.77.103
        inet 199.102.77.101 netmask 0xfffffff8 broadcast 199.102.77.103
        inet 199.102.77.102 netmask 0xfffffff8 broadcast 199.102.77.103
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        
options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
        ether 00:16:3e:54:0f:35
        inet 10.12.45.98 netmask 0xfffffff8 broadcast 10.12.45.103
        inet6 fe80::216:3eff:fe54:f35%em1 prefixlen 64 scopeid 0x3 
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
        inet 127.0.0.1 netmask 0xff000000 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

# postconf inet_interfaces
inet_interfaces = 199.102.77.99, localhost

# postconf smtp_bind_address
smtp_bind_address =

And on the destination server, the mail log says:

Jun  5 19:23:52 barrida postfix/smtpd[57612]: connect from 
smtpc.telissant.net[199.102.77.99]

Can you explain?

-- 
Janos Dohanics

Reply via email to