Hi there,

I just started using qmail 1.03 a week ago, and made some interesting
discovery. I had the following .qmail file:

| preline formail -I "Bcc: `some/script`" | qmail-inject

Obviously, this causes a loop since qmail-inject will try to deliver to
the Bcc: addresses as well as to the original To: line. The interesting
bit is that this filled up the /var/mail file system rather quickly.
What happend is that:

1) qmail-inject queues a mail for the original To: address
2) qmail-send delivers this mail using qmail-lspawn to this same .qmail
file
3) goto 1

This goes on indefinately! I soon started getting many bounces from the
people on the Bcc: list, saying things like "Too many hops 233 (max
30)". Yes 233 hops! It seems that nor qmail-inject, qmail-queue,
qmail-send or qmail-lspawn checks for hop counts. I believe this is a
bug.

Granted, I made the loop, but I expect the mail system to prevent it
from going on for ever. 

In case anyone cares; I removed the .qmail file, waited a few hours,
received over 100Megs of mail, cleaned it up, and replaced the .qmail
file with:

| qmail-inject -a `some/script`

Sincerely,

Richard

Reply via email to