[Dovecot] How can i override mail_location?
Zhang Huangbin
zhbmaillistonly at gmail.com
Fri Mar 13 16:17:30 EET 2009
Hi, all.
I use dovecot-1.1.11 with OpenLDAP backend. but i found the
mail_location is not correct. How can i override mail_location setting
in dovecot.conf?
LDAP user data and dovecot config are attached below. in dovecot config,
mail_location is:
----
mail_location = maildir:/%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/
----
but the correct maildir should be 'homeDirectory' + 'mailMessageStore':
----
maildir:/home/vmail/a.cn/w/ww/www/
----
LDAP user:
----
dn: mail=www at a.cn,ou=Users,domainName=a.cn,o=domains,dc=iredmail,dc=org
objectClass: inetOrgPerson
objectClass: mailUser
objectClass: top
cn: www
sn: www
uid: www
mail: www at a.cn
accountStatus: active
homeDirectory: /home/vmail
mailQuota: 104857600
userPassword: {SSHA}crkYO5tg8KRkOY7W3bRgjtLQ+79U4NgG
enabledService: mail
enabledService: smtp
enabledService: pop3
enabledService: imap
enabledService: deliver
mailMessageStore: a.cn/w/ww/www/
----
Dovecot ldap config file:
----
user_attrs =
homeDirectory=home,=sieve_dir=/home/vmail/sieve/%Ld/%Ln/,mailMessageStore=maildir:mail,mailQuota=quota_rule=*:bytes=%$
----
Dovecot main config file:
----
# dovecot -n
# 1.1.11: /etc/dovecot.conf
# OS: Linux 2.6.18-128.el5 x86_64 Red Hat Enterprise Linux Server
release 5.3 (Tikanga)
log_path: /var/log/dovecot.log
protocols: pop3 pop3s imap imaps
listen: *
ssl_cert_file: /etc/pki/iRedMail/SSL_Cert.pem
ssl_key_file: /etc/pki/iRedMail/SSL_Key.pem
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_uid: 500
mail_gid: 500
mail_location: maildir:/%Lh/%Ld/%Ln/:INDEX=/%Lh/%Ld/%Ln/
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota zlib
mail_plugins(imap): quota imap_quota zlib
mail_plugins(pop3): quota zlib
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
mechanisms: plain login
default_realm: a.cn
user: vmail
passdb:
driver: ldap
args: /etc/dovecot-ldap.conf
userdb:
driver: ldap
args: /etc/dovecot-ldap.conf
socket:
type: listen
client:
path: /var/spool/postfix/dovecot-auth
mode: 438
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 438
user: vmail
group: vmail
plugin:
quota: maildir
quota_rule: *:storage=10M
expire: Trash 7 Trash/* 7 Junk 30
expire_dict: proxy::expire
auth_socket_path: /var/run/dovecot/auth-master
sieve: /home/vmail/sieve/%Ld/%Ln/.dovecot.sieve
dict:
expire: db:/var/lib/dovecot/expire/expire.db
----
--
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