Now you should add Rule string in the Redirect To field by using the following simple syntax:
HeaderName:<space>"substring"<space>-><space>"TargetEmail"
For example:
To: "john" -> "john@yourcompany.com"
This Rule means that all messages that has substring 'john' in the To: header will be
redirected to the 'john@yourcompany.com' address. You also may use any other email headers
to match substring.
For example:
Subject: "sales" -> "sales@yourcompany.com"
This rule will send any message with 'sales' substring in the Subject to the
sales@yourcompany.com address.
You can also use negative rules. Every negatively matching rule should begin with ! (exclamation mark).
For example:
!From: "john" -> "postmaster@yourcompany.com"
This rule will redirect all messages that DOES NOT contain 'john' in From header.
You may use multiple rules in the Redirect To field by entering one Rule per line.
Important! You have to finish list of Rules by valid email address that will
receive all mail of the given mailbox. This is required to prevent messages
jamming in the queue if it does not match any rule in list. In most cases it can by
postmster or admin address of the sending host.
For example:
To: "john" -> "john@yourcompany.com"
Subject: "sales" -> sales@yourcompany.com
postmaster@localhost