On Wed, 24 Mar 2004 17:35:40 +0530, Dilip M <dilipm@???> wrote:
> On Wed, 24 Mar 2004 03:28:21 -0800, Avleen Vig
> <lists-exim@???> wrote:
>
>> On Wed, Mar 24, 2004 at 04:59:44PM +0530, Dilip M wrote:
>>> (13): Permission denied: stat() error for
>>> /var/mail/vdomains/s7technologies.com/dilipm/Maildir: Permission denied
>>
>> Dilip,
>>
>> sounds like the exim user does not have permission to access
>> /var/mail/vdomains/s7technologies.com/dilipm/Maildir.
>> This would either be the exim user itself, of the user/uid it changed to
>> in order to deliver to
>> /var/mail/vdomains/s7technologies.com/dilipm/Maildir. I think it might
>> be the user it changes to.
>>
>> So make sure that user has access to every directory in the path to
>> /var/mail/vdomains/s7technologies.com/dilipm/Maildir.
>>
Well again i checked!!
----------------------
# exim -bP exim_user
exim_user = mailnull
-------------------------
Means 'mailnull' is exim user
# exim -bt dilipm@???
dilipm@??? ->
/var/mail/vdomains/s7technologies.com/dilipm/Maildir
transport = virtual_delivery
--------------------------
Means exim is able to get data from mysql database!!
---------------
# ls -ld /var/mail/
drwxrwxrwt 3 mailnull mailnull 1024 Mar 24 17:45 /var/mail/
[root@exim exim]# ls -ld /var/mail/vdomains/
drwxrwxrwt 2 mailnull mailnull 1024 Mar 24 17:45 /var/mail/vdomains/
---------------
Means exim user ie mailnull in my case have rwx permission on this dir's
----------
My /etc/exim/exim.conf is :
.
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 ?
-Dilip