Linux / UNIX Tech Support Forum
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. |
|
|||||||
| Mail Servers Discussion on Postfix/Sendmail Mail servers and related program such as IMAP/POP3, Anti-Spam technologies. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
| Sponsored Links | ||
|
|
|
|||
|
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? |
|
|||
|
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. |
|
|||
|
you are trying to send a mail to outside domain using smart host, can you enable authentication in sendmail.mc file.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |