Hi Amos,
I don't know how to answer your question inside Sendmail.

I would opt for a (simple and dirty) solution outside of Sendmail using a milter script in Perl that checks disk space and returns a "service temporarily unavailable" error in the event that there is no space left. Not elegant but easily maintainable by the next engineer.
My 2c,

 - yba



On Mon, 5 Mar 2007, Amos Shapira wrote:

Date: Mon, 5 Mar 2007 14:31:10 +1100
From: Amos Shapira <[EMAIL PROTECTED]>
To: Linux-IL <linux-il@linux.org.il>
Subject: sendmail question - discard messages on "out of disk"

Hello,

I'd like to configure sendmail to discard messages if it runs out of disk space.

By "discard" I mean that I want it to just completely delete the
message and forget about it.

The current situation is that if it runs out of disk space then it
keep filling the disk even more with "deferred" warnings.

The discarded messages contain reports about spam, so both the
receiver and sender just don't care too much if some of them are
dropped in case of a disk space problem.

So far digging the sendmail documentation haven't revealed anything.
There is the "$#DISCARD" mailer but the only mention of using it I
found is using the "Access" database feature. I'd like to be able to
say "deliver to the spool file, but if you fail to deliver and are
going to send a "deferred" message then just discard it".

Is this possible?

Thanks,

--Amos

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



--
 EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA    ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
     - [EMAIL PROTECTED] - tel: +972.2.679.5364, http://www.tkos.co.il -

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to