procmail
[Top] [All Lists]

Recipe to catch admin mail from phpBB3

2008-06-17 15:21:33
Hello,

I've never posted a queston here before - just read the recipes and
solutions.

I'm running a phpBB (version 3) and daily get dozens of requests for new
accounts, and receive an email notification for each one.

I'd like these notifications to go to their own folder. PhpBB3 uses the same
address for To: and From: to send from itself to the nominated admin,
although in the header it uses the mailname of the server in the From_ field
(i.e "From www-data(_at_)myserver(_dot_)org").

I've got around 700 lines of recipes for other activity, but just can't
get this one to work.

May I please ask for help?

______________________________


The Headers:

From www-data(_at_)eastafricans(_dot_)org  Tue Jun 17 09:57:04 2008
Return-Path: www-data(_at_)eastafricans(_dot_)org
X-Original-To: n(_at_)localhost
Delivered-To: n(_at_)localhost
Received: from localhost (localhost [127.0.0.1])
<snipped> external mail server handling log
To: admin <n(_at_)linearg(_dot_)com>
X-Barracuda-BBL-IP: nil
X-ASG-Orig-Subj: Activate user account
Subject: Activate user account
From: n(_at_)linearg(_dot_)com
Reply-To: n(_at_)linearg(_dot_)com
Sender: n(_at_)linearg(_dot_)com
MIME-Version: 1.0
Message-ID: <b5b6cdfb8b16364c240b4e5b67025cce(_at_)jcs(_dot_)xjcs(_dot_)org>
Date: Tue, 17 Jun 2008 09:55:52 +1000
X-MSMail-Priority: Normal
X-Mailer: PhpBB3
X-MimeOLE: phpBB3
X-Mailer: PhpBB3
X-MimeOLE: phpBB3
X-phpBB-Origin: phpbb://jcs.xjcs.org/phpBB3
<snipped> external mail server spam filter log

<snipped> The actual message.

______________________________

I assumed that a simple recipe would do the trick, like:

  :0
  * ^From_www-data(_at_)eastafricans(_dot_)org
  * ^From:(_dot_)*n(_at_)linearg(_dot_)com
  * ^To:.*admin\ <n(_at_)linearg(_dot_)com>
  * ^Subject:.*Activate\ user\ account
  admin

I've tried all sorts of permutations -- no joy. I'm obviously
missing something.

Hopefully someone can help here.

Nick
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail