Re: [Exim] regexp lookups from a file

Góra strony
Delete this message
Reply to this message
Autor: Rejo Zenger
Data:  
Dla: Exim-Users
Temat: Re: [Exim] regexp lookups from a file
++ 02/11/02 16:14 +0100 - Nico Erfurth:
>If you can just have these problems with aliases with a fixed prefix, your
>could try this router.
>
>prefix_aliases:
> driver = redirect
> local_part_prefix = *-
> data = ${lookup {$local_part_prefix} lsearch {/etc/your/alias/file} }
>
>And using
>
>bounce-:someaddress@???
>info-:someotheraddress@???
>normalalias: xxx@???
>
>as your aliasfile?


Oke, this is something I can use. Thank you. Still I seem to have some
problems. This is the setup currently in place:


In /etc/exim/configure:

|  domainlist local_domains = *.local :\
|                             partial-lsearch;/etc/exim/virtual.domains


Same file, right after the dnslookup and before the system_aliases
router:

|  virtual_domains:
|    driver = redirect
|    domains = partial-lsearch;/etc/exim/aliases-$domain
|    local_part_prefix = *-
|    data = ${lookup {$local_part_prefix} lsearch {/etc/exim/aliases-$domain} }


In /etc/exim/virtual.domains:

| sisterray.xs4all.nl
| rz.xs4all.nl
| rz.nl.eu.org


In /etc/exim/aliases-rz.xs4all.nl

| # main
| rejo: rejo@???

|
| # catch-all
| bounce-: rejo
| charter-: rejo



So, now when I send an email to <bounce-test@???>, this should
be accepted - if I'm not mistaken. Mail to <bounce-test@???>
should go to <rejo@???> should go to <rejo@???>. Right?

Well, in one way or another, email to <rejo@???> is accepted,
but email to <bounce-test@???> is not. Probably I'm overlooking
something stupid...

|  2002-11-03 13:53:14 188KFe-0004bd-00 <= rejo@??? U=rejo P=local
|      S=570 id=20021103125314.GA17706@??? T="test" from
|      <rejo@???> for bounce-test@???
|  2002-11-03 13:53:14 188KFe-0004bd-00 ** bounce-test@???:
|      Unrouteable address


What is it that I'm doing wrong?

--
Rejo Zenger <rejo@???>
http://www.xs4all.nl/~sister
PGP 0x75FC50F3