Putting an alias file together

When handling messages, MailRouter will try to find a match, by comparing the receiving address of a message with a <pattern1>, starting from the first line, and continuing with the following line, until a match is found (or the end of the file is reached). It is therefore important, that the lines are put in the right order. If a redirect (or popgate or ipsgate) line is placed before an alias line, the alias line may never be evaluated:

redirect server.dk peter@remote.dk
alias peter@server.dk peter@local.dk
alias info@server.dk peter@local.dk

In this example, the redirect line catches all messages to the domain "server.dk", so all messages to the two accounts: "peter@server.dk" and "info@server.dk" will end up at "peter@remote.dk".
If the redirect is moved down after the two alias lines:

alias peter@server.dk peter@local.dk
alias info@server.dk peter@local.dk
redirect server.dk peter@remote.dk

mail to the two addresses are forwarded to "peter@local.dk", while mail to other accounts on the domain are forwarded to "peter@remote.dk".



Bo Holst-Christensen (holst@cutisan.dk)