Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2006 10:08:44 -0700
From:      Gregory Shapiro <gshapiro@freebsd.org>
To:        Dirk Engling <erdgeist@erdgeist.org>
Cc:        hackers@freebsd.org
Subject:   Re: jails, cron and sendmail
Message-ID:  <20060827170844.GB1032@gir.gshapiro.net>
In-Reply-To: <44F1B7B7.9090701@erdgeist.org>
References:  <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> <44F1B7B7.9090701@erdgeist.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> But it prevents a vanilla system to try to connect to localhost:25 once
> a day. Only those periodic scripts send mails per default.

If you still want mail to work, but don't want to listen on a network
port:

cd /etc/mail/
make
vi `hostname`.submit.mc
    Change the 127.0.0.1 in the line "FEATURE(`msp', `[127.0.0.1]')dnl"
    to an IP address that has a listening SMTP server and will accept
    mail from your jail.  You can also use a hostname, for example,
    FEATURE(`msp', `smtp.example.com')
make install

Then make sure you leave the default for sendmail_outbound_enable ("YES")
and turn off the others.  You'll have a system where mail works just fine
and nothing listens on any TCP port.



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