14 Mar
2009
14 Mar
'09
4:21 a.m.
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@a.cn): Mar 14 09:49:31 Info: auth input: home=/home/vmail deliver(www@a.cn): Mar 14 09:49:31 Info: auth input: quota_rule=*:bytes=104857600 deliver(www@a.cn): Mar 14 09:49:31 Info: auth input: maildir:/home/vmail/%$=/home/vmail/a.cn/w/ww/www/ deliver(www@a.cn): Mar 14 09:49:31 Info: auth input: sieve_dir=/home/vmail/sieve/a.cn/www/ deliver(www@a.cn): Mar 14 09:49:31 Info: Quota root: name= backend=maildir args= deliver(www@a.cn): Mar 14 09:49:31 Info: Quota rule: root= mailbox=* bytes=104857600 messages=0 deliver(www@a.cn): Mar 14 09:49:31 Info: maildir: data=//home/vmail/a.cn/www/:INDEX=//home/vmail/a.cn/www/ deliver(www@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@a.cn): Mar 14 09:49:31 Info: cmusieve: Using sieve path: /home/vmail/sieve/a.cn/www/.dovecot.sieve deliver(www@a.cn): Mar 14 09:49:31 Info: cmusieve: Executing script /home/vmail/sieve/a.cn/www/.dovecot.sievec deliver(www@a.cn): Mar 14 09:49:31 Info: msgid=49BB0D17.8070101@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/