Re: [Exim] Any Mailadress for a domain like *@xyz.com

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nico Erfurth
Fecha:  
A: Julian Bartels
Cc: exim-users
Asunto: Re: [Exim] Any Mailadress for a domain like *@xyz.com
Julian Bartels wrote:
> Hello,
> sorry, but i use outlook and "only-text" format, isn't this right?!
> oh, found it! I use mysql for user-authentication and mail-delivery!
> Can i use this one, too? Because I don't want to create an own
> file and entry in exim-conf for every domain (about 100), using
> an alias like %@virt.com or *@virt.com to postmaster@???
> isn't possible?`
> Here is my config:
> mysql_sys_aliases:
>   driver = redirect
>   allow_fail
>   allow_defer
>   data = ${lookup mysql{SELECT dest FROM aliases \
>             WHERE email='${local_part}' AND \
>             type="system"}}

>
> mysql_aliases:
>   driver = redirect
>   allow_fail
>   allow_defer
>   data = ${lookup mysql{ SELECT dest FROM aliases \
>             WHERE email='${local_part}@${domain}' AND \
>             type="site"}}


Add another router like this:
mysql_default_aliases:
   driver = redirect
   allow_fail
   allow_defer
   data = ${lookup mysql{ SELECT dest FROM aliases \
             WHERE email='*@${domain}' AND \
             type="site"}}


Be careful to add the router for local users BEFORE this router, or bad
things will happen :)

> Thanks from the cold germany ...


Ohh well, it isn't THAT cold :)