mail() stopped sending

smarty-l

New member
Joined
Sep 29, 2004
Messages
4
email on the server is working. I am coding in php and using mail() to submit info inseveral different forms. The mail was working yesterday but all of a sudden none of the form generated mail is getting sent.

I am extreeeeemly new to running a server...any help would be greatly appreciated. Where do I start to look.
 
Hey smarty-l,

Sorry to hear about your mail problems.

First check to make sure exim is running. Run the following command.

ps -ax | grep exim

You should see something like this:
[root@da1 log]# ps -ax | grep exim
4913 ? S 0:02 /usr/sbin/exim -bd -q15m -oP /var/run/exim.pid
20616 pts/0 S 0:00 grep exim
[root@da1 log]#

You can also always try telnetting to your server on port 25 to make sure mail is responding.

-------------------------------------------------------------------------

Then after that - check your log files located /var/log

try using tail -f maillog (control c gets you out)

Then watch this log as you submit your form.
You should see the mail being sent - else some other sort of error.

Also - do the same with your /var/log/messages file and see what pops up there.

---------------------------------------------------------------------------

Hope this helps.

Best Regards,

Vin Hardick
System Admin - Alwaysonline.net / Raqshaq.com
Best Dedicated Direct Admin Server on the NET!
 
Back
Top