[Exim] require_files with + option not working for me

Page principale
Supprimer ce message
Répondre à ce message
Auteur: CaLViN
Date:  
À: exim-users
Sujet: [Exim] require_files with + option not working for me
Hi all,

I'm using exim 4.20 on a Debian system, and I try to set up an
optional aliases file for each domain. I am using "require_files" and
specified "+/opt/file", but if the file exists but has wrong
permissions I still get a "failed to open" error and a temporarily
rejected, instead of the behaviour as documented, that the router is
skipped.

Any ideas? (more detailed description below)

Thanks,

CaLViN



I created this router:

domain_aliases:
driver = redirect
allow_fail
allow_defer
require_files = +/opt/${domain}/aliases
data = ${lookup{$local_part}lsearch{/opt/${domain}/aliases}}
file_transport = address_file
pipe_transport = address_pipe


If I create the file, and exim can read it, it is processed normally

If the file does not exist, I get this in the error log (which is ok):

2003-06-06 02:51:59 H=moutvdom.kundenserver.de [212.227.126.251]
F=<christian@???> rejected RCPT <didi@???>:
Unrouteable address

Now if the file exists, but has permission 000, then I get this error:

2003-06-06 02:52:27 H=moutvdom.kundenserver.de [212.227.126.250]
F=<christian@???> temporarily rejected RCPT
<didi@???>: failed to open
/opt/wegistdaswiesel.de/aliases for linear search: Permission denied
(euid=8 egid=8)

I thought that because of the + sign, I would get the same result as
if the file didn't exist...