Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jan 2021 15:58:35 +0100
To:        Ottavio Caruso <>
Subject:   Re: Authoritative guide to configuring Sendmail to use a relay for outgoing mail on FreeBSD?
Message-ID:  <>
In-Reply-To: <rtkafk$mp8$>
References:  <rtkafk$mp8$>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

> Op 12 jan. 2021, om 15:07 heeft Ottavio Caruso via freebsd-questions =
<> het volgende geschreven:
> Hi,
> For educational purposes [1], I have to answer the question: =
"Configure Sendmail [...] to use a relay for outgoing mail.
> It has be sendmail and not a substitute smtp client such as ssmtp or =
> According to [2], it seems I have to edit; however. =
according to an older post on this list [3], one would have to run =
"make" in /etc/mail and then edit the generated file, presumably =
> On IRC (freenode/#freebsd), I have been told that I can edit any .mc =
files, then run "make" and that will generate an .cf file. For example = >>
> So, I am basically confused and I wonder if there is a canonical way =
to do that on FreeBSD.

Basically all my jails use another jail as mail hub:

Change /etc/mail/ to reflect the correct mail hub

FEATURE(`msp', `[]', `MSA=E2=80=99)dnl

Also configure the confDOMAIN_NAME and confHELO_NAME to reflect your =

Then run =E2=80=98make install=E2=80=99.=20

In my /etc/rc.conf there=E2=80=99s this:


Then run =E2=80=98make restart=E2=80=99 in your /etc/mail directory.

This basically makes the machine not accept email from outside (only =
from the machine itself) and forwards everything to your smart host.


It never hurts to help=20
      - Eek the Cat!

Want to link to this message? Use this URL: <>