Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2012 11:46:21 +0200
From:      Ruben de Groot <mail25@bzerk.org>
To:        "C. L. Martinez" <carlopmart@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Binding IP adress to opensmtpd
Message-ID:  <20120912094621.GA67683@ei.bzerk.org>
In-Reply-To: <CAEjQA5K_ihUsX%2BwLga5xxhUMDw8-OHaa=j%2B%2BKb6cintYTzDfEg@mail.gmail.com>
References:  <504B8A2B.6090007@gmail.com> <20120910105918.GA39171@ei.bzerk.org> <CAEjQA5K_ihUsX%2BwLga5xxhUMDw8-OHaa=j%2B%2BKb6cintYTzDfEg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <mail25@bzerk.org> 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 <only> the smtpd process, using the
same / for root filesystem. Something like

jail / <hostname> <specific IP> /path/to/smtpd

instead of your normal startup command. This is as lean and mean as it gets.

Ruben




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