Mail Function and Sendmail

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
funkymeerkat
Forum Newbie
Posts: 18
Joined: Sun Jun 13, 2004 4:16 am

Mail Function and Sendmail

Post by funkymeerkat »

Morning All!

I am using the php mail function which i have had no problems with at all.

Thsi was all running on my windows machine whilst i tested the site.

I have just migrated this acros to a linux server and i can no longer send mail. I practically know nothing about linux so i'm a bit stuck.

I have a few forms on the site that send confirmation emails when data entered. The normal site sort of thing....

I have looked at the php.ini file. When on the windows machine it had teh smtp server with port 25 and the sendmail_from i set as my address all fine. Now when browsing the net looking for answers to my problem i see that with linux it uses sendmail and doesn't need the windows required info above.

Now my php.ini has

; For Win32 only.
;sendmail_from = me@me.com(thought best to leave it there???)

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = /usr/sbin/sendmail -t -i

I have uploaded the edited .ini file and restarted apache. Checked the phpinfo.php and it dispalys as above.

When i try the form - the form does it bit and adds to the table but no mail and no errors too.

I have checked the spam filter and nothing getting stuck.

I have looked at the mail logon the linux box as one forum said and i have noticed a few possible issues:

Jan 21 10:36:31 WKBrom01 postfix/qmgr[25252]: 0EEAB1341D7: to=<me@me.com>, relay=none, delay=0, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=me.comtype=MX: Host not found, try again)

Jan 21 10:42:05 WKBrom01 postfix/qmgr[25252]: 75D4D134150: from=<wwwrun@WKBrom01.me.priv>, size=631, nrcpt=1 (queue active)

Jan 21 10:42:05 WKBrom01 postfix/qmgr[25252]: 75D4D134150: to=<me@me.com>, relay=none, delay=62081, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=me.comtype=MX: Host not found, try again)


I have changed the domain and email above for obviosu reasons, but i basically have no idea on teh above and really am looking for some guidance on where the problem could be. Is it possible to change the config on the sendmail file - necessary or possible???

Any help much appreciated.

Thanks
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Mail Function and Sendmail

Post by josh »

Check your maillogs. Its a sendmail issue most likely
Post Reply