Re: [Exim] Appendfile problem.

Góra strony
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Dla: Friso Kuipers
CC: Exim Users
Temat: Re: [Exim] Appendfile problem.
On Sun, 1 Apr 2001, Friso Kuipers wrote:

> According to the Fine Manual (exim 3.22):


Not fine enough, apparently.

> -------------------------------------
> create_directory (appendfile)
>
> Type: boolean
> Default: true
>          ^^^^
> When this option is true, Exim creates any missing superior
>                                            ^^^^^^^
> directories for the file that it is about to write. A created directory's
> mode is given by the directory_mode option.
> --------------------------------------------------------


> , I get this error:
>
> 2001-04-01 23:41:14 14jpb0-0001OW-00 ==
> test@???
> T=vmail_delivery defer (2): No such file or
> directory: failed to chdir to /home/vmail/users/test
>
> Why didn't the transport create the directories? /home/vmail/users
> already exists and has owner vmail, group mail.


The transport didn't create the directory because it never got there. It
only creates directories for the file it is about to write. It does not
create directories for the current directory that is set while it is
running. (Basically, it chdir's to that directory before doing anything
at all.)

> vmail_smartlist:
>   driver = smartuser
>   local_parts = dbm;/etc/userdb.dat
>   home_directory = "${if match{${extract{3}{|}\
>                       {${local_part_data}}}}{^mail=(.+)\\$}{$1}fail}"
>   transport = vmail_delivery


Try adding

    current_directory = /


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.