From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 17:17:21 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4269A16A4DE for ; Sun, 27 Aug 2006 17:17:21 +0000 (UTC) (envelope-from gshapiro@gshapiro.net) Received: from gir.gshapiro.net (gir.gshapiro.net [209.246.26.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C1D343FD8 for ; Sun, 27 Aug 2006 17:08:51 +0000 (GMT) (envelope-from gshapiro@gshapiro.net) Received: from gir.gshapiro.net (localhost [127.0.0.1]) by gir.gshapiro.net (8.13.5/8.13.6) with ESMTP id k7RH8ifo039081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 27 Aug 2006 10:08:45 -0700 (PDT) (envelope-from gshapiro@gir.gshapiro.net) X-DKIM: Sendmail DKIM Filter v0.5.1 gir.gshapiro.net k7RH8ifo039081 Received: (from gshapiro@localhost) by gir.gshapiro.net (8.13.5/8.13.6/Submit) id k7RH8iw3039080; Sun, 27 Aug 2006 10:08:44 -0700 (PDT) (envelope-from gshapiro) Date: Sun, 27 Aug 2006 10:08:44 -0700 From: Gregory Shapiro To: Dirk Engling Message-ID: <20060827170844.GB1032@gir.gshapiro.net> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44F1B7B7.9090701@erdgeist.org> User-Agent: Mutt/1.5.12-2006-07-14 Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 17:17:21 -0000 > 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.