php mail() function sends to internal mailserver regardless of MX entry for domain.

3 posts / 0 new
Last post
#1 Sat, 12/03/2011 - 01:29
pmx

php mail() function sends to internal mailserver regardless of MX entry for domain.

I host my site on the virtualmin server but the email is hosted with google. The email works fine from anywhere but my server, if i try to use mail() in php it tries to deliver the message locally. Is there a way to override this behaviour?

Thanks!

Dean

Sat, 12/03/2011 - 16:29
andreychek

Howdy,

It's no problem to host email elsewhere, but if you do that -- you'd need to go into Edit Virtual Server -> Enabled Features, and disable the "Mail for Domain" feature. So long as that feature is set, Postfix will attempt to accept delivery for that email locally.

-Eric

Mon, 12/05/2011 - 02:57
pmx

Thank you! I'll go untick that little box now :)

Topic locked