I found that the '# Enable special handling for DSNs' recipe has a problem. The [] classes should contain a space and a tab, but in the rc.reqest I have, as well as the one I just downloaded from the distribution on procmail.org, only a tab is present. No match can ever occur. Is vi and/or emacs messing this up when I load the file? Like I said, even the one I downloaded from procmail.org diffed identically to my file before I added the spaces and fixed the recipe. On Sun, 8 Apr 2001 12:25:39 -0400 (EDT), Ken Bass <kbass@clark.net> wrote:
Been running Smarlist for about 6 years. Currently running the 'latest' version 3.15.
Upon examing my log files I have found that SmartList is not handling bounces at all. This has been going on since June 2000. I'm not sure what if anything I changed back then, perhaps upgraded sendmail? procbounce never gets executed and all the files in my bounces directory are dated June 2000.
At the bottom of this email is a test input msg. I am using the stock rc.request but the recipes are NOT matching on ANYTHING bounce related. In particular, for any bounced msg, I see from the log file:
procmail: Executing " sed -e $cutoff_bounce' q' >tmp.request" procmail: Assigning "LASTFOLDER= sed -e $cutoff_bounce' q' >tmp.request" procmail: No match on "^Subject: (Warning - delayed mail|(WARNING: message ([^ ]+ )?|Mail )delayed|(Returned mail: )?(warning: c(an|ould )not send m(essage fo|ail afte)r|Unbalanced '"'|Cannot send (within [0-9]|8-bit data to 7-bit)|Data format error|Headers too large|Eight bit data not allowed|Message (size )?exceeds (fixed )?maximum (fixed|message) size)|Undeliverable (RFC822 )?mail: temporarily unable to deliver|\*\*\* WARNING - Undelivered mail in mailqueue|Execution succee?ded)" procmail: No match on "^Subject: (Returned mail: )?(Service unavailable)" procmail: No match on "^Subject: (Warning from|mail warning| ?Waiting mail)" procmail: No match on "^(..?)?X-Loop: ()vulcan@vroc\.org \(bounce\)" procmail: No match on "^Content-Type:[ ]*multipart/report;[ ]*\/[^ ].*" procmail: Assigning "LOCKFILE" procmail: Unlocking "tmp.lock" procmail: No match on ! "< 524288" procmail: Match on "(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To: Multiple recipients of |(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%@a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|sponse)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@> ][^<)]*(\(.*\).*)?)?$([^>]|$)))" procmail: Executing "formail,-A,X-Diagnostic: Mail coming from a daemon, ignored" procmail: Match on "^X-Loop: ()vulcan@vroc\.org" procmail: Executing "formail,-A,X-Diagnostic: Possible loopback problem" procmail: No match on ! "^X-(Diagnostic|Processed):" procmail: Assigning "INCLUDERC=" procmail: No match on ! "^X-(Diagnostic|Processed):" procmail: Executing "formail,-AX-Envelope-To: vulcan-request" procmail: Match on ! "." procmail: Locking "request.lock" procmail: Assigning "LASTFOLDER=request" procmail: Opening "request" procmail: Acquiring kernel-lock procmail: Unlocking "request.lock"
Thus the email get dumped into the request folder.
Why in the world would the below msg not match on that? The receipe snippet from rc.request is
# # Enable special handling for DSNs #
:0 A * ^Content-Type:[ ]*multipart/report;[ ]*\/[^ ].* * ^Mime-Version:.*1.*\..*0 * MATCH ?? report-type="?delivery-status"? * B ?? ^Content-Type:.*message.*delivery-status { # If there were no fatal errors, drop it :0 B * ! ^Status:[ ]*5[ ]*\. /dev/null
isadsn=yes }
# # Anything that still survived is most likely to be a bounce message. #
:0 Ahfw * ! ^X-Diagnostic: | procbounce
Also, has anyone written/updated the procbounce processing to handle the multiple recipients listed in the DSN msg? Looking at the FAQ and various other places, I see that was on a TODO list.
I've create a small test setup where I extracted the rc.request bounce related recipes and can try to debug this on the command line. Before I invest a lot of time in this, I want to know if anyone else has already done this.
HELP! Hope I have provided some information for us to work with.
From MAILER-DAEMON@vroc.org Sun Apr 8 00:15:26 2001 Received: from localhost (localhost) by nomad.vroc.org (8.11.0/8.11.0) id f384FPi19035; Sun, 8 Apr 2001 00:15:26 -0400 Date: Sun, 8 Apr 2001 00:15:26 -0400 From: Mail Delivery Subsystem <MAILER-DAEMON@vroc.org> Message-Id: <200104080415.f384FPi19035@nomad.vroc.org> To: test-request@vroc.org MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="f384FPi19035.986703326/nomad.vroc.org" Subject: Returned mail: see transcript for details Auto-Submitted: auto-generated (failure)
This is a MIME-encapsulated message
--f384FPi19035.986703326/nomad.vroc.org
The original message was received at Sun, 8 Apr 2001 00:15:25 -0400 from list@localhost
----- The following addresses had permanent fatal errors ----- kbass2_b@clark.net (reason: 550 Unknown local part kbass2_b in <kbass2_b@clark.net>) kbass_bounceme@clark.net (reason: 550 Unknown local part kbass_bounceme in <kbass_bounceme@clark.net>)
----- Transcript of session follows ----- ... while talking to mx2.veriomail.com.:
RCPT To:<kbass_bounceme@clark.net> <<< 550 Unknown local part kbass_bounceme in <kbass_bounceme@clark.net> 550 5.1.1 kbass_bounceme@clark.net... User unknown RCPT To:<kbass2_b@clark.net> <<< 550 Unknown local part kbass2_b in <kbass2_b@clark.net> 550 5.1.1 kbass2_b@clark.net... User unknown
--f384FPi19035.986703326/nomad.vroc.org Content-Type: message/delivery-status
Reporting-MTA: dns; nomad.vroc.org Arrival-Date: Sun, 8 Apr 2001 00:15:25 -0400
Final-Recipient: RFC822; kbass2_b@clark.net Action: failed Status: 5.1.1 Remote-MTA: DNS; mx2.veriomail.com Diagnostic-Code: SMTP; 550 Unknown local part kbass2_b in <kbass2_b@clark.net> Last-Attempt-Date: Sun, 8 Apr 2001 00:15:26 -0400
Final-Recipient: RFC822; kbass_bounceme@clark.net Action: failed Status: 5.1.1 Remote-MTA: DNS; mx2.veriomail.com Diagnostic-Code: SMTP; 550 Unknown local part kbass_bounceme in <kbass_bounceme@clark.net> Last-Attempt-Date: Sun, 8 Apr 2001 00:15:26 -0400
--f384FPi19035.986703326/nomad.vroc.org Content-Type: text/rfc822-headers
Return-Path: <test-request@vroc.org> Received: (from list@localhost) by nomad.vroc.org (8.11.0/8.11.0) id f384FPh19035; Sun, 8 Apr 2001 00:15:25 -0400 Resent-Date: Sun, 8 Apr 2001 00:15:25 -0400 Date: Sun, 8 Apr 2001 00:15:18 -0400 (EDT) From: Ken Bass <kbass@clark.net> X-Sender: kbass@kbass To: test@vroc.org Subject: eee Message-ID: <Pine.LNX.4.04.10104080015140.2682-100000@kbass> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <wBK2iB.A.UpE.dX-z6@www.vroc.org> Resent-From: test@vroc.org X-Mailing-List: <test@vroc.org> archive/latest/32 X-Loop: test@vroc.org List-Help: <mailto:test-request@vroc.org?subject=help> List-Subscribe: <mailto:test-request@vroc.org?subject=subscribe> List-Unsubscribe: <mailto:test-request@vroc.org?subject=unsubscribe> List-Post: <mailto:test@vroc.org> Precedence: list Resent-Sender: test-request@vroc.org
--f384FPi19035.986703326/nomad.vroc.org--
_______________________________________________ Smartlist mailing list Smartlist@lists.RWTH-Aachen.DE http://MailMan.RWTH-Aachen.DE/mailman/listinfo/smartlist