PDA

View Full Version : PHP Mail Issue


quackweb
01-13-2004, 04:51 PM
Help! PHP Mail is NOT working properly! It will send an email to any domain on the server but it cannot send mail to any domain off the server. Any idea? I need this fixed ASAP! Thanks for any advice!

quackweb
01-13-2004, 10:32 PM
Tried multiple steps to solve problem with no success. I have tried to recompile php, no luck. Did up2date for sendmail, no luck. The mail() function is my only php function that is not working correctly, any ideas would be greatly appreciated!

ProWebUK
01-14-2004, 06:41 AM
I honestly have no idea why it would do that, have you checked your maillog after sending the mail using the function.. It sounds like the problem is not php if you get mail internally.

Also - you dont want or need sendmail - remove it from chkconfig and turn it off - then restart exim to ensure that is running.

Chris

DirectAdmin Support
01-14-2004, 11:14 AM
Hello,

If the mail() function exists and php isn't throwing an error, then the problem is with the exim setup. If a domain has been added to the server, in no case will mail be able to leave the server as long as the domain is in the /etc/virtual/domains file, *even if the MX records point elsewhere*. I've added a feature in 1.20.6 that allows users to remove their domain from that file by going to the the MX records screen and setting it to not use the local mailsystem.

John

quackweb
01-14-2004, 02:13 PM
Thanks for the replay John but I figured it out myself right before I got it =) It looks like when i changed the hostname from whatcanbehere.com to air.whatcanbehere.com something got screwy and when I got an error from a perl script as well, I figured it had to be sendmail. I changed it back to whatcanbehere.com and everything is working fine. Maybe it's a potential bug?

ProWebUK
01-14-2004, 02:19 PM
Did your new hostname resolve.. ie did you add an A record for it? if it didn't that would more than likely be the reason behind your problems.

Chris

quackweb
01-14-2004, 05:12 PM
Oops, forgot that, so much for the bug =\