From owner-freebsd-questions@FreeBSD.ORG Tue Oct 26 17:52:31 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 24DBC106566C for ; Tue, 26 Oct 2010 17:52:31 +0000 (UTC) (envelope-from joe@netmusician.org) Received: from mail.netmusician.org (dorian.netmusician.org [66.244.95.101]) by mx1.freebsd.org (Postfix) with ESMTP id CFB398FC14 for ; Tue, 26 Oct 2010 17:52:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netmusician.org (Postfix) with ESMTP id B4E4BB874 for ; Tue, 26 Oct 2010 13:52:29 -0400 (EDT) X-Virus-Scanned: amavisd-new at netmusician.org Received: from mail.netmusician.org ([127.0.0.1]) by localhost (dorian.netmusician.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id FjoGADKHJmG5 for ; Tue, 26 Oct 2010 13:52:28 -0400 (EDT) Received: from Shakti.local (c-98-223-185-224.hsd1.in.comcast.net [98.223.185.224]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.netmusician.org (Postfix) with ESMTPSA id D9100B86C for ; Tue, 26 Oct 2010 13:52:27 -0400 (EDT) Message-ID: <4CC71554.4040308@netmusician.org> Date: Tue, 26 Oct 2010 13:52:20 -0400 From: Joe Auty User-Agent: Postbox 2.0.1 (Macintosh/20101011) MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: IP aliasing and Postfix X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2010 17:52:31 -0000 Hello, I have a few IP aliases setup: em0: flags=8843 metric 0 mtu 1500 options=9b ether 00:0c:29:79:d5:66 inet netmask 0xffffff80 broadcast inet netmask 0xffffff80 broadcast inet netmask 0xffffff80 broadcast media: Ethernet autoselect (1000baseT ) status: active How do I make address3 the ifconfig default over its aliases? The problem is, as far as mail sending goes the IP address that should be used is address3, when what is presented to my relayhost is address1. My rc.conf: ifconfig_em0="inet address3 netmask 255.255.255.128" ifconfig_em0_alias0="inet address1 netmask 255.255.255.128" ifconfig_em0_alias1="inet address2 netmask 255.255.255.128" How do I get Postfix to use address3 in sending out mail? If I set Postfix's myhostname to a FQDN that resolves as address3, inet_interfaces will not work when set to: inet_interfaces = $myhostname it needs to be set to: inet_interfaces = $myhostname, localhost I see nothing in Postfix that would explain why Postfix is gleaming onto address1, which makes me think that perhaps this is a BSD ifconfig thing and it is gleaming onto the first address it finds associated with my em0 interface, which if the ifconfig and its IP order means anything, is address1? Does this make sense? Anyway to set the default here? -- Joe Auty, NetMusician NetMusician helps musicians, bands and artists create beautiful, professional, custom designed, career-essential websites that are easy to maintain and to integrate with popular social networks. www.netmusician.org joe@netmusician.org