At 11:55 AM 12/17/99 +0100, you wrote:
>[EMAIL PROTECTED] wrote:
>> 
>> Tried putting /dev/null in the .qmail but I get this error:
>> 
>>     Error_while_writing_message._(#4.3.0)
>> 
>> Any ideas? Haven't had time to search the docs/web though.
>
>make .qmail an empty file, or a file with only comments.
>I think that will do

I tried this out myself, and got the following results:

.qmail-devnull:
/dev/null

Dec 17 09:38:28 gateway qmail: 945452308.624155 new msg 11946
Dec 17 09:38:28 gateway qmail: 945452308.624751 info msg 11946: bytes 844
from <[EMAIL PROTECTED]> qp 13051 uid 0
Dec 17 09:38:28 gateway qmail: 945452308.738177 starting delivery 3156: msg
11946 to local [EMAIL PROTECTED]
Dec 17 09:38:28 gateway qmail: 945452308.738579 status: local 1/10 remote 0/20
Dec 17 09:38:29 gateway qmail: 945452309.096620 delivery 3156: deferral:
Unable_to_write_/dev/null:_invalid_argument._(#4.3.0)/
Dec 17 09:38:29 gateway qmail: 945452309.097114 status: local 0/10 remote 0/20

Changed the .qmail file and -ALRMed qmail-send.

.qmail-devnull:
|/dev/null

Dec 17 09:39:18 gateway qmail: 945452358.762283 starting delivery 3157: msg
11946 to local [EMAIL PROTECTED]
Dec 17 09:39:18 gateway qmail: 945452358.762783 status: local 1/10 remote 0/20
Dec 17 09:39:19 gateway qmail: 945452359.053363 delivery 3157: deferral:
/bin/sh:_/dev/null:_Permission_denied/
Dec 17 09:39:19 gateway qmail: 945452359.053850 status: local 0/10 remote 0/20

Finally, another try:

.qmail-devnull:
# Comment. Deliver to /dev/null?

Dec 17 09:44:24 gateway qmail: 945452664.275136 starting delivery 3165: msg
1194
6 to local [EMAIL PROTECTED]
Dec 17 09:44:24 gateway qmail: 945452664.275647 status: local 1/10 remote 0/20
Dec 17 09:44:24 gateway qmail: 945452664.332010 delivery 3165: success:
did_0+0+0/
Dec 17 09:44:24 gateway qmail: 945452664.363332 status: local 0/10 remote 0/20
Dec 17 09:44:24 gateway qmail: 945452664.363701 end msg 11946

I did not try an empty file, as man dot-qmail states:

       If .qmail is completely empty (0 bytes long), or does  not
       exist,  qmail-local  follows  the defaultdelivery instruc�
       tions set by your system administrator; normally  default�
       delivery  is  ./Mailbox,  so  qmail-local appends the mail
       message to Mailbox in mbox format.

However, the documentation doesn't say anything about delivering to
/dev/null if it finds only a comment line. (Indeed, I suspect that
qmail-local is simply silently discarding the message, rather than
explicitly attempting delivery to /dev/null.)

While it may be deducible that a .qmail file consisting of only one comment
line (or of only comment lines) would result in silent discarding of
messages, perhaps it should be made explicitly clear in the documentation?
It isn't intuitively obvious, especially since it differs from
qmail-local's behavior in the case of an empty (but present) .qmail file.

-----------------------------------------------------------------
                             Kai MacTane
                         System Administrator
                      Online Partners.com, Inc.
-----------------------------------------------------------------
>From the Jargon File: (v4.0.0, 25 Jul 1996)

feature shock /n./ 

[from Alvin Toffler's book title "Future Shock"] A user's (or 
programmer's!) confusion when confronted with a package that has too 
many features and poor introductory material. 

Reply via email to