Currently I have the following configuration for my last router:
final_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup mysql \
{ SELECT dest FROM aliases WHERE
email='[EMAIL PROTECTED]' AND type="site"} \
{$value} \
{ ${lookup mysql \
{ SELECT dest FROM aliases WHERE
email='[EMAIL PROTECTED]' AND type="site"} \
{$value} \
} \
} \
}
I figure everyone can see that it first checks for a fixed match, and if
not found for a [EMAIL PROTECTED] match, which is the catchall alias.
I have two questions.
1. Is there a better way to do this? For some reason this seems ugly.
Not really sure what I dig here. I set it up by luck when I setup exim
for the first time, and never really looked into how it works.
2. Is there a way I can have exim interpret multiple rows returned by
the query as multiple destinations for the alias.
Meaning if I have a mail delivered for [EMAIL PROTECTED], and there are
two rows for [EMAIL PROTECTED], one for [EMAIL PROTECTED] and another
for [EMAIL PROTECTED] Currently I separate them by commas to deliver
to more than one person. Because I run mysql 3 (technical reasons) which
doesn't support grouping multiple rows into one row, I am stuck using
the difficult to manage technique. I basically want to know if there is
an exim configuration option or function which can cause exim to
interpret multiple destinations separated by a newline (if I'm not
mistaken) instead of a comma.
Thanks
Quintin Beukes
PS. I am not on the mailing list, please reply to my personal address.
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/