Authoritative guide to configuring Sendmail to use a relay for outgoing mail on FreeBSD?

Andrea Venturoli ml at netfence.it
Tue Jan 12 14:58:30 UTC 2021


On 1/12/21 3:07 PM, Ottavio Caruso via freebsd-questions wrote:

> According to [2], it seems I have to edit sendmail.cf;

Where does that page say this?
I don't see any reference to sendmail.cf there.
Anyway, manually editing cf files was the way to go (and go mad :) a 
long time ago.
Now you edit ".mc"s and generate ".cf"s from those.




> 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 
> `hostname`.mc.

The first time you issue "cd /etc/mail ; make", it will generate 
{hostname}.cf, {hostname}.mc, {hostname}.submit.cf and {hostname}.submit.mc.
You can then edit the two .mc files and issue "cd /etc/mail ; make install".

  bye
	av.


More information about the freebsd-questions mailing list