Bug 434645 - DATA timeouts leave behind stale df files in mqueue
DATA timeouts leave behind stale df files in mqueue
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: sendmail (Show other bugs)
All Linux
low Severity low
: rc
: ---
Assigned To: Jaroslav Škarvada
Depends On:
  Show dependency treegraph
Reported: 2008-02-23 16:03 EST by Damian Menscher
Modified: 2017-06-27 09:58 EDT (History)
5 users (show)

See Also:
Fixed In Version: sendmail-8.13.1-4.el4
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2011-02-16 09:36:26 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
reproducer (243 bytes, application/x-sh)
2010-09-29 06:25 EDT, Jaroslav Škarvada
no flags Details
Proposed patch (325 bytes, patch)
2010-09-29 11:12 EDT, Jaroslav Škarvada
no flags Details | Diff
Proposed cron script (363 bytes, application/octet-stream)
2010-10-04 11:15 EDT, Jaroslav Škarvada
no flags Details

  None (edit)
Description Damian Menscher 2008-02-23 16:03:09 EST
Description of problem:
If a timeout occurs while reading a message (during the DATA phase) a df file
might have been left behind in the queue.

Version-Release number of selected component (if applicable):

Additional info:
Release notes for sendmail 8.13.7 say they fix this problem, which was
introduced in 8.13.6 (and presumably backported into the RHEL sendmail).
Comment 2 RHEL Product and Program Management 2008-10-31 12:46:00 EDT
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".
Comment 3 Jaroslav Škarvada 2010-09-27 10:24:10 EDT
Does anybody know how to reproduce this? I set the DATA timeout to 5 seconds and run the following script in several instances for hours and everything work as expected (no stale files in the queue):

while /bin/true
  exec 3<>/dev/tcp/localhost/25
  echo "ehlo localhost">&3
  echo "mail from: root@localhost">&3
  echo "rcpt to: root@localhost">&3
  echo "data">&3
  dd if=/dev/urandom bs=1024 count=1024 >&3
  sleep 20
  exec 3>&-
  sleep 1
Comment 4 Jaroslav Škarvada 2010-09-29 06:25:24 EDT
Created attachment 450439 [details]

Finally reproduced by following script.
Comment 5 Jaroslav Škarvada 2010-09-29 11:12:25 EDT
Created attachment 450502 [details]
Proposed patch

Back-ported patch from sendmail-8.13.7.
Comment 8 Jaroslav Škarvada 2010-10-04 11:15:19 EDT
Created attachment 451426 [details]
Proposed cron script

Proposed script for cleaning stalled mqueue files that were created before sendmail update. It can be also used as cron script (by moving it to e.g. cron.daily) for periodical cleaning (in case the problem persists).
Comment 11 errata-xmlrpc 2011-02-16 09:36:26 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.