The following issue has been RESOLVED.
======================================================================
http://www.dbmail.org/mantis/view.php?id=194
======================================================================
Reported By: levgil
Assigned To: paul
======================================================================
Project: DBMail
Issue ID: 194
Category: LMTP daemon
Reproducibility: always
Severity: major
Priority: normal
Status: resolved
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 13-Apr-05 11:10 CEST
Last Modified: 30-Apr-06 00:16 CEST
======================================================================
Summary: Delivery to /dev/null through pipe makes zombies
Description:
In database table dbmail-aliases i have an e-mail alias whith field
delivery_to=|/dev/null
When I send to this e-mail one of dbmail-lmtpd children became zombie and
message stays in queue.
At one time in console appear message: "sh: line 1: /dev/null: Permission
denied"
/dev/null has following permission: -rw-rw-rw- and owner is root, group is
root
======================================================================
----------------------------------------------------------------------
aaron - 24-Apr-06 12:26
----------------------------------------------------------------------
I haven't looked into the zombie issue, but here's some improved error
reporting. I'm not up for setting up a 2_0_branch SVN tree right now...
--- forward.c.orig 2005-08-19 07:30:42.000000000 -0700
+++ forward.c 2006-04-24 03:21:21.221903824 -0700
@@ -29,6 +29,7 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include <errno.h>
#include "db.h"
#include "dbmail.h"
@@ -118,8 +119,6 @@
__FILE__, __func__, command);
pipe = popen(command, "w"); /* opening pipe */
- dm_free(command);
- command = NULL;
if (pipe != NULL) {
trace(TRACE_DEBUG,
@@ -186,9 +185,11 @@
}
} else {
trace(TRACE_ERROR,
- "%s,%s: Could not open pipe to [%s]",
- __FILE__, __func__, sendmail);
+ "%s,%s: Could not open pipe to [%s]: [%s]",
+ __FILE__, __func__, command,
strerror(errno));
}
+ dm_free(command);
+ command = NULL;
target = target->nextnode;
}
return 0;
----------------------------------------------------------------------
aaron - 30-Apr-06 00:16
----------------------------------------------------------------------
I am not seeing this problem in 2.0.10 or SVN trunk.
Issue History
Date Modified Username Field Change
======================================================================
13-Apr-05 11:10 levgil New Issue
19-Apr-05 09:49 paul Assigned To => paul
19-Apr-05 09:49 paul Status new => acknowledged
19-Apr-05 09:49 paul Projection none => minor fix
19-Apr-05 09:49 paul ETA none => < 1 month
24-Apr-06 12:26 aaron Note Added: 0001102
30-Apr-06 00:16 aaron Status acknowledged => resolved
30-Apr-06 00:16 aaron Resolution open => fixed
30-Apr-06 00:16 aaron Note Added: 0001123
======================================================================