Re: [Exim] Re: Routing per user

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Matthew Byng-Maddick
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] Re: Routing per user
On Wed, Oct 10, 2001 at 11:47:42AM +0100, Stuart Mackintosh wrote:
> I have no domains set as local so all addresses are passed to the
> routers. This is the router that catches the remote smtp.

[snip sql config.
> then I have an sql table with a target_host field which holds the remote
> hostname or IP and a domain field. If you change the domain for the full
> address, this should fit your needs.


I have:
{config}
| relay_domains = /etc/exim/secondary/relay-list

[... to routers section]
| secondary_mx:
|   driver = domainlist
|   transport = remote_smtp
|   search_type = partial-lsearch
|   route_file = /etc/exim/secondary/${lookup{$domain} partial-lsearch \
|                   {/etc/exim/secondary/managers} {$value} {default}}

{relay-list}
| *.domain.tld
| domain.tld

{managers}
| *.domain.tld: <userid>

{<userid>}
| *.domain.tld: destination.domain.tld byname

{default}
| *.domain.tld: destination.domain.tld byname


This allows for users to configure their own rules for where things should
forward, which for me is a real benefit. The mail admin decides what domains
they have control of.

MBM

-- 
Matthew Byng-Maddick         <mbm@???>           http://colondot.net/