LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2003, 07:56 AM   #1
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
Sendmail timeout


We use sendmail in our mail server and today I saw an error message in /var/log/maillog, saying "timeout waiting for input from local during Draining Input".

I also saw that sendmail failed to deliver that mail (of size 5.9M).
I already google searched the web for this problem happening from time to time. There were only a few mentioning this problem, and some say it is actually timeout, some say it is a sendmail bug.

Since it was an important mail, I would like to recover it, if possible:

I looked into the mailspool, and I saw a file in the mailpool that has about the same size and creation time as the time of the failure, and also an other file the creation time of which is the same.
The first file in the mailspool seems to contain the body, and the second file seems to contain the header of the mail.

My questions are:
- can I make sendmail deliver the message that seems to be still sitting in the mailspool undelivered? ("sendmail -q" left it there)
- how to get rid of these timeout problems?

Last edited by J_Szucs; 12-04-2003 at 09:04 AM.
 
Old 12-04-2003, 09:13 AM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
In the meantime I could recover the message by simply appending the two mailspool files to my mailbox and deleting some control characters in them. It now seems to be OK.

However, I am still curious what causes the timeouts.

I use procmail rules to apply some filter conditions to the body of mails and also pass thems through spamassassin and a mail scanner.
However, sendmail delivered 6 times bigger mails successfully before...
This problem exteremely often happens to mail messages sent by cron on the regular backup (zipping up) of many large files.
 
Old 12-04-2003, 10:01 PM   #3
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
How is the email being generated in the script? Is it something like "start email, backup files, append results"?
 
Old 12-05-2003, 12:47 AM   #4
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Original Poster
Rep: Reputation: 58
The script itself does not generate any mails.
But it is run as a cron job, and cron automatically generates mails that contain the standard output of the jobs, if the mailto variable is not emptied in the crontab.

I am, however, not very annoyed by loosing these cron-generated mails, I only mentioned it here, because this is the only case when I always have the said error message, and maybe this helps to find out the reason.

I am rather annoyed about the fact that this sometimes happens to normal mails, too.
More surprising that these mails seem to be received fully by sendmail, but they sit in the mailspool undelivered forever, once such a timeout occured.

Last edited by J_Szucs; 12-05-2003 at 12:50 AM.
 
  


Reply



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 connection timeout pauloco Linux - Networking 2 04-21-2006 09:20 PM
Sendmail: timeout waiting for input from local during Draining Input andrewstr Linux - Software 0 07-14-2004 01:43 PM
Sendmail timeout Ynog Linux - Software 0 06-13-2003 12:41 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:24 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