Re: [Exim] virtual domains using .forwards

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Nico Erfurth
Data:  
Para: Vincent Danen
CC: exim-users
Assunto: Re: [Exim] virtual domains using .forwards
Vincent Danen wrote:
> --
> Hi, another quick question... I've not seen anything relevant to this
> so I'm hoping someone here knows how this might be accomplished. I
> need a way to map a virtual domain to one user; ie. *@test.com would
> all go to the user "test" (or "joe" or whatever). Exim then needs to
> look at .forward files, using the same style I posted previously in my
> userforward router (ie. ~/.forward-ext).
>
> For instance, suppose I had exim.org and did a map that delivered
> *@exim.org to ~exim/. For this mailing list, I would use
> ~exim/.forward-exim-users which would in turn contain all the commands
> required to process the list.
>
> Is something like this possible? All the mentioning of virtual domains
> that I've seen so far discuss pointing to something like a different
> aliases file for that domain, so I'm not really sure of where to start.
>
> I'll keep digging, but I figured I'd post what's on my mind in case
> anyone has done this and wouldn't mind sharing.


Have you ever thought about reading the docs? ;))

But ok, one more time:

put this router after your dnslookup-router

virtual_domains:
driver = redirect
data = ${lookup {$domain} lsearch {/etc/exim/virtualdomains}}

/etc/exim/virtualdomains should look like this

domain1.tld: user1
domain2.tld: user2
domain3.tld: remoteuser@???

domain1.tld would be redirected to local user1, domain2.tld to user2,
domain3.tld to someone else not at your computer.

You either need a qualify_domain that is NOT handled in this file, or
you need to use user1@localhost or something else, so the generated
address is not processed by this router again.

ciao