Administrative email from FreeBSD jails

Dean E. Weimer dweimer at dweimer.net
Fri Feb 16 14:40:40 UTC 2018


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.

-- 
Thanks,
    Dean E. Weimer
    http://www.dweimer.net/


More information about the freebsd-questions mailing list