Subject: Bug#3319: deliver does not set exit codes as expected by sendmail

From: Sven Rudolph <[email-masked]>
Date: Tue, 18 Jun 1996 23:52:04 +0200

Package: deliver
Version: 2.1.12-2

Due to some problem the "File table overflow" error condition occured.
During this sendmail received a mail, it was bounced with a wrong
reason "No such user", whereas I think it should have been queued and
retried.

The bounce mail said the following (user and hostname slightly
edited):

deliver: can't create /tmp/dl.a20853: File table overflow
deliver: can't create /tmp/dl.a20853: File table overflow
deliver: delivery error on host hostname
Delivery to these addresses failed:
	username
Reason(s) for failure:
	"username": No such user
deliver: can't remove /tmp/dl.a20853: No such file or directory
554 <[email-masked]>... unknown mailer error 1

Sendmail expects some special return codes (EX_TEMPFAIL and
EX_UNAVAILABLE; see sysexits.h) in order to decide whether it should
retry the delivery later.

deliver seems not to generate these exit codes appropriately.

(Instead of fixing deliver another option might be to use mail.local
again, however I don't remember what the current status with the
several mail.local programmes is.)

	Sven
-- 
Sven Rudolph <[email-masked]> ; WWW : http://www.sax.de/~sr1/