Re: [Exim] multiple domains and unknown-users

Pàgina inicial
Delete this message
Reply to this message
Autor: Thomas Pircher
Data:  
A: exim-users
Assumpte: Re: [Exim] multiple domains and unknown-users
Sebastian Lemke wrote:
> Hello @all,
>
> Now I get an email 'unknown-user@???' and I would like to
> forward this one to an real existing user at domain1.com - the same
> thing for domain2.com.


You can place a catch_all router after the router which is handling
your virtual users:

catch_all:
    driver = redirect
    data = postmaster@${domain}


> Another thing is - is it possible to use an mysql-database for
> authentification (perhaps via pam) ?


Yes, it is possible (mysql-support must be compiled in). An example
could be:

virtual_user:
    driver = redirect
    allow_fail
    allow_defer
    data = ${lookup mysql{ SELECT maildir FROM users \
        WHERE id='${local_part}@${domain}' }}
    directory_transport = address_directory



See
    http://www.exim.org/exim-html-4.10/doc/html/spec.html
    http://www.tty1.net/virtual_domains_en.html


Regards,
Thomas