FreeBSD: Allow/Configure outgoing mail with Sendmail

If this is the initial configuration of sendmail, then edit:

Edit: /etc/mail/freebsd.submit.mc

repleace, FEATURE(`msp’, `[127.0.0.1]‘)dnl
with, FEATURE(`msp’, `[<ip-of-mail-host>]‘)dnl

or with,  FEATURE(`msp’, `[<domain-name-of-mail-host>]‘)dnl

Then, in /etc/mail, run:

# make all install

Otherwise, edit /etc/mail/submit.cf (about line: 114) to have:

D{MTAHost}[<ip-of-mail-host>]

or

D{MTAHost}<domain-name-of-mail-host>

Neither of these methods should require a restart of sendmail. At least this was the case on my machine.

One Response to “FreeBSD: Allow/Configure outgoing mail with Sendmail”

  1. rkg Says:

    Thanks for the quick reference

Leave a Reply