Re: [exim] virtual users/domains with postgres

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: Shea Martin
CC: Exim-users
Subject: Re: [exim] virtual users/domains with postgres
On Sat, 5 Nov 2005, Shea Martin wrote:
>
> Any help would be great, thanks,


Exim provides very general facilities rather than canned features, so it
can be a bit difficult to get to grips with. A good way of doing virtual
domains is:

(1) Add a domainlist to your configuration file which specifies which
domains are virtual domains. This can be a fixed list in the configuration
file, or a Postgres lookup, etc.

(2) Add a router similar to the system_aliases router in the default
configuration file, which has a domains precondition that uses the list
you set up in step (1). The redirect data can be a Postgres lookup that
returns the user's destination address, and if the lookup fails the router
will decline causing Exim to consider the address to be invalid.

A more detailed description can be found in
http://www.cus.cam.ac.uk/~fanf2/hermes/doc/talks/2005-02-eximconf/

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}