From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 09:46:34 2012 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 B63081065670 for ; Wed, 12 Sep 2012 09:46:34 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (ei.bzerk.org [82.95.223.12]) by mx1.freebsd.org (Postfix) with ESMTP id 31BBF8FC1D for ; Wed, 12 Sep 2012 09:46:33 +0000 (UTC) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.4/8.14.4) with ESMTP id q8C9kMm9067734 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 12 Sep 2012 11:46:22 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.4/8.14.4/Submit) id q8C9kMEU067733; Wed, 12 Sep 2012 11:46:22 +0200 (CEST) (envelope-from mail25@bzerk.org) Date: Wed, 12 Sep 2012 11:46:21 +0200 From: Ruben de Groot To: "C. L. Martinez" Message-ID: <20120912094621.GA67683@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , "C. L. Martinez" , freebsd-questions@freebsd.org References: <504B8A2B.6090007@gmail.com> <20120910105918.GA39171@ei.bzerk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-12.9 required=5.0 tests=ALL_TRUSTED,AUTHD_RELAY, BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on ei.bzerk.org Cc: freebsd-questions@freebsd.org Subject: Re: Binding IP adress to opensmtpd 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: Wed, 12 Sep 2012 09:46:34 -0000 On Mon, Sep 10, 2012 at 01:20:47PM +0000, C. L. Martinez typed: > On Mon, Sep 10, 2012 at 10:59 AM, Ruben de Groot wrote: > > On Sat, Sep 08, 2012 at 08:10:51PM +0200, carlopmart typed: > >> Hi all, > >> > >> I have installed opensmtpd on my FreeBSD 8.3. All works ok, except I > >> can't bind smtpd to specific IP address ... In this box, I am using 3 ip > >> aliases, but smtpd sends all emails using the first IP. > >> > >> Is it possible to configure this?? I have tried to fix with hostname > >> option, without result ... > > > > You could run smtpd inside a jail(8) with that IP address. > > > > -- > > Yes it is an option, but too fat option ... This is a vm under ESXi > with only 512 MB RAM ... What do you mean, fat? You can jail the smtpd process, using the same / for root filesystem. Something like jail / /path/to/smtpd instead of your normal startup command. This is as lean and mean as it gets. Ruben