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

Etusivu
Poista viesti
Vastaa
Lähettäjä: Nico Erfurth
Päiväys:  
Vastaanottaja: Julian Bartels
Kopio: exim-users
Aihe: 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 :)