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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-04-2003, 07:56 AM
|
#1
|
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:
|
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.
|
|
|
12-04-2003, 09:13 AM
|
#2
|
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:
|
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.
|
|
|
12-04-2003, 10:01 PM
|
#3
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
How is the email being generated in the script? Is it something like "start email, backup files, append results"?
|
|
|
12-05-2003, 12:47 AM
|
#4
|
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:
|
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.
|
|
|
All times are GMT -5. The time now is 02:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|