I emailed about a week ago about email loops; I'm not quite sure I
explained the situation properly, however, so I'll try again.
I have the classic "two accounts" situation described in the procmailex
man page. So I have the following rule (from the procmailex page)
.procmailrc on both accounts:
:0 c
* !^X-Loop: derrick(_at_)caltech(_dot_)edu
| formail -A "X-Loop: derrick(_at_)caltech(_dot_)edu" | \
$SENDMAIL -oi derrick(_at_)caltech(_dot_)edu
Now one day, one of the accounts broke in such a way that the mail
receiving computer thought my account did not exist. I received some
email at the functioning account, which was forwarded as normal to the
broken account, with an X-Loop header. (See below.) However, the mail
daemon noted that the broken account was not accepting the email and
send a response that included the original message header in the *body*
of the new message. Hence procmail did not recognize it as looped mail,
and forwarded it. The second and subsequent times, the daemon quoted
the entire message in the body, so each email was longer than the
previous one.
I'm trying to concoct some rules that will prevent this sort of thing
while preserving as much as possible the intended function of the
rules: having duplicates of all email on both accounts. It has been
suggested to me that it is a bad idea to ever forward mail from
daemons. Maybe so, but it is important to me that the two accounts end
up with, as far as is possible, the same email, including that from
daemons.
Is there a simple way to handle this that will not stop legitimate,
non-loopy, daemon email from being forwarded?
Derrick Bass
---------
Here is the first bounced message, with some of the headers removed for
readability...
From: Mail Delivery Subsystem <MAILER-DAEMON(_at_)its(_dot_)caltech(_dot_)edu>
Date: Thu Nov 21, 2002 2:37:44 AM America/Los_Angeles
To: derrick(_at_)vestibule(_dot_)its(_dot_)caltech(_dot_)edu
Subject: Returned mail: see transcript for details
<deleted headers: Recieved, X_From_, and Message-Id>
X-From_: MAILER-DAEMON(_at_)vestibule(_dot_)its(_dot_)caltech(_dot_)edu Thu Nov 21 02:37:45
2002
Auto-Submitted: auto-generated (failure)
The original message was received at Thu, 21 Nov 2002 02:37:41 -0800
(PST)
from derrick(_at_)localhost
----- The following addresses had permanent fatal errors -----
derrick(_at_)tapir(_dot_)caltech(_dot_)edu
(reason: 550 5.1.1 <derrick(_at_)tapir(_dot_)caltech(_dot_)edu>... User
unknown)
----- Transcript of session follows -----
... while talking to daffy.tapir.caltech.edu.:
RCPT To:<derrick(_at_)tapir(_dot_)caltech(_dot_)edu>
<<< 550 5.1.1 <derrick(_at_)tapir(_dot_)caltech(_dot_)edu>... User unknown
550 5.1.1 derrick(_at_)tapir(_dot_)caltech(_dot_)edu(_dot_)(_dot_)(_dot_) User
unknown
----- Message header follows -----
Return-Path: <derrick>
Received: (from derrick(_at_)localhost)
by vestibule.its.caltech.edu (8.12.3/8.12.3) id gALAbfdE020636
for derrick(_at_)tapir(_dot_)caltech(_dot_)edu; Thu, 21 Nov 2002
02:37:41 -0800 (PST)
Received: from lists.apple.com (lists.apple.com [17.254.0.151])
by vestibule.its.caltech.edu (8.12.3/8.12.3) with ESMTP id
gALAbXQD020624
for <derrick(_at_)caltech(_dot_)edu>; Thu, 21 Nov 2002 02:37:33 -0800
(PST)
Received: from lists.apple.com (localhost [127.0.0.1])
by lists.apple.com (8.11.6/8.11.6) with ESMTP id gAL8r0b19927;
Thu, 21 Nov 2002 00:53:00 -0800 (PST)
Date: Wed, 20 Nov 2002 22:02:16 -0800
Message-ID:
<20021121060216(_dot_)29004(_dot_)90655(_dot_)Mailman(_at_)lists(_dot_)apple(_dot_)com>
From: quicktime-api-request(_at_)lists(_dot_)apple(_dot_)com
Subject: quicktime-api digest, Vol 3 #380 - 11 msgs
Reply-to: quicktime-api(_at_)lists(_dot_)apple(_dot_)com
X-Mailer: Mailman v2.0.13
MIME-version: 1.0
Content-type: text/plain
To: quicktime-api(_at_)lists(_dot_)apple(_dot_)com
Sender: quicktime-api-admin(_at_)lists(_dot_)apple(_dot_)com
Errors-To: quicktime-api-admin(_at_)lists(_dot_)apple(_dot_)com
X-BeenThere: quicktime-api(_at_)lists(_dot_)apple(_dot_)com
X-Mailman-Version: 2.0.13
Precedence: bulk
List-Unsubscribe:
<http://www.lists.apple.com/mailman/listinfo/quicktime-api>,
<mailto:quicktime-api-request(_at_)lists(_dot_)apple(_dot_)com?subject=unsubscribe>
List-Id: QuickTime Development <quicktime-api.lists.apple.com>
List-Post: <mailto:quicktime-api(_at_)lists(_dot_)apple(_dot_)com>
List-Help:
<mailto:quicktime-api-request(_at_)lists(_dot_)apple(_dot_)com?subject=help>
List-Subscribe:
<http://www.lists.apple.com/mailman/listinfo/quicktime-api>,
<mailto:quicktime-api-request(_at_)lists(_dot_)apple(_dot_)com?subject=subscribe>
X-Spam-Status: No, hits=-2.7 required=5.0
tests=BALANCE_FOR_LONG_20K,CARRIAGE_RETURNS,NO_REAL_NAME,
QUOTED_EMAIL_TEXT,SPAM_PHRASE_01_02 version=2.41
X-Spam-Level:
X-Loop: derrick(_at_)caltech(_dot_)edu
----- Message body suppressed -----
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail