From "Unix for Mac OS X", Copyright ©2003 by Matisse Enzer.

To change the sendmail configuration:

  1. Become root, entering your password if prompted.
  2. sudo —s

  3. cd /usr/share/sendmail/conf/cf
  4. 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.

  5. Copy the generic Darwin configuration file.
  6. 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>>

  7. Create a new
  8. sendmail configuration file.

    m4 ../m4/cf.m4 MyConfig.mc > MyConfig.cf

    That creates MyConfig.cf from numerous template files, including the one you just edited.

  9. Backup the current sendmail configuration file.
  10. cp /etc/mail/sendmail/cf /etc/mail/sendmail.cf.backup

  11. Install the new sendmail configuration file.
  12. cp MyConfig.cf /etc/mail/sendmail.cf

  13. Activate and start
  14. sendmail.

    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.

  15. Stop being root.

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.