To change the sendmail configuration:
sudo —s
This directory contains a collection of templates for sendmail configurations in different operating system versions. The one you will use is the generic-darwin.mc file.
cp generic-darwin.mc MyConfig.mc
(You may actually use any file name you like instead of MyConfig.mc, but we suggest you make the name something meaningful to you and that it end with .mc for macro file.)
Edit MyConfig.mc by adding the following line to the end of the file.
define(`confDONT_BLAME_SENDMAIL',`GroupWritableDirPathSafe')
Notice the funny quotes: each pair of quotes consists of a backtick: ` and a single quote: '
Figure 14.2 shows the complete file with the new line highlighted. (Figure 14.1 is based on version 1.3 of the generic-darwin.mc file. You may have a later version of the file, but the steps should be the same.)
<<Figure 14.2>>
m4 ../m4/cf.m4 MyConfig.mc > MyConfig.cf
That creates MyConfig.cf from numerous template files, including the one you just edited.
cp /etc/mail/sendmail/cf /etc/mail/sendmail.cf.backup
cp MyConfig.cf /etc/mail/sendmail.cf
Go to the first task in this chapter, "To activate the sendmail: server" and follow the steps there.
If there seems to be a problem you can copy the backup copies of the files onto the changed copies.
exit
You should be back at your regular shell prompt.
Congratulations, you have changed your sendmail configuration and should be happily sending email from the command line.