[Exim] Virtual Domain Aliases Trick

Top Page
Delete this message
Reply to this message
Author: Marc Perkel
Date:  
To: exim-users
Subject: [Exim] Virtual Domain Aliases Trick
Here's a trick to create aliases for domains so that all mail going to
one domain is rerouted to another.

######################################################################
#                      REWRITE CONFIGURATION                         #
######################################################################


# The /etc/vmail/domainaliases file contains a list of domain aliases
# Example:
#    coup2k.net: coup2k.com
#    coup2k.org: coup2k.com


*@* ${lookup{$2}lsearch{/etc/vmail/domainaliases}{$local_part@$value}
{$local_part@$domain}} E

end