Learning the Terminal in Jaguar, Part 2
Subject: - missing? maybe?
Date:   2005-05-27 03:49:23
From:   TeddiStransky
Response to: - missing? maybe?

Maybe this tutorial is too old for anyone to be watching these messages any more. At any rate, Dave, I ran into the same issue, but by looking at your post, I see I neglected to cd the directory to /etc/mail/ ... so thanks for straightening ME out.

My Mac is fairly new, (a hotrodded G4 running 10.2.8) and the contents of /etc/mail/ are:

README access.db
access local-host-names

If it's any help, here's the contents of the README:

The sendmail m4 config files are located in /usr/share/sendmail/conf.
Everything you need to reconfig your sendmail from the m4 files
should be there. The default as shipped on your machine
was generated from the /usr/share/sendmail/conf/cf/
config file. If you wish to make changes, the following steps are
* cd to /usr/share/sendmail/conf/cf:
cd /usr/share/sendmail/conf/cf
* Copy the default config file to
sudo cp
* Edit your new config file:
sudo vi
* Regenerate your file from the m4 file you just edited:
m4 ../m4/cf.m4 > /tmp/
* Backup your old
sudo cp /etc/mail/ /etc/mail/
* Put your new in place:
sudo cp /tmp/ /etc/mail/
* Restart sendmail

Other oddities of using sendmail on Mac OS X:
* aliases are first taken from netinfo, and then sendmail falls back on
the aliases file.
* The aliases file lives in /etc/aliases although no default aliases file
is shipped in the stock Mac OS X config. You can change the location
of your aliases file by using the following line in your sendmail m4
config file:
define(`ALIAS_FILE', `path/to/aliases')
Or you can change it in your file with the following line
(probably commented out in your config):
O AliasFile=/path/to/aliases
* To ensure that sendmail does not read its config file from netinfo,
execute the following commands:
niutil -create . /locations/sendmail
niutil -createprop . /locations/sendmail /etc/mail/
This will tell sendmail (when it looks at netinfo) to not look in
netinfo for its config file, but to look at /etc/mail/