Hello,
I think changing index files location of mail_location setting
to reduce disk I/O.
by adding "INDEX=/var/index/%d/%1n/%n" to mail_location like below,
mail_location = maildir:~/Maildir:INDEX=/var/index/%d/%1n/%n
Will this change cause any problems or data loss to existing pop3 users?
There are only pop3 users on this server.
% dovecot --version
1.1.18
% dovecot -n
# 1.1.18: /usr/local/dovecot/etc/dovecot.conf
# OS: FreeBSD 7.2-STABLE i386
syslog_facility: local4
protocols: pop3
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /usr/local/dovecot/var/run/dovecot/login
login_executable: /usr/local/dovecot/libexec/dovecot/pop3-login
login_greeting: ready
mail_max_userip_connections: 1
verbose_proctitle: yes
first_valid_uid: 10026
last_valid_uid: 10026
first_valid_gid: 10026
last_valid_gid: 10026
mail_privileged_group: vmail
mail_uid: 10026
mail_gid: 10026
mail_location: maildir:~/Maildir
mail_debug: yes
maildir_copy_preserve_filename: yes
mail_executable: /usr/local/dovecot/libexec/dovecot/pop3
mail_plugins: quota
mail_plugin_dir: /usr/local/dovecot/lib/dovecot/pop3
mail_log_max_lines_per_sec: 30
pop3_enable_last: yes
pop3_reuse_xuidl: yes
pop3_lock_session: yes
pop3_client_workarounds: outlook-no-nuls,oe-ns-eoh
lda:
postmaster_address: postmaster
mail_plugins: quota
sendmail_path: /usr/local/sbin/sendmail
auth_socket_path: /var/run/dovecot/auth-master
auth default:
verbose: yes
passdb:
driver: sql
args: /usr/local/dovecot/etc/dovecot-sql.conf
userdb:
driver: sql
args: /usr/local/dovecot/etc/dovecot-sql.conf
socket:
type: listen
master:
path: /var/run/dovecot/auth-master
mode: 384
user: vmail
plugin:
quota: maildir
On Tue, 2009-09-08 at 14:28 +0900, suzuki wrote:> Hello, > > I think changing index files location of mail_location setting > to reduce disk I/O. > by adding "INDEX=/var/index/%d/%1n/%n" to mail_location like below, > mail_location = maildir:~/Maildir:INDEX=/var/index/%d/%1n/%n > > Will this change cause any problems or data loss to existing pop3 users? > There are only pop3 users on this server. > > > % dovecot --version > 1.1.18With v1.1 Dovecot should have virtual sizes either in Maildir filenames as ,W=1234 or written to dovecot-uidlist file in W1234 fields. You could verify this, and if you find them there should be no problems moving the index files. Since you have only POP3 users you could also try if it's better for performance to simply disable indexes completely (:INDEX=MEMORY). The main reason why indexes can be useful with POP3 is if user keeps lots of mails on the server and logs in constantly to see if there is new mail. Indexes avoid readdir()ing through Maildir/cur/ directory then. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090909/19df4be9/attachment-0002.bin>