[Dovecot] How can i override mail_location?
Zhang Huangbin
zhbmaillistonly at gmail.com
Sat Mar 14 04:21:03 EET 2009
Timo Sirainen wrote:
> On Fri, 2009-03-13 at 22:17 +0800, Zhang Huangbin wrote:
>
>> homeDirectory: /home/vmail
>>
>
> Is it always /home/vmail?
>
Yes, homeDirectory is always /home/vmail.
>> user_attrs =
>> homeDirectory=home,=sieve_dir=/home/vmail/sieve/%Ld/%Ln/,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$
>>
>
> Maybe mailMessageStore=maildir:/home/vmail/%$
>
I set it like this:
----
user_attrs =
homeDirectory=home,=sieve_dir=/home/vmail/sieve/%Ld/%Ln/,mailMessageStore=maildir:/home/vmail/%$,mailQuota=quota_rule=*:bytes=%$
----
It find the correct path, but deliver to path setting in mail_location:
----
deliver(www at a.cn): Mar 14 09:49:31 Info: auth input: home=/home/vmail
deliver(www at a.cn): Mar 14 09:49:31 Info: auth input:
quota_rule=*:bytes=104857600
deliver(www at a.cn): Mar 14 09:49:31 Info: auth input:
maildir:/home/vmail/%$=/home/vmail/a.cn/w/ww/www/
deliver(www at a.cn): Mar 14 09:49:31 Info: auth input:
sieve_dir=/home/vmail/sieve/a.cn/www/
deliver(www at a.cn): Mar 14 09:49:31 Info: Quota root: name=
backend=maildir args=
deliver(www at a.cn): Mar 14 09:49:31 Info: Quota rule: root= mailbox=*
bytes=104857600 messages=0
deliver(www at a.cn): Mar 14 09:49:31 Info: maildir:
data=//home/vmail/a.cn/www/:INDEX=//home/vmail/a.cn/www/
deliver(www at a.cn): Mar 14 09:49:31 Info: maildir++:
root=//home/vmail/a.cn/www, index=, control=, inbox=//home/vmail/a.cn/www
deliver(www at a.cn): Mar 14 09:49:31 Info: cmusieve: Using sieve path:
/home/vmail/sieve/a.cn/www/.dovecot.sieve
deliver(www at a.cn): Mar 14 09:49:31 Info: cmusieve: Executing script
/home/vmail/sieve/a.cn/www/.dovecot.sievec
deliver(www at a.cn): Mar 14 09:49:31 Info: msgid=<49BB0D17.8070101 at a.cn>:
saved mail to Junk
----
setting in dovecot.conf:
----
mail_location = maildir:/%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/
----
> Also home directory should be different for each user, so you most
> likely don't want to set homeDirectory=home.
>
I will try to change this, thanks Timo :)
--
Best regards.
Zhang Huangbin
- Open Source Mail Server Solution for RHEL/CentOS 5.x:
http://code.google.com/p/iredmail/
More information about the dovecot
mailing list