Re: [exim] Just looking at an /etc/mail/virtusertable exampl…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jeremy Harris
Data:  
Para: exim-users
Assunto: Re: [exim] Just looking at an /etc/mail/virtusertable example
On 09/27/2010 01:53 AM, The Doctor wrote:
> virtusertable:
> driver = redirect
> domain = +virtual_domains
> no_more
> data = ${lookup {$local_part@$domain} lsearch \
>         {/etc/mail/virtusertable}{$value}\
>         {${lookup{@$domain} lsearch {/etc/mail/virtusertable} } }

>
> replace lsearch with whatever databaseformat you use.
>
> In the main section you should declare the domainlist virtual_domains
> , which all the domians that should be looked up from virtusertable
>
> ....
>
> Well the list in sendmail is kept in /etc/mail/local-host-names
>
> I use db-4.X for a 'databaseformat'.
>
> Where would the virtual_domains list be kept?


If that's a version-4 Berkeley DB, you can carry on using it; exim
(assuming built with the DBM support included, which it usually is)
can access them. See the docs at
http://exim.org/exim-html-current/doc/html/spec_html/ch09.html
in particular the discussion of "dbm" lookups.

Or, if you wish, you could switch to some other lookup type.

Use the "exim -bV" command to see if your exim was built with "dbm"
lookup support.

Cheers,
     Jeremy