IP aliasing and Postfix
Коньков Евгений
kes-kes at yandex.ru
Tue Oct 26 17:59:29 UTC 2010
Здравствуйте, 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 at yandex.ru
More information about the freebsd-questions
mailing list