[Dovecot] userdb syntax

2010-10-06 Thread suzuki
Hello,

I have a question about userdb lookup when using expire-tool.

Dovecot version 1.2.15
In dovecot.conf,
  mail_location = maildir:/var/mail/%u:INDEX=/var/indexes/%u

I run dovecot expire-tool, target user's directory becomes
executing user's one.
According to wiki, userdb setting overrides mail_location.

  userdb passwd {
mail=maildir:/var/mail/%u:INDEX=/var/indexes/%u
  }

With this setting, it seems working.
But, there are no examples with :INDEX=.. setting.
Is this syntax right?

Regards


Re: [Dovecot] expire plugin

2010-06-22 Thread suzuki
2010/6/22 Timo Sirainen t...@iki.fi:
 I am testing expire plugin, with quota plugin enabled.
 When I execute expire-tool, maildirsize is not updated.

 Is there any solution to update maildirsize when executing expire-tool?

 # /usr/local/dovecot/sbin/dovecot --version
 1.1.18

 You could try if setting MAIL_PLUGINS=quota before executing expire-tool
 works. If not, you'll need v1.2.

Setting MAIL_PLUGINS=quota did not work.
I tried v1.2, it worked.

Thanks


[Dovecot] expire plugin

2010-06-20 Thread suzuki
Hello,

I am testing expire plugin, with quota plugin enabled.
When I execute expire-tool, maildirsize is not updated.

Is there any solution to update maildirsize when executing expire-tool?

# /usr/local/dovecot/sbin/dovecot --version
1.1.18

# /usr/local/dovecot/sbin/dovecot -n
# 1.1.18: /usr/local/dovecot/etc/dovecot.conf
# OS: FreeBSD 7.2-STABLE i386
base_dir: /var/run/dovecot/
syslog_facility: local4
protocols: pop3
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /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 expire
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 expire
  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
  expire: Spam 7
  expire_dict: proxy:/var/run/dovecot/dict-server:expire
  auth_socket_path: /var/run/dovecot/auth-master
dict:
  expire: mysql:/usr/local/dovecot/etc/dovecot-dict-expire.conf


[Dovecot] changing location of index files

2009-09-07 Thread suzuki
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