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.

Advertisements
This entry was posted in *Nix. Bookmark the permalink.

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

  1. rkg says:

    Thanks for the quick reference

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s