> I'm trying to get PHP on a Mac OS X server to use an external mail
> server.  It seems that OS X is configured out of the box to use a
> local copy of sendmail to route mail.  We will not be running
> sendmail on our OS X server and need to tell PHP to use an external
> SMTP server.  I put a php.ini file in /usr/local/lib, and modified
> the SMTP line to point to our external SMTP server.  It still doesn't
> work.  If I run sendmail on the server, it works fine.   Any ideas?
>

Just a suggestion, but just because you don't proc up a daemon for sendmail to listen 
for incoming mail, you can still use the
sendmail program on the local machine for the actual sending of the mail to your 
external server.

Look at the sendmail stuff relating to "Smart Relay Hosts".  There is an entry that 
can be added to sendmail.cf that looks like
this.

# "Smart" relay host (may be null)
DSrelay:external.company.com

Then you can leave PHP alone.

Regards

Grant Walters
Brainbench 'Most Valuable Professional' for Unix Admin
Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND
Telephone: +64 4 4765175, CellPhone 025488265, ICQ# 23511989


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to