Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 08:08:23 -0600
From:      "Dean E. Weimer" <dweimer@dweimer.net>
To:        byrnejb@harte-lyne.ca
Cc:        freebsd-questions@harte-lyne.ca, owner-freebsd-questions@freebsd.org
Subject:   Re: Administrative email from FreeBSD jails
Message-ID:  <09f70d8be56b28d756c5d1412f2e033d@dweimer.net>
In-Reply-To: <0e77f110b4b3072a9328ea014cfc0284.squirrel@webmail.harte-lyne.ca>
References:  <0e77f110b4b3072a9328ea014cfc0284.squirrel@webmail.harte-lyne.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



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