Date: Fri, 16 Feb 2018 09:54:13 -0600 From: Valeri Galtsev <galtsev@kicp.uchicago.edu> To: dweimer@dweimer.net, byrnejb@harte-lyne.ca Cc: freebsd-questions@harte-lyne.ca, owner-freebsd-questions@freebsd.org Subject: Re: Administrative email from FreeBSD jails Message-ID: <c2bc2370-ed93-a006-4f7f-f6f1a3673434@kicp.uchicago.edu> In-Reply-To: <09f70d8be56b28d756c5d1412f2e033d@dweimer.net> References: <0e77f110b4b3072a9328ea014cfc0284.squirrel@webmail.harte-lyne.ca> <09f70d8be56b28d756c5d1412f2e033d@dweimer.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 ++++++++++++++++++++++++++++++++++++++++
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c2bc2370-ed93-a006-4f7f-f6f1a3673434>