Automatic Message Redirector


This features lets you redirect messages according to email addresses and domains. Note that this feature completely replaces the final recipient of the session. This redirection can be set for both local and remote domains or accounts.

Formal Syntax:

redirectitems = 1*(redirectitem CRLF)  
redirectitem = (redirect1 / redirect2 / redirect3) [flags host]  
redirect1 = emailaddress "=" emailaddress  
redirect2 = domain "=" domain  
redirect3 = domain "=" emailaddress  
flags = ";" DIGIT ; Parameters description below
host = ";" hostitem  
hostitem = [user":"password@]hostname [":" port] user can contain @ if login with email is required
 

Parameters:


Parameters are bit values and specify flags for the redirection
1st bit - Recipient must be a local user
2nd bit - Allow redirection regardless filters
3rd bit - Sender must be authenticated
4th bit - Match sender instead of recipient
5th bit - Sender must be a local user

It means you can use these numbers to specify desired functionality:

0 - all recipients other filters may apply (eg. reject / delete message)
1 - local recipients only other filters may apply (eg. reject / delete message)
2 - all recipients redirection regardless filters
3 - local recipients only redirection regardless filters
4 - sender authenticated sender must be authenticated
 

Example:

sales@icewarp.com=info@business.com
merakmail.com=icewarp.com
usa.net=info@icewarp.com
merakmail.com=icewarp.com;1
demo.merakmail.com=demo.com;;demo.icewarp.com:2525
doc.icewarp.com=icewarp.com;1;user:password@mail.icewarp.com
 

Special Cases with variables:


It is also possible to use variables %%alias%%, %%domain%% or %%current_recipient%%.
The redirection in following cases is applied on any message no matter whether the recipient is local or not and no matter whether it is outgoing or incoming message. It simply works on any RCPT TO command during SMTP.

This system might be used to relay messages to a special server for instance:
domain=%%alias%%@domain;;relayserver
domain=%%current_recipient%%;;relayserver

 

Example:

aol.com=%%alias%%@aol.com;;relay.isp.com
This causes that all messages for somebody@aol.com will be sent directly to relay.isp.com server instead of using standard DNS lookup for aol.com  
company.com=%%alias%%@company.com;1;user:pwd@relay.isp.com
This causes that all messages for existing local user in company.com domain will be sent through relay.isp.com mail server with SMTP authentification (user:pwd) will be sent routed through relay.isp.com server  
company.com=%%alias%%@company.com;;username@domain.com:passwd@relay.isp.com
This causes that all messages for somebody@company.com will be sent directly through relay.isp.com server instead of using standard DNS lookup for company.com with SMTP authentication against full email address (username@domain:password@relayserver).  
localdomain.com=%%current_recipient%%;;customer-server.com
This causes that all messages for any_alias@localdomain.com will be redirected to customer-server.com, the recipient will be the primary alias of the original recipient's account  
user@company.com=%%alias%%@%%domain%%;12;relay.isp.com
This causes that all messages from given user@company.com will be relayed through relay.isp.com