LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail not working in cent OS 4.6 (https://www.linuxquestions.org/questions/linux-server-73/sendmail-not-working-in-cent-os-4-6-a-801743/)

ajeet@linux 04-13-2010 08:28 AM

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.....

bathory 04-13-2010 08:47 AM

Hi,

Check the logs at /var/log/maillog

Cheers

ajeet@linux 04-14-2010 12:15 AM

/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...

bathory 04-14-2010 02:42 AM

Hi,

Quote:

dsn=4.4.3, stat=queued
Mail is not accepted for delivery. It's stuck in queue. You can check the queue with:
Code:

mailq -q -v
mailq -Ac -v

This can happen for various reasons:
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.