Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'command line mail in 10.2.3' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
command line mail in 10.2.3
Authored by: geordie on Jan 08, '03 05:47:34PM

In case someone else has the same problem I am going to document what I did when I needed the ability to send mail from scripts on Mac OS X client. The steps below allowed me to send mail from the command line without any problems.

In terminal issued these commands:
sudo -s
niutil -create . /locations/sendmail
niutil -createprop . /locations/sendmail sendmail.cf /etc/mail/sendmail.cf
hostname >> /etc/mail/local-host-names

Added the following line to /etc/mail/sendmail.cf
O DontBlameSendmail=GroupWritableDirPathSafe

To translate all that into english, as superuser I told sendmail not to use netinfo but to use sendmail.cf instead, put the name of the computer into the list of local machines and then told it to not worry about the fact that the mail directory could be written to by members of the group which owned it.



[ Reply to This | # ]
command line mail in 10.2.3
Authored by: radknee on Jan 20, '03 06:53:06PM

If you'd rather keep strict permissions and not use DontBlameSendmail check this out;
http://www.kung-foo.tv/xtips.php#14



[ Reply to This | # ]