RE: [Exim] require_files and local_parts

Top Pagina
Delete this message
Reply to this message
Auteur: John Horne
Datum:  
Aan: exim-users
Onderwerp: RE: [Exim] require_files and local_parts
On 09-May-01 at 16:48:51 Padraic Renaghan wrote:
> Take the following director:
>
> test_director:
> driver = forwardfile
> require_files = /conf/virtual/${lc:$domain}/mail/test
> local_parts = lsearch;/conf/virtual/${lc:$domain}/mail/test
> file = /conf/shared/mail/test.filter
> no_check_local_user
> filter
> check_ancestor
> reply_transport = address_reply
>
> I had expected require_files to take precedence over the local_parts
> check. It seems that local_parts is checked before require_files. I
> got around this issue by removing require_files and using a
> local_parts line with a "${if exists...}" type structure.
>

Manual page 143 (skipping directors and routers) does point out that the
'domains' and 'local_parts' options are checked before 'require_files'.

Note: since this is a director (i.e. treating a local address) my
understanding is that the domain and local part will be in lower case unless
you disable the 'locally_caseles' option. As such you shouldn't need the
'${lc:' function in your director.

John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers