RE: [PHP-INST] PHP on OS X using external mail server?
| From: | Grant Walters | Date: | Wed, 20 Mar 2002 18:35:32 +0000 |
| Subject: | RE: [PHP-INST] PHP on OS X using external mail server? | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-6425@lists.php.net to get a copy of this message | ||
> 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