summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorklm1998-08-05 23:13:58 +0000
committerklm1998-08-05 23:13:58 +0000
commit1282d126a4b9a4d68ef2849cd06bd2ee8f83efcf (patch)
treebdb1abe39984e3683ced10b1431176faa2394cfd
parent0873ee29ea0a5295599095c6b0a51a9c8be455b2 (diff)
downloadmailman-1282d126a4b9a4d68ef2849cd06bd2ee8f83efcf.tar.gz
mailman-1282d126a4b9a4d68ef2849cd06bd2ee8f83efcf.tar.zst
mailman-1282d126a4b9a4d68ef2849cd06bd2ee8f83efcf.zip
Do some explicit logging if an error is encountered in the queueing of
the message, so we can detect the linux egid inheritance problem.
-rwxr-xr-xmail/contact_transport10
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/contact_transport b/mail/contact_transport
index 544c68f15..d76c78c61 100755
--- a/mail/contact_transport
+++ b/mail/contact_transport
@@ -47,7 +47,15 @@ while 1:
to_addrs.append(l)
text = sys.stdin.read()
-queue_id = OutgoingQueue.enqueueMessage(from_addr, to_addrs, text)
+try:
+ queue_id = OutgoingQueue.enqueueMessage(from_addr, to_addrs, text)
+except IOError:
+ # Log the error event and reraise the exception.
+ (exc, exc_msg, exc_tb) = sys.exc_info()
+ sys.stderr.write("IOError writing outgoing queue\n\t%s/%s\n"
+ % (str(exc), str(exc_msg)))
+ sys.stderr.flush()
+ raise exc, exc_msg, exc_tb
Utils.TrySMTPDelivery(to_addrs, from_addr, text, queue_id)
OutgoingQueue.processQueue()