Routing

Administrators may wish to alter the normal delivery pattern of an email message. The message routing table allows them to do this.

Each message will be compared to the route entries and if a message matches a route, the route will be applied and no further tests will be made.

Examples

The following are some examples of routes that can be applied.

From

To

Route

Effect

*

joe@domain.com

fred@domain.com

This filter delivers ALL messages addressed TO joe@domain.com to fred@domain.com

joe@domain.com

*

fred@domain.com

This filter delivers ALL messages FROM joe@domain.com to fred@domain.com

joe@domain.com

*

blank

This filter deletes all messages FROM joe@domain.com

joe@domain.com

fred@domain.com

blank

This filter deletes all messages FROM joe@domain.com TO fred@domain.com

*

*-domainxxyyzz.com@isp-mailbox.com

*@domain.com

This filter is used to unravel the mailbox mangling used by some ISP’s
e.g. the ISP may use the address fred-domainxxyyzz.com@isp-mailbox.com. This identifies the mail as being for fred@domain.com . The route extracts the “fred” part of the string and creates a new route of fred@domain.com.
The exact form of this route will depend on how an ISP mangles their addresses.

*

*@domain.com

*@domain2.com

This filter causes all messages for the domain domain.com be delivered to the same named user at domain2.com. e.e. messages for fred@domain.com will be delivered to fred@domain2.com

*

*@domain.com

*@domain.com|domain2.com

This filter causes all messages for the domain domain.com be delivered via the remote domain domain2.com. This can be used to route mail for several domains through to another server that is more suited to handling the mail, or settings up specific routers for specific users. After routing the receipient name is unchanged and will still be for the user in domain.com.