Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Oct 2010 20:59:30 +0300
From:      =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= <kes-kes@yandex.ru>
To:        Joe Auty <joe@netmusician.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: IP aliasing and Postfix
Message-ID:  <36662175.20101026205930@yandex.ru>
In-Reply-To: <4CC71554.4040308@netmusician.org>
References:  <4CC71554.4040308@netmusician.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Здравствуйте, Joe.

Вы писали 26 октября 2010 г., 20:52:20:

JA> Hello,

JA> I have a few IP aliases setup:

JA> em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
JA>         options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
JA>         ether 00:0c:29:79:d5:66
JA>         inet <address1> netmask 0xffffff80 broadcast <broadcast address>
JA>         inet <address2> netmask 0xffffff80 broadcast <broadcast address>
JA>         inet <address3> netmask 0xffffff80 broadcast <broadcast address>
JA>         media: Ethernet autoselect (1000baseT <full-duplex>)
JA>         status: active


JA> How do I make address3 the ifconfig default over its aliases?


JA> The problem is, as far as mail sending goes the IP address that should
JA> be used is address3, when what is presented to my relayhost is address1.
JA> My rc.conf:

JA> ifconfig_em0="inet address3  netmask 255.255.255.128"
JA> ifconfig_em0_alias0="inet address1  netmask 255.255.255.128"
JA> ifconfig_em0_alias1="inet address2  netmask 255.255.255.128"


JA> How do I get Postfix to use address3 in sending out mail? If I set
JA> Postfix's myhostname to a FQDN that resolves as address3,
JA> inet_interfaces will not work when set to:

JA> inet_interfaces = $myhostname

JA> it needs to be set to:

JA> inet_interfaces = $myhostname, localhost


JA> I see nothing in Postfix that would explain why Postfix is gleaming onto
JA> address1, which makes me think that perhaps this is a BSD ifconfig thing
JA> and it is gleaming onto the first address it finds associated with my
JA> em0 interface, which if the ifconfig and its IP order means anything, is
JA> address1? Does this make sense?

JA> Anyway to set the default here?


# OUTGOING MAIL FROM IP
smtp_bind_address=<address3>



-- 
С уважением,
 Коньков                          mailto:kes-kes@yandex.ru




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36662175.20101026205930>