Hello Nico,
there's a problem, when i put this router after the local user router:
mysql_user:
driver = accept
condition = \
${if eq{} \
{ ${lookup mysql {SELECT home FROM passwd \
WHERE email='${local_part}@${domain}'}} \
} \
{no}{yes} \
}
retry_use_local_part
transport=mysql_delivery
No mail reaches my mysql_default_aliases router ... (I think it's because of
driver=accept??)
Regards,
Julian
----- Original Message -----
From: "Nico Erfurth" <masta@???>
To: "Julian Bartels" <exim@???>
Cc: <exim-users@???>
Sent: Wednesday, December 18, 2002 9:33 PM
Subject: 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 :)
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at
http://www.exim.org/ ##
>
>