In the /etc/mail/sendmail.cf file, add the line
O DontBlameSendmail=GroupWritableDirPathSaferight after the line
#O DontBlameSendmail=safeand this should allow PHP to send mail out through sendmail.
[Editor's note: I have not tried this myself...]
|
|
|
Having trouble with PHP and sendmail on your OSX install? Here's a little help from macos-x-server list:
In the /etc/mail/sendmail.cf file, add the line O DontBlameSendmail=GroupWritableDirPathSaferight after the line #O DontBlameSendmail=safeand this should allow PHP to send mail out through sendmail. [Editor's note: I have not tried this myself...]
•
[8,367 views]
Hint Options
chmod
Instead of doing this, you could just chmod g-w /, /etc, /etc/mail. The only problem is that apple seems to reset the permissions on / at every update. Still, as I understand it, it's better to change the directories to group non-writable than it is to add in the DontBlameSendmail stuff.
chmod (aka fix sendmail permission permanently)
I was having lots of problems with the permissions on / being reset on a regular basis and I belive I finally discovered and fixed the culprit. Seems the cron daily task has a line in it that resets the permissions each time back to non-group writable.
chmod
Another idea is to modify /System/Library/StartupItems/Sendmail/Sendmail and add the following lines:
No!!!
DO NOT ACTIVATE SENDMAIL unless you know what you do!
No!!!
Relax! By default sendmail doesn't allow relaying.
potential for abuse
Even if sendmail is configured to prevent relaying, how can one prevent users from writing scripts to use your website to spam?
Better yet...
Better yet, install Communigate Pro from www.stalker.com and forget Sendmail. Sendmail maybe free but its a real pain to configure. I don't even bother anymore.
Better yet...
Can i use CommuniGate Pro on one machine and use it as SMTP in PHP. What should a PHP send script contain to use it like that? Do i have to configure PHP in any way?
This doesn't work.
I've got this setting in sendmail.cf |
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.23 seconds |
|