From owner-freebsd-questions@freebsd.org Fri Feb 16 16:27:12 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 016D9F226AC for ; Fri, 16 Feb 2018 16:27:12 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 94E3E83E2B for ; Fri, 16 Feb 2018 16:27:11 +0000 (UTC) (envelope-from galtsev@kicp.uchicago.edu) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 8423F6254C for ; Fri, 16 Feb 2018 11:17:51 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xn-sTWjoaR8f for ; Fri, 16 Feb 2018 11:17:49 -0500 (EST) Received: from inet07.hamilton.harte-lyne.ca (inet07.hamilton.harte-lyne.ca [216.185.71.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "imap.hamilton.harte-lyne.ca", Issuer "CA HLL ISSUER 01" (not verified)) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPS for ; Fri, 16 Feb 2018 11:17:49 -0500 (EST) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (verified OK)) by inet07.hamilton.harte-lyne.ca (Postfix) with ESMTPS id 0A13D8A47D for ; Fri, 16 Feb 2018 11:17:48 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 7A2136254C for ; Fri, 16 Feb 2018 11:17:47 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XkUBWGvQrtIS for ; Fri, 16 Feb 2018 11:17:42 -0500 (EST) X-Greylist: delayed 1408 seconds by postgrey-1.34 at inet08.hamilton.harte-lyne.ca; Fri, 16 Feb 2018 11:17:42 EST Received: from kicp.uchicago.edu (kicp.uchicago.edu [128.135.20.70]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP for ; Fri, 16 Feb 2018 11:17:42 -0500 (EST) Received: from point.uchicago.edu (point.uchicago.edu [128.135.52.6]) by kicp.uchicago.edu (Postfix) with ESMTP id 683F0718043; Fri, 16 Feb 2018 09:54:13 -0600 (CST) Subject: Re: Administrative email from FreeBSD jails To: dweimer@dweimer.net, byrnejb@harte-lyne.ca Cc: freebsd-questions@harte-lyne.ca, owner-freebsd-questions@freebsd.org References: <0e77f110b4b3072a9328ea014cfc0284.squirrel@webmail.harte-lyne.ca> <09f70d8be56b28d756c5d1412f2e033d@dweimer.net> From: Valeri Galtsev Message-ID: Date: Fri, 16 Feb 2018 09:54:13 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <09f70d8be56b28d756c5d1412f2e033d@dweimer.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2018 16:27:12 -0000 On 02/16/18 08:08, Dean E. Weimer wrote: > On 2018-02-16 7:52 am, James B. Byrne via freebsd-questions wrote: >> I have the relocated WebDAV site running in a jail on FreeBSD-11.1. >> The question I now have what is the simplest method to redirect all >> email generated in the jail to our smart hub.  I am conversant with >> doing this using Postfix but that seems a bit of a heavyweight >> solution in this instance. >> >> Is the any simpler software package that can forward all application >> and system generated email from a jail to an external hub? >> >> How do other people handle this requirement in their jails? >> > > I just use the mailertable feature of sendmail. > > Edit the contents of /etc/mail/mailertable > > To do all mail put a single line in it. > > .       smtp:[yourmail.server.net] > > > Then run make && make restart from the /etc/mail directory, Sendmail > will then forward all mail to the mail server specified. You can also > add secondary server using a : as a separator. As I replace sendmail with postfix since forever... I just have jails built so that sendmail is disabled in them, and if I have anything inside jail that only is capable to localhost as smtp setver, then I run postfix instance inside such jail. Similarly to what Dean does: running smtp server inside particular jail, only using postfix instead of sendmail. I do like in that case to have postfix listen to localhost inet interface only. I don't know if that is started by ezjail script, but in jails I build - by the book - I have to configure local inet interface in particular jail configuration, then postfix does have local interface to listen to, otherwise it will not start. Good luck! Valeri ++++++++++++++++++++++++++++++++++++++++ Valeri Galtsev Sr System Administrator Department of Astronomy and Astrophysics Kavli Institute for Cosmological Physics University of Chicago Phone: 773-702-4247 ++++++++++++++++++++++++++++++++++++++++