From owner-freebsd-questions@FreeBSD.ORG Tue Oct 26 17:59:29 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 842D71065674 for ; Tue, 26 Oct 2010 17:59:29 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward4.mail.yandex.net (forward4.mail.yandex.net [77.88.46.9]) by mx1.freebsd.org (Postfix) with ESMTP id 2D4D08FC12 for ; Tue, 26 Oct 2010 17:59:28 +0000 (UTC) Received: from smtp3.mail.yandex.net (smtp3.mail.yandex.net [77.88.46.103]) by forward4.mail.yandex.net (Yandex) with ESMTP id 43C1C6AD8D1B; Tue, 26 Oct 2010 21:59:27 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1288115967; bh=7jFErVPqFzh5jc9J4gh2y4eAFesui6maVadDioWU38A=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=q9nPFefWSGJ8jiu3DodBgJSl1lUe+mAXEKE6W5FX4bBxAifKqdkEBj0WsVIIhRAEC cjSYv744xZQ8e/Q2bhHlwqMuJOuTNRLaYV0B9UCk+0MbdqIl+uOYwCB6GYZeLiMLse csmjUXVKEaePRQP2gLhxo32zVbVbX+gK2gJPqWRk= Received: from HOMEUSER (unknown [77.93.42.18]) by smtp3.mail.yandex.net (Yandex) with ESMTPA id 3F58227809F; Tue, 26 Oct 2010 21:59:26 +0400 (MSD) Date: Tue, 26 Oct 2010 20:59:30 +0300 From: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?utf-8?B?0KfQnyDQmtC+0L3RjNC60L7QsiwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <36662175.20101026205930@yandex.ru> To: Joe Auty In-Reply-To: <4CC71554.4040308@netmusician.org> References: <4CC71554.4040308@netmusician.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-Yandex-TimeMark: 1288115967 X-Yandex-Spam: 1 X-Yandex-Front: smtp3.mail.yandex.net Cc: freebsd-questions@freebsd.org Subject: Re: IP aliasing and Postfix X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?utf-8?B?0JrQvtC90YzQutC+0LIg0JXQstCz0LXQvdC40Lk=?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2010 17:59:29 -0000 Здравствуйте, Joe. Вы писали 26 октября 2010 г., 20:52:20: JA> Hello, JA> I have a few IP aliases setup: JA> em0: flags=8843 metric 0 mtu 1500 JA> options=9b JA> ether 00:0c:29:79:d5:66 JA> inet netmask 0xffffff80 broadcast JA> inet netmask 0xffffff80 broadcast JA> inet netmask 0xffffff80 broadcast JA> media: Ethernet autoselect (1000baseT ) 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= -- С уважением, Коньков mailto:kes-kes@yandex.ru