Question

Can't delivery email due to 451 Timeout waiting for client input

Asked by: paktung

Dear Expert,
   I don't know what cause our sendmail servers can't delvier email to some domains (Using hotmail / Yahoo mail can send and delvery). I try to monitor the mail log and always display "451 Timeout waiting for client input" this error message. Also, always wait a long long time until timeout and prompt the 451 error message.

   However, I try to use /usr/lib/sendmail -v xxx@xxx.com < test or telnet command to send the email. It is successfully delivered the mail.

   Our email servers mainly receive from external and relay internal mail to external one ( without open relay). So what I don't know what I do wrongly in the sendmail configuration.

   Please help to answer my question, many many thanks anyone attend this mail.

Log Info
220 xxx.xxx.xxx.xx Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 read
y at  Sat, 11 Oct 2003 18:38:09 +0800
>>> EHLO mailserver.xxx.xxx
250-mail.xxx.xxx.xxHello [xxx.xxx.xxx.xxx]
250-TURN
250-ATRN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
>>> MAIL From:<xx.xx@xx.xxx.xx> SIZE=137592
250 2.1.0 xxx.xx@xxx.xx.xx....Sender OK
>>> RCPT To:<xxx@xxx.xxx.xxx>
>>> DATA
250 2.1.5 xx@xxx.xxx.xx
354 Start mail input; end with <CRLF>.<CRLF>

Then 451 timeout ...

Many Thanks for your professional advice

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2003-10-11 at 03:42:39ID20763726
Tags

451

,

timeout

,

waiting

,

client

Topic

SendMail Email Server

Participating Experts
1
Points
500
Comments
9

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. How to troubleshoot sendmail relay problem?
    I have two hpux boxes (box1 and box2) that have identical sendmail .cf files, and are set up to send all emails to box3 (as a relay host). Box2 works fine. It sends its mail to box3 and disconnects. Box1 sendmail however, sends its email to box3 and then waits till box3 pa...
  2. Sendmail relaying host
    I set up a box to act as a relay host... everything works fine.. I have it relay messages to the proper boxes and all.. I want to know where my mail sits when one of the hosts are down.. Its running on RedHat .. Sendmail 8.9.3 Thanks for any input..
  3. Sendmail
    Hi Experts, I had to rebuild a Linux server after hacking so is FC4, the problem is that I would like remote users being able to send mail through my server after being authenticated. They are able to send mail through webMail, but I would like to enable to send mail through...
  4. Sendmail smarthost relay
    Greetings, Environment: Two openbsd 4.0 server environment -- main.mail.server in DMZ, another in firewalled LAN. firewall denies SMTP from LAN except to DMZ mail server. Sendmail 8.13.8 on both servers. No issues sending mails from main DMZ mail server to any addr...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jleviePosted on 2003-10-11 at 08:35:39ID: 9532972

One cause of this sort of external delivery failure can be an overloaded or otherwise very slow Internet link. That can cause sendmail to take longer to send a message than the remote MTA is willing to wait for the email body. In the example above you are sending an email of 137KB to the remote. If your link is very slow this might take too long.

What speed Internet link do you have and what is the average utilization in both directions?

 

by: paktungPosted on 2003-10-11 at 08:45:12ID: 9533001

Thanks for your prompt response, jlevie.

The link speed is ok. Also our testing msg is very small size.

I try to use the mail server (8.12.10) to send testing msg, it is ok and the response is fast. But I try to send from internal email to that mail server to outside. The error msg 451 appear.

I try to surf from the internet, I guess it may be the esmtp broken. I try to enable O TLSSrvOptions=V the in sendmail.cf, and also, the access file as
Try_TLS:mail.xxx.com            NO
Try_TLS:xxxx.com                  NO
Srv_Features:mydomain.com      v
Srv_Features:                           V

It seems no any difference.

It always stop after
354 Start mail input; end with <CRLF>.<CRLF>

No any response until timeout. It drives me crazy ....

If you have any idea or hint, please let me know. Thanks you very much.

 

by: jleviePosted on 2003-10-11 at 09:20:51ID: 9533115

So you have an one sendmail box running 8.12.10 that will conduct all Internet mail transactions. Mail tests from that box to external mail servers appears to work fine. And your problem occurs when you try to relay mail from an inside system through the Sendmail box.

Why do you have the TLS directives enabled? I assume those are on the Sendmail server that acts as the relay.

From an inside machine can you send mail to an account on the Sendmail box?

What clients are you sending the mail from?

 

by: paktungPosted on 2003-10-11 at 10:36:59ID: 9533319

Dear jlevie,

   Our side infrastructure is

O2K - MSX 5.5 <-> Internal sendmail Mailhub <- FW -> External Sendmail Server (8.12.10) <-> Internet

Fm O2K send to "A" domain through the above routing path, then 451 Timeout wait the client input.

Fm External Sendmail send to "A" domain (using /usr/lib/sendmail -v xxx@A.com < test), the email can deliver.

One more phen.,
Show as
354 Start mail input; end with <CRLF>.<CRLF>
 after RCPT. Then the mail will be waiting and defered later.

But, show as
354 Enter mail, end with "." on a line by itself
 after RCPT then the mail can successfully deliver.

It is useful to solve this issue. Many thanks jlevie






 

by: jleviePosted on 2003-10-11 at 11:15:52ID: 9533438

"354 Start mail input; end with <CRLF>.<CRLF>" sounds like it is coming from your exchange server. A sendmail server will issue "354 Enter mail, end with "." on a line by itself" when it is ready to accept the message body. And in fact that's what I see in the log output. shown above. The transaction appears to be between sendmail and an exchange server.

I can't tell from the log whether sendmail delivered the body and ended it with the RFC standard ". on a line by itself" or whether it ever send the body. That information would have to come from a sniffer trace of a failed transaction.

If I was to hazard a guess I'd say that it is probably an exchange problem rather than a sendmail issue.

 

by: paktungPosted on 2003-10-11 at 18:32:47ID: 9534431

Dear jlevie,

  I will try to use the sniffer to capture the traffic. I let you know what is the status

  One query, in this case, our external sendmail server communicate with other side (using MSX2K - 220 xxx.xxx.xxx.xx Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 read )
  The 354 Start mail input; end with <CRLF>.<CRLF>" should be issue from other side. But our side will be hang or wait until timeout, then the MSX2K prompt 451.

   However, I try to submit email from the external sendmail server directly or using telnet mode, then after RCPT issue 354 Enter mail, end with "." on a line by itself
then email can send successfully.

  Thanks Jlevie.
   

 

by: jleviePosted on 2003-10-11 at 19:35:57ID: 9534555

i want to be sure that you understand the sequence of events that occurs in a mail transaction. Using the log messages in the question I may be able to make this a bit more clear, as follows:

Sender initiates the transaction and the receiver replies with:
     220 xxx.xxx.xxx.xx Microsoft ESMTP MAIL Service, Version: 5.0.2195.6713 ready at  Sat, 11 Oct 2003 18:38:09 +0800
Sender replies to the greeting with:
    >>> EHLO mailserver.xxx.xxx
Receiver replies with capabilities:
    250-mail.xxx.xxx.xxHello [xxx.xxx.xxx.xxx]
    250-TURN
    250-ATRN
    250-SIZE
    250-ETRN
    250-PIPELINING
    250-DSN
    250-ENHANCEDSTATUSCODES
    250-8bitmime
    250-BINARYMIME
    250-CHUNKING
    250-VRFY
    250-X-EXPS GSSAPI NTLM LOGIN
   250-X-EXPS=LOGIN
   250-AUTH GSSAPI NTLM LOGIN
   250-AUTH=LOGIN
   250-X-LINK2STATE
   250-XEXCH50
   250 OK (marks the end of the receiver's capabilities)
Sender issues the "Mail From":
    >>> MAIL From:<xx.xx@xx.xxx.xx> SIZE=137592
Receiver replies:
250 2.1.0 xxx.xx@xxx.xx.xx....Sender OK
Sender specifies the recipient: and that data is to follow:
    >>> RCPT To:<xxx@xxx.xxx.xxx>
    >>> DATA
Receiver indicates the recipient is okay:
    250 2.1.5 xx@xxx.xxx.xx
Receiver states it ready to accept the message body:
    354 Start mail input; end with <CRLF>.<CRLF>
Sender starts sending data to the receiver and ends the message body with a '.' on a line by itself.

So in this case we can see that it is an exchange server that is to receive the message. And from what I hear you say it seems that your problems occur only when exchange is the receiver. Until we know from a sniffer trace if the message body is sent and terminated in the normal fashion we can't tell who is at fault.

 

by: paktungPosted on 2003-10-14 at 23:10:18ID: 9552460

Dear jlevie,

   I find the following article about the lost connection, and it is very close to my case. Do you think it may be the cause of my case ? If yes, I will close this case and give the point to you. Many thank for your help.

Mail fails with timeout or lost connection
Occasionally, mail fails with "timed out while sending end of data -- message may be sent more than once", or with: "lost connection after DATA". Network outages happen, systems crash. There isn't much you can do about it.
However, when you see mail deliveries fail consistently, you may have a different problem: broken path MTU discovery.

A little background is in order. With the SMTP protocol, the HELO, MAIL FROM and RCPT TO commands and responses are relatively short. When you're talking to sendmail, every command and every response is sent as a separate packet, because sendmail cannot implement ESMTP command pipelining.

The message content, however, is sent as a few datagrams, each datagram typically a kbyte large or even bigger, depending on your local network MTU.

When mail fails consistently due to a timeout, I suspect that the sending machine runs a modern UNIX which implements path MTU discovery. That causes the machine to send packets as large as it would send over the LAN, with the IP DONT'T FRAGMENT bit set, preventing intermediate routers from fragmenting the packets that are too big for their networks.

Depending on what network path a message follows, some router on the way responds with an ICMP MUST FRAGMENT message saying the packet is too big. Normally, the sending machine will re-send the data after chopping it up into smaller pieces.

However, things break when some router closer to the sending system is dropping such ICMP feedback messages, in a mistaken attempt to protect systems against certain attacks. In that case, the ICMP feedback message never reaches the sending machine, and the connection times out.

This is the same configuration problem that causes trouble with web servers behind a misconfigured packet filter: small images/files are sent intact, large images/files time out because the server does not see the MUST FRAGMENT ICMP feedback messages.

Workaround: disable path MTU discovery at the sending machine. Mail will get out, but of course everyone else will still suffer. How to disable path MTU discovery? It depends. Solaris has an ndd command; other systems use different means such as sysctl to control kernel parameters on a running system.

Fix: find the router that drops the ICMP MUST FRAGMENT messages, and convince the person responsible for it to fix the configuration.

 

by: paktungPosted on 2003-10-15 at 01:50:48ID: 9553164

Dear jlevie,

  After disable path MTU discovery  ( echo 1 > /proc/sys/net/ipv4/ip_no_pmtu_disc ), the problem is fixed. Thanks for your help and support

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...