|
|
|
This might be common knowledge already, but I've been able to get sendmail working on two different machines by following the instructions in /etc/mail/README. The catch is getting sendmail to start when starting the machine up. I just changed "MAILSERVER=-NO-" to "MAILSERVER=-YES-" in /etc/hostconfig, and now sendmail works again.
•
[15,254 views]
Hint Options
perms
Does anyone know if the old directory permissions problem still exists in 10.2? Has Apple corrected this?
perms
Yes the problem is still there in 10.2. I use this script:
/System/Library/StartupItems/KeepSendmailHappy/KeepSendmailHappy
#!/bin/sh
. /etc/rc.common
##
# Mail server maintenance
##
if [ "${MAILSERVER:=-NO-}" = "-YES-" ]; then
ConsoleMessage "Keeping Sendmail happy"
chmod g-w / /etc /etc/mail
chmod 2555 /usr/sbin/sendmail
chown smmsp.smmsp /var/spool/clientmqueue
chmod 700 /var/spool/mqueue
chown root.wheel /etc/mail/submit.cf
ConsoleMessage "Sending unsent mail spool files"
# I have some mail sitting in /var/spool/clientmqueue that never
# seems to get sent. "mailq -Ac" claims that the queue is empty,
# but looking in the directory I see a large amount of held mail.
/usr/sbin/sendmail -Ac -q -v
fi
perms (DontBlameSendmail)
Instead of doing "chmod g-w / /etc /etc/mail ", I commented out the following line with a #:
O DontBlameSendmail=safeand added below it: O DontBlameSendmail=GroupWritableDirPathSafein the /etc/mail/sendmail.cf file. More information on that option and others are available at: http://www.sendmail.org/tips/DontBlameSendmail.html.
Re: perms
Permission problems must still exist. When I try to start sendmail, I get this...
Upgrading to 10.2
I did an upgrade to 10.2 (not a clean install) and found my previous sendmail.cf backed up as /etc/mail/sendmail.cf.applesaved. I simply restored this file, restarted sendmail and was up and running.
More perms
Following the various pointers I have found here I have Sendmail working finally under 10.2 (with caveats).
m4
I don't seem to have the m4 macro preprocessor handy. Can I assume that this is only installed with dev tools?
m4
Check /usr/share/sendmail/conf/m4
jaguar sendmail problems
Hi,
I thought I had this worked out, but all I get when I try to invoke sendmail is the following:
% sudo /System/Library/StartupItems/Sendmail/Sendmail start
Starting mail services
554 5.0.0 No local mailer defined
554 5.0.0 QueueDirectory (Q) option must be set
Any idea how to fix this?
10.2.3 mqueue permissions
I found that under 10.2.3 I must set /var/spool/mqueue to 777 in the KeepHappy script or I can't even send messages from the command line as a normal user. I also needed to fix the /etc/mail/local-host-names permissions to readable by "other". Apple must have changed things yet again because I had this all working at one time. These issues may have existed on 10.2.2 but we were not testing sendmail while we were running it.
command line mail in 10.2.3
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.
command line mail in 10.2.3
If you'd rather keep strict permissions and not use DontBlameSendmail check this out; |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.12 seconds |
|