Jump to content

Archived

This topic is now archived and is closed to further replies.

phporcaffeine

mail

Recommended Posts

Anyone ever try to get php to bounce mail off of a MS Exchange server?  Exchange will let php send mail that is all within the same domain ( someone@mydomain.com to something@mydomain.com) but it won't allow off domain mail ( someone@mydomain.com to somthing@earthlink.net).

Anyone have any ideas?

Share this post


Link to post
Share on other sites
I'd imagine this is an exchange config issue, not a php issue, however, you could make sure you're using a decent set of headers.

Google bought up a lot of results on this topic... [url=http://www.google.co.uk/search?hl=en&q=php+%2Bmail+%2Bexchange+%2Bheaders&meta=&btnG=Google+Search]php +mail +exchange +headers[/url]

Regards
Rich

Share this post


Link to post
Share on other sites
For anyone that is interested in the fix:

What I had to do was tell Exchange that the server running PHP was allowed to relay off the Exchange server.  All php needs to do is relay, so once you allow it then everything should work.

In order to add:

Goto exchange system manager (Exchange 7 // Win 2K3) Then navigate to servers >> protocols >> SMTP Virtual Server and click the relay tab.  Next add the machine ip address that has PHP on it.  BE CAREFULE NOT TO ALLOW EVERYONE TO RELAY.  "Deny relay except the list below" is what you want.  Otherwise you'll be an open relay mail server and you'll be a SPAM host to the world.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.