Mailing List Message #91976
From: Michael Katz <>
Subject: Re: Rules with macro symbols
Date: Fri, 27 Jul 2007 11:21:17 -0400
To: Janis Lünne <>, CommuniGate Pro Discussions <>
We can do this in MPP, a filter for CGP.  It is part of our content filter module.

You don't have to use AV or AS capabilities to do this with MPP.

Mike Katz

Janis Lünne wrote:
<div class="moz-text-flowed" style="font-family: -moz-fixed">Hi,

I'm playing around with domain-wide rules for a couple of days now but I just can't make it do what I want.
Maybe anybody of you has got a quick idea how to handle the following scenario:

- 1 account
 - n aliases (, ...

Mails to any address within this domain containing the header "X-custom: value" should be stored in a mailbox of account "admin".
Domain-level Rule:
Header Field   is   X-custom: value
Store in   ~admin/mailbox

No problem so far.
But any other mail to any recipient within this domain should be forwarded to another server which hosts the real mailboxes.
In order to do that, I tried to set up a domain-level rule:
To   is   *
Mirror to   *[]   //the IP-Adress of the server which hosts the mailboxes.

That doesn't work, because the * in the rule action is not substituted with the original string before the @.

I read the documentation and figured out that it is possible to use macro symbols like ^X with some rule actions.
But that won't work for the "Mirror to" action either.

I thought about using router records for this task, but if I would do a router record like
* = *[]
the first rule won't work any longer.

Then I thought about using the "Mail to unknown" Option "Rerouted to", but that would kill the first rule as well.

Does anybody have another idea how to handle that ?
Any help greatly appreciated.

Thanks in advance,


Michael Katz
Message Partners
271 North Ave Suite 1210
New Rochelle, NY 10801
Main +1-914-712-9050 Direct +1-914-712-3333
Fax +1-914-206-9609  Mobile +1-914-525-2903
Skype: michaelkatzmp
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster