macdevcenter.com
oreilly.comSafari Books Online.Conferences.

advertisement

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 config.mc file.



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

% sudo emacs /etc/mail/config.mc

VERSIONID(`$Id: generic-darwin.mc,v 1.3 2002/04/12 18:41:47 bbraun Exp $')
OSTYPE(darwin)dnl
DOMAIN(generic)dnl
undefine(`ALIAS_FILE')
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
define(`confDONT_BLAME_SENDMAIL', `GroupWritableDirPathSafe')
FEATURE(`smrsh',`/usr/libexec/smrsh')
FEATURE(local_procmail)
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl 
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')dnl
FEATURE(`access_db')dnl
MAILER(smtp)
MAILER(procmail)

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
Regenerating sendmail.cf
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/sendmail.cf. 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 sendmail.cf /etc/mail/sendmail.cf

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