LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-18-2010, 10:32 AM   #1
snq
LQ Newbie
 
Registered: Feb 2009
Posts: 16

Rep: Reputation: 0
sendmail stat=Deferred: Connection timed


I am using the default configuration of sendmail which comes with CentOS5 and want to test sending mail to an external address

I use the follwing command to send mail

Code:
 mail -s Test22 linuxnewbie@gmail.com < /dev/null
the mail gets queued in mailq however does not gets delivered

the var/log/maillog says that

Code:
Dec 16 22:32:45 localhost sendmail[3337]: oBH3UiaH003335: to=<linuxnewbie@gmail.com>, delay=00:02:01, xdelay=00:02:01, mailer=esmtp, pri=120408, relay=aspmx.l.google.com. [209.85.227.27], dsn=4.0.0, stat=Deferred: Connection timed out with aspmx.l.google.com.
what is causing the mail to be held in mail queue?

As the system is able to find gmail.com MX address aspmx.l.google.com so I believe that there is no connectivity issue, there must be something the the default sendmail config which is causing the mail to be held ? please guide

Last edited by snq; 12-18-2010 at 10:33 AM.
 
Old 12-18-2010, 11:39 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,223
Blog Entries: 1

Rep: Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076Reputation: 2076
Hi,

Could be that your box public IP is not resolvable. If you want to run a mail server, its IP must be resolve to a valid domain name.
You can use your ISP mail server as a smarthost to send email to external domains. To do this, open sendmail.cf, find the line that starts with DS and change it to:
Code:
DSmail-isp.domain.com
Restart sendmail and test.

Note that it's advisable to edit sendmail configuration through sendmail.mc and then rebuild sendmail.cf. See here for details.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail: stat=Deferred: Connection reset by [127.0.0.1] guif Linux - Server 4 03-26-2010 03:41 PM
sendmail: getting stat=Deferred: Connection timed out with server - any help? samengr Linux - Server 4 11-11-2009 01:00 PM
Sendmail gives Deferred Connection timed out only to some domains tdunk Linux - Server 4 08-19-2008 06:53 AM
sendmail - Connection timed out [dsn=4.0.0 stat=Deferred: Connection timed out] ananthak Linux - Software 0 04-24-2007 07:28 AM
sendmail: stat=Deferred: Connection timed out with email.mydomain.com intranet_man Linux - Software 1 07-19-2005 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration