| Article: |
Learning the Terminal in Jaguar, Part 2 | |
| Subject: | sendmail.cf - missing? maybe? | |
| Date: | 2005-05-22 14:25:17 | |
| From: | DaveHalbert | |
|
Working my way thro' this brilliant tutorial and have hit a problem. I am in the /etc/mail directory and am trying to make the copy of sendmail.cf But get the message cp: sendmail.cf: No such file.., so tried the ls command on the /etc/mail directory and got-> access access.db sendmail.cf.applesaved submit.cf.applesved <- I assume that the .applesaved has been put there by the system and that if I just sudo cp -p sendmail.cf.applesaved sendmail.cf.applesaved.bak I'll get the correct result. However still paranoid about wrecking something that needs to be working tomorrow, and would like to know if my assumption is correct and how/why I've got the .applesaved? (I also noticed a heap of similar files in the ls of /private/etc) Feedback greatly appreciated |
||
Showing messages 1 through 1 of 1.
-
sendmail.cf - missing? maybe?
2005-05-27 03:49:23 TeddiStransky [View]



My Mac is fairly new, (a hotrodded G4 running 10.2.8) and the contents of /etc/mail/ are:
README access.db sendmail.cf
access local-host-names submit.cf
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 sendmail.cf as shipped on your machine
was generated from the /usr/share/sendmail/conf/cf/generic-darwin.mc
config file. If you wish to make changes, the following steps are
recommended:
* cd to /usr/share/sendmail/conf/cf:
cd /usr/share/sendmail/conf/cf
* Copy the default config file to yourdomain.mc:
sudo cp generic-darwin.mc yourdomain.mc
* Edit your new config file:
sudo vi yourdomain.mc
* Regenerate your sendmail.cf file from the m4 file you just edited:
m4 ../m4/cf.m4 yourdomain.mc > /tmp/sendmail.cf
* Backup your old sendmail.cf:
sudo cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.orig
* Put your new sendmail.cf in place:
sudo cp /tmp/sendmail.cf /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 sendmail.cf 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 sendmail.cf /etc/mail/sendmail.cf
This will tell sendmail (when it looks at netinfo) to not look in
netinfo for its config file, but to look at /etc/mail/sendmail.cf