nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

sendmail: getting stat=Deferred: Connection timed out with server - any help?

This is a discussion on sendmail: getting stat=Deferred: Connection timed out with server - any help? within the Mail Servers forums, part of the Mastering Servers category; Hi All, I am using RHEL5 on boxes. client: web04.example.com server: web05.example.com I am trying to confiugre sendmail client and ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Mastering Servers > Mail Servers

Linux answers from nixCraft.


Mail Servers Discussion on Postfix/Sendmail Mail servers and related program such as IMAP/POP3, Anti-Spam technologies.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-11-2009, 08:57 PM
Junior Member
User
 
Join Date: Sep 2008
OS: RHEL
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
samengr is on a distinguished road
Default sendmail: getting stat=Deferred: Connection timed out with server - any help?

Hi All,

I am using RHEL5 on boxes.
client: web04.example.com
server: web05.example.com

I am trying to confiugre sendmail client and server environment. A very simple environment. On server side I configured sendmail and relaying the requests from other linux machines. On a server end emails are going out fine but on client side its not working with Deffered message in log. I tried to find any solution online but couldnt get any exact info to sort out this issue.


On server side there is a entry of client machine in /etc/mail/access and I created access.db as well with make hash command.

makemap hash /etc/mail/access.db < /etc/mail/access


Now on client linux machine I just made two changes in sendmail.mc

dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl define(`SMART_HOST', `web05.example.com')dnl

used m4 utility to create sendmail.cf. Also used make -C /etc/mail


Testing by mail client at client machine

# echo "testing 04 delivery" | mail -s "testing" smk@gmail.com


#tail -f /var/log/mail.info

Nov 11 16:07:21 dwweb04 sendmail[10032]: nABG7K7t010032: from=root, size=66, class=0, nrcpts=1, msgid=<200911111607.nABG7K7t010032@web04.example.c om>, relay=root@localhost
Nov 11 16:07:21 dwweb04 sendmail[10033]: nABG7LBh010033: from=<root@web04.example.com>, size=368, class=0, nrcpts=1, msgid=<200911111607.nABG7K7t010032@web04.example.c om>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Nov 11 16:07:21 dwweb04 sendmail[10032]: nABG7K7t010032: to=smk@gmail.com, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30066, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (nABG7LBh010033 Message accepted for delivery)

Nov 11 16:09:09 dwweb04 sendmail[10019]: nABE4r0i009143: to=<smk@gmail.com>, ctladdr=<backup@web04.example.com> (503/503), delay=02:04:16, xdelay=00:02:00, mailer=relay, pri=390353, relay=web05.example.com. [*.*.*.*] (external IP), dsn=4.0.0, stat=Deferred: Connection timed out with web05.example.com.


Note: I have changed mydomain.com to example.com here


There are some other outputs that can help

At client machine (web04)

# telnet web05.example.com 25
Trying 192.168.1.107...
Connected to web05.example.com (192.168.1.107).
Escape character is '^]'.
220 web05.example.com ESMTP Sendmail 8.13.8/8.13.8; Wed, 11 Nov 2009 16:18:03 GMT


Is there something on server end that is not responding? or if I am doing something wrong please point out.

Many thanks.
Reply With Quote
  #2 (permalink)  
Old 11-11-2009, 09:35 PM
Junior Member
User
 
Join Date: Sep 2008
OS: RHEL
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
samengr is on a distinguished road
Default

When I do this on web04 (client side) it works...

$ telnet web05.example.com 25
Trying 192.168.1.107...
Connected to web05.example.com (192.168.1.107).
Escape character is '^]'.
220 web05.example.com ESMTP Sendmail 8.13.8/8.13.8; Wed, 11 Nov 2009 16:49:01 GMT
helo gmail.com
250 web05.example.com Hello web04.example.com [192.168.1.105], pleased to meet you
MAIL FROM: dwadmin@web04.example.com
250 2.1.0 dwadmin@web04.example.com... Sender ok
RCPT TO: skm@gmail.com
250 2.1.5 skm@gmail.com... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
Subject: web04 delivery Test
Hi I am testing web04 delivery at 16:51 11/11/2009.
...
.
250 2.0.0 nABGn1Dd021907 Message accepted for delivery



Can see the delivery at server side in mail log as well

# cat /var/log/mail.info | grep nABGn1Dd021907
Nov 11 16:52:08 web05 sendmail[21907]: nABGn1Dd021907: from=dwadmin@web04.example.com, size=84, class=0, nrcpts=1, msgid=<200911111651.nABGn1Dd021907@web05.example.c om>, proto=SMTP, daemon=MTA, relay=web04.example.com [192.168.1.105]
Nov 11 16:52:09 web05 sendmail[23420]: nABGn1Dd021907: to=smk@gmail.com, delay=00:01:01, xdelay=00:00:01, mailer=esmtp, pri=120084, relay=gmail-smtp-in.l.google.com. [72.14.221.114], dsn=2.0.0, stat=Sent (OK 1257958329 e11si11155778fga.7)


Any idea why it doesnt work in other way? I mean with sending email through mail or mutt client?
Reply With Quote
  #3 (permalink)  
Old 11-14-2009, 02:40 PM
Junior Member
User
 
Join Date: Nov 2009
OS: Debian
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
eshav is on a distinguished road
Default

Theres no need to use SMART_HOST, if you have a valid Doamin which is resolvable

the status shows sent, could you check the mailq
Reply With Quote
  #4 (permalink)  
Old 11-14-2009, 09:41 PM
Junior Member
User
 
Join Date: Sep 2008
OS: RHEL
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
samengr is on a distinguished road
Default

No all are in mailq. you can see the output in maillog.

stat=Deferred: Connection timed out with web05.example.com.

Dear I believe "SMART_HOST" is used when you have to send emails out from an already configured sendmail server in any environment. I dont want to make the new server to face world as a sendmail server.

Will appreciate any reply.

Many thanks.
Reply With Quote
  #5 (permalink)  
Old 11-15-2009, 03:53 PM
Junior Member
User
 
Join Date: Nov 2009
OS: Fedora
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ritesh.yeole@gmail.com is on a distinguished road
Default sendmail: getting stat=Deferred: Connection timed out with server

you are trying to send a mail to outside domain using smart host, can you enable authentication in sendmail.mc file.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
configuring Linux sendmail server and Windows Exchange server 2k3 so they share mails amit.rhce Mail Servers 2 09-10-2009 01:43 PM
configuring Linux sendmail server and Windows Exchange server 2k3 so they share mails amit.rhce Windows Xp/2000/2003 server administration 0 06-13-2009 06:43 PM
Clearing deferred messages - POSTFIX bearsuit2 Mail Servers 1 04-05-2009 01:15 PM
Sendmail Server!!!!!!!!!!!!!!! amsreeku Linux software 1 04-24-2008 05:32 PM
Services need to be stat & stopped on CentOS / RHEL Cluster raj Linux software 0 09-01-2007 12:11 PM


All times are GMT +5.5. The time now is 07:48 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38