PDA

View Full Version : sendmail (postnuke)


=FireSt0rM=
06-19-2002, 08:07 AM
Ok ok.. another stoopid sendmail question it seems.

I've enabled sendmail by using "keep sendmail happy"... but this is my problem. It's a sendmail/OSX/PHP/PostNuke issue...

I'm running a PostNuke site (content management system) and when a user registers the system is supposed to send that person an email by telling PHP to send an email (which involves the sendmail I believe). But this is not working. I'm told that this is a php/sendmail issue?

If anybody has a vague understanding of what I just said... and have any ideas to help I'd appreciate it. Thanks.

The Antiphonist
06-24-2002, 05:54 PM
I'm very curious about this as well in regards to PostNuke. Where are the SMTP settings for PHP? Is it possible to use an external SMTP server, as you can with phpBB?

---

spiggott
06-26-2002, 02:45 PM
If you're running 10.1.5, you need to make a few changes to sendmail's configuration file to make it work correctly. Here's what I did (in a terminal):

sudo chmod 755 /
cd /usr/share/sendmail/conf/cf
m4 ../m4/cf.m4 generic-darwin.mc > /tmp/sendmail.cf
sudo cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.orig
sudo cp /tmp/sendmail.cf /etc/mail/
sudo niutil -create . /locations/sendmail
sudo niutil -createprop . /locations/sendmail sendmail.cf /etc/mail/sendmail.cf

The last two statements are to ensure that sendmail (when it looks at netinfo) does not look in netinfo for its config file, but, rather, at /etc/mail/sendmail.cf. Also note that any edits you made to the original sendmail.cf will have to be copied over to the new one. You can use the diff command to find out what's different and what can be copied over. For example, I made sure that DontBlameSendmail=GroupWritableDirPathSafe was set. We all know that the Apple Installer always makes the root directory group-writable every... single... time... Finally, don't forget to HUP sendmail.