Sendmail not working in cent OS 4.6
Hello Linux gurus,
I am new to sendmail, I had configured my php to use sendmail as its mail agent. My server which is centOS 4.6 in this case runs in a lan. What I need is that when i fire a mail function from php page hosted on my server in LAN, mail should get delivered to gmail or whatever destination address is.. But I am facing problem...When I open my php page which fires the mail, it takes long time to load say 1-2 minute in loading. After that it says Message sent successfully, but message not get delivered. I had checked sendmail it is running... I also checked spam folder of destination email.. sadly, I am unable to do it.... Please Help Me..... |
Hi,
Check the logs at /var/log/maillog Cheers |
/var/log/maillog content
I checked the log it contains the following..
Apr 8 13:19:29 twikiserver sendmail[22898]: o387m9Vx022898: to=ajeet.kumar@aricent.com, delay=00:01:20, mailer=esmtp, pri=30163, dsn=4.4.3, stat=queued Apr 8 13:19:41 twikiserver sendmail[22915]: unable to qualify my own domain name (twikiserver) -- using short name Apr 8 13:20:14 twikiserver sendmail[22904]: o387msB1022904: from=nobody, size=163, class=0, nrcpts=1, msgid=<201004080748.o387msB1022904@twikiserver>, relay=nobody@localhost Apr 8 13:20:14 twikiserver sendmail[22904]: o387msB1022904: to=ajeet.kumar@aricent.com, delay=00:01:20, mailer=esmtp, pri=30163, dsn=4.4.3, stat=queued Apr 8 13:21:01 twikiserver sendmail[22915]: o387nfdp022915: from=nobody, size=163, class=0, nrcpts=1, msgid=<201004080749.o387nfdp022915@twikiserver>, relay=nobody@localhost Apr 8 13:21:01 twikiserver sendmail[22915]: o387nfdp022915: to=ajeet.kumar@aricent.com, delay=00:01:20, mailer=esmtp, pri=30163, dsn=4.4.3, stat=queued However it shows that mail is accepted for delivery, but i did not get any mail...anu pointer, where the error could be... |
Hi,
Quote:
Code:
mailq -q -v Usually your isp blocks outgoing traffic to port 25 (you should use your isp mail server as a smarthost) Other reasons could be: a bad dns server, the queurunner that is not running Try from your box to telnet directly gmail and see if port 25 is blocked: Code:
telnet smtp.gmail.com 25 |
All times are GMT -5. The time now is 09:51 PM. |