oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button

Configuring sendmail on Jaguar
Pages: 1, 2, 3, 4, 5

Back to Don't Blame sendmail

In order to use the DontBlameSendmail configuration parameter with sendmail, all we need to do is add one line to the file.

Edit it to match the following. The line you need to add is bold-faced.

% sudo emacs /etc/mail/

VERSIONID(`$Id:,v 1.3 2002/04/12 18:41:47 bbraun Exp $')
define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl 
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl

Be careful to note that the quoting around the values use both the ` and ' characters around the arguments to the define statement.. Save the file. Next we need to compile it. Execute your update script. You may need to remember to give it execute permissions (`chmod g+x /etc/mail/update') first!

% sudo ./update
Restarting mail services

That's all you need to do. If you followed my previous advice in Setting Up a Site Server with Jaguar and sendmail is already running, then you can remove the `chmod g-w / /Users' line in the /System/Library/StartupItems/Sendmail/Sendmail script. Be sure to edit the root crontab entry as well.

If you didn't and don't have sendmail running, just execute the system startup script with the start argument:

% sudo /System/Library/StartupItems/Sendmail/Sendmail start

Also, If you haven't already done so, be sure to edit /etc/hostconfigto have sendmail startup when the system starts. If you can't remember how to do this, refer back to the Setting Up a Site Server).

Getting NetInfo out of the Picture

Some of the Apple documentation on sendmail (notably, the /etc/mail/README file) implies that it's a good idea to set a few properties in NetInfo to ensure that the sendmail binary reads its configuration from /etc/mail/ So far, I've not had a problem with this, but in the interest of making sure that we don't get bit by a modified sendmail binary from Apple in the future, we should go ahead and execute the commands that will modify the netinfo database:

% sudo niutil -create . /locations/sendmail
% sudo niutil -createprop . /locations/sendmail /etc/mail/

Now, we are going to take a look at several other features that you can tweak and the various results they have.

Pages: 1, 2, 3, 4, 5

Next Pagearrow