[#7201] bug with procmail forwarding recipe
Summary bug with procmail forwarding recipe
Queue Ingo
Queue Version Git master
Type Bug
State Stalled
Priority 2. Medium
Owners
Requester tim (at) sig (dot) msstate (dot) edu
Created 08/13/2008 (1740 days ago)
Due
Updated 05/18/2011 (732 days ago)
Assigned 03/30/2011 (781 days ago)
Resolved 05/18/2011 (732 days ago)
Attachments procmail.patch Download
Milestone
Patch No

History
05/18/2011 04:22:49 PM Jan Schneider State ⇒ Stalled
Version ⇒ Git master
Milestone ⇒
 
03/30/2011 11:03:51 AM Jan Schneider Comment #9
State ⇒ Feedback
Taken from Matt Selsky
Reply to this comment
Can you elaborate on your patch, what exactly it does any why? I 
mostly see large code segments simply being commented out, which rings 
an alarm for me.
03/15/2011 02:12:40 PM rene (dot) plattner (at) uibk (dot) ac (dot) at Comment #8
New Attachment: procmail.patch Download
Reply to this comment
I modified it as follows:

  58: ##### DEAKTIVIERT: Weiterleitung #####
  59: # :0 cw
  60: # {
  61: #   :0 c
  62: #   * !^(From|Sender|X-Envelope-From):.*(Postmaster|MAILER-DAEMON)@
  63: #   * !^X-Loop: to-test@gmail.com
  64: #   | formail -A"X-Loop: to-test@gmail.com" | $SENDMAIL -oi 
test@gmail.com
  65: #   :0 c
  66: #   * !^(From|Sender|X-Envelope-From):.*(Postmaster|MAILER-DAEMON)@
  67: #   * !^X-Loop: to-test@gmx.at
  68: #   | formail -A"X-Loop: to-test@gmx.at" | $SENDMAIL -oi test@gmx.at
  69: #   :0
  70: #   /dev/null
  71: # }

kind regards

08/18/2009 12:58:04 PM Jan Schneider Comment #7
State ⇒ Stalled
Reply to this comment
I guess not.
06/28/2009 04:24:32 PM Chuck Hagenbuch State ⇒ Assigned
 
04/16/2009 10:31:31 PM Jan Schneider Comment #6 Reply to this comment
Reposting, because email notifications didn't work:

Can anybody using Procmail provide a real solution/patch?


04/13/2009 04:06:43 PM Jan Schneider Comment #5
State ⇒ Feedback
Reply to this comment
Can anybody using Procmail provide a real solution/patch?
09/22/2008 04:55:45 PM Jan Schneider Milestone ⇒ 1.2.2
 
09/22/2008 11:38:57 AM Jan Schneider State ⇒ Assigned
 
09/13/2008 12:47:33 AM tim (at) sig (dot) msstate (dot) edu Comment #4 Reply to this comment
Can you post the recipe that Ingo generated and what you changed it
to in order to get it to work?
Top receipe is what I used (doesn't handle loops, I know, it was a 
quick work around).  Bottom was Ingo generated.



##### Forward All #####

:0 D

* ^Received: .

! forwarded@email.com



##### Forwards #####

:0

{

   :0

   *$ ! ^From *\/[^  ]+

   *$ ! ^Sender: *\/[^   ]+

   *$ ! ^From: *\/[^     ]+

   *$ ! ^Reply-to: *\/[^     ]+

   {

     OUTPUT = `formail -zxFrom:`

   }

   :0 E

   {

     OUTPUT = $MATCH

   }



   :0 c

   * !^FROM_MAILER

   * !^X-Loop: to-forwarded@email.com

   | formail -A"X-Loop: to-fforwarded@email.com" | $SENDMAIL -oi -f 
$OUTPUT forwarded@email.com

   :0 E

   $DEFAULT

   :0

   /dev/null

}


09/12/2008 08:51:02 AM Jan Schneider Comment #3 Reply to this comment
Ping?
08/29/2008 05:14:20 PM Matt Selsky Comment #2
State ⇒ Feedback
Reply to this comment
Can you post the recipe that Ingo generated and what you changed it to 
in order to get it to work?
08/14/2008 08:26:01 AM Jan Schneider State ⇒ Assigned
Assigned to Matt Selsky
 
08/13/2008 10:02:06 PM tim (at) sig (dot) msstate (dot) edu Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Ingo
Summary ⇒ bug with procmail forwarding recipe
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
The built-in forward recipe for procmail does not appear to work 
correctly in all cases.  I was forwarding an e-mail address to gmail 
and the confirmation e-mail wasn't forwarded.  See the logs below.  As 
a work around, I just built a regular recipe.



procmail: [15047] Wed Aug 13 16:45:38 2008

procmail: No match on "^BestServHost: crater\.dragonflybsd\.org"

procmail: No match on "^Sender: horde-"

procmail: No match on "^Subject: Logwatch for"

procmail: No match on "^Subject: rsnapshot hourly"

procmail: No match on "^List-Id: rsnapshot discussion"

procmail: No match on "^Subject: Cron"

procmail: No match on "^Subject: DenyHosts Report from"

procmail: No match on "^Subject: Virus Detected"

procmail: No match on "^From: .MailScanner"

procmail: No match on "^Sender: AirSet"

procmail: No match on "^X-Spam-Status: Yes"

procmail: Assigning "MATCH="

procmail: Matched "xxxxxxxxxx+gmcfv4790c0e5c2cb0154@gmail.com"

procmail: No match on ! "^From *\/[^  ]+"

procmail: Assigning "OUTPUT=xxxxxxxxxx+gmcfv4790c0e5c2cb0154@gmail.com"

procmail: No match on ! 
"(^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%

@a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mail(er)?|daemon|mmdf|n?uucp|ops|r(esponse|oo

t)|(bbs\.)?smtp(error)?|s(erv(ices?|er)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a

-z0-9]*)?[%@>  ][^<)]*(\(.*\).*)?)?$([^>]|$))"

procmail: Assigning 
"LASTFOLDER=/home/tim/Maildir/new/1218663938.15047_0.xxxxx.xxxxx.com

"

procmail: Notified comsat: 
"tim@0:/home/tim/Maildir/new/1218663938.15047_0.xxxxx.xxxxx.com"

From xxxxxxxxxx+gmcfv4790c0e5c2cb0154@gmail.com  Wed Aug 13 16:45:38 2008

  Subject: Gmail Confirmation - Send Mail as tim@xxxxx.xxxxx.com

   Folder: /home/tim/Maildir/new/1218663938.15047_0.xxxxx.xxxxx.com       4134