Learning the Mac OS X Terminal, Part 2
Subject:   Addendum
Date:   2002-01-25 16:58:37
From:   chris_stone
sendmail actually requires several directories to be non-group writable. In most installs of OS X just changing the permissions for the root directory keeps sendmail happy.

However if you still get an error when sending mail from the CLI similar to this:

"cannot open /etc/mail/local-host-names: World writable directory "

Just chmod the these two directories like this:

[localhost:~] chris% sudo chmod g-w /private/etc /etc/mail

and sendmail will work for you.

By the way, in Part 3 I'll show a workaround allowing sendmail to work regardless of these permissions.