[Exim] Re: Permission denied: stat() error for

Top Page
Delete this message
Reply to this message
Author: Dilip M
Date:  
To: Dilip M, vexim@silverwraith.com, exim-users@exim.org
Subject: [Exim] Re: Permission denied: stat() error for

[...]


> .
> begin transports
> .
> .
> virtual_delivery:
>    driver = appendfile
>    envelope_to_add
>    return_path_add
>    mode = 0600
>    maildir_format = true
>    create_directory = true
>    directory = ${lookup mysql{select smtp from users,domains \
>                  where localpart = '${quote_mysql:$local_part}' \
>                  and domain = '${quote_mysql:$domain}' \
>                  and users.domain_id = domains.domain_id}}
>    user = ${lookup mysql{select users.uid  from users,domains \
>                  where localpart = '${quote_mysql:$local_part}' \
>                  and domain = '${quote_mysql:$domain}' \
>                  and users.domain_id = domains.domain_id}}
>    group = ${lookup mysql{select users.gid from users,domains \
>                  where localpart = '${quote_mysql:$local_part}' \
>                  and domain = '${quote_mysql:$domain}' \
>                  and users.domain_id = domains.domain_id}}

>
> .
> .
> .
> .
>
> -------------------------
> The Directory will result to
> '/var/mail/vdomains/s7technologies.com/dilipm/Maildir'
>
> The user and group will result to '40' in my case !!
>
> Since "create_directory = true" the dir
> 's7technologies.com/dilipm/Maildir' should be created when we send a very
> first mail to that account !! right ?


One more thing what i obsorved is:

# exim -d+all -bt dilipm@???
.
.
.
[...]
20:19:47  4907 ---0 Rst 0x81082dd    **       expand.c 4059 32800
20:19:47  4907 expanding: ${lookup mysql{select smtp from users,domains
where localpart = '${quote_mysql:$local_part}' and domain =
'${quote_mysql:$domain}' and domains.enabled = '1' and users.enabled = '1'
and users.domain_id = domains.domain_id}}
20:19:47  4907    result:
/var/mail/vdomains/s7technologies.com/dilipm/Maildir
20:19:47  4907 expanded:
/var/mail/vdomains/s7technologies.com/dilipm/Maildir
20:19:47  4907 file is not a filter file
20:19:47  4907 parse_forward_list:
/var/mail/vdomains/s7technologies.com/dilipm/Maildir
20:19:47  4907 extract item:
/var/mail/vdomains/s7technologies.com/dilipm/Maildir
20:19:47  4907 ---0 Get 0x81082e0    56        parse.c  615
20:19:47  4907 ---0 Get 0x8108318    56        parse.c 1524
20:19:47  4907 ---0 Get 0x8108350   200      deliver.c   97
20:19:47  4907 ---0 Get 0x8108418    56       string.c  349
20:19:47  4907 ---0 Get 0x8108450    56       string.c  349
20:19:47  4907 set transport virtual_delivery
20:19:47  4907 virtual_domains router generated
/var/mail/vdomains/s7technologies.com/dilipm/Maildir
20:19:47  4907   pipe, file, or autoreply
20:19:47  4907   errors_to=NULL transport=virtual_delivery
20:19:47  4907   uid=unset gid=unset home=NULL
20:19:47  4907 routed by virtual_domains router
20:19:47  4907   envelope to: dilipm@???
20:19:47  4907   transport: <none>
20:19:47  4907 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
20:19:47  4907 Considering
/var/mail/vdomains/s7technologies.com/dilipm/Maildir
dilipm@??? ->
/var/mail/vdomains/s7technologies.com/dilipm/Maildir
   transport = virtual_delivery
20:19:47  4907 search_tidyup called
20:19:47  4907 ----Free 0x810d6f0             search.c  230
20:19:47  4907 ----Free 0x810d690             search.c  231
20:19:47  4907 ----Free 0x8100238             search.c  232
20:19:47  4907 ----Free 0x8102908             search.c  233
20:19:47  4907 close MYSQL connection:
localhost:(/var/lib/mysql/mysql.sock)/vexim/vexim
20:19:47  4907 ----Free 0x8100258              mysql.c   75
20:19:47  4907 ----Free 0x8109e20              mysql.c   76
20:19:47  4907 ----Free 0x810c4c8              mysql.c   77
20:19:47  4907 >>>>>>>>>>>>>>>> Exim pid=4907 terminating with rc=0

>>>>>>>>>>>>>>>>


Line number says that uid and gid are unset , which has to be '40'

20:19:47 4907 uid=unset gid=unset home=NULL

-Dilip