[Dovecot] quota ignore sent folder
I have configured postfix and dovecot and I want to know hot to configure quota in order to ignore sent folder. Now it does work ignoring trash folder but I want to ignore sent.
On 11/03/2009 05:02 AM juan carlos wrote:
I have configured postfix and dovecot and I want to know hot to configure quota in order to ignore sent folder. Now it does work ignoring trash folder but I want to ignore sent.
You've forgotten to show dovecot -n output.
Regards, Pascal
The trapper recommends today: fabaceae.0930716@localdomain.org
sorry i forgot
smtp:~# dovecot -n # 1.0.15: /etc/dovecot/dovecot.conf base_dir: /var/run/dovecot/ log_path: /var/log/mail.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: pop3 imap disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login login_processes_count: 5 login_max_processes_count: 256 login_max_connections: 512 first_valid_uid: 5000 last_valid_uid: 5000 first_valid_gid: 5000 mail_access_groups: vmail mail_privileged_group: vmail mail_location: maildir:/home/vmail/%d/%n maildir_copy_with_hardlinks: yes maildir_copy_preserve_filename: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugins(default): quota imap_quota trash mail_plugins(imap): quota imap_quota trash mail_plugins(pop3): quota mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 imap_client_workarounds(default): outlook-idle delay-newmail imap_client_workarounds(imap): outlook-idle delay-newmail imap_client_workarounds(pop3): outlook-idle pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh namespace: type: private separator: . prefix: INBOX. inbox: yes auth default: mechanisms: plain login user: vmail passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: vmail master: path: /var/run/dovecot/auth-master mode: 432 user: vmail group: vmail plugin: quota: maildir:storage=51200:messages=1000:ignore=Trash trash: /etc/dovecot/dovecot-trash.conf
On 11/03/2009 09:42 PM juan carlos wrote:
sorry i forgot
smtp:~# dovecot -n # 1.0.15: /etc/dovecot/dovecot.conf … mail_plugins(default): quota imap_quota trash mail_plugins(imap): quota imap_quota trash mail_plugins(pop3): quota … plugin: quota: maildir:storage=51200:messages=1000:ignore=Trash trash: /etc/dovecot/dovecot-trash.conf
Your Sent folder is ignored, because the Trash folder should be ignored. And the wiki http://wiki.dovecot.org/Quota/Maildir mentions: "Note that there can be only one ignore setting." (v1.0.x)
Upgrade to v1.1.x or better 1.2.x. So you can configure multiple quota (ignore) rules.
Regards, Pascal
The trapper recommends today: cafebabe.0930722@localdomain.org
On 11/04/2009 04:55 AM juan carlos wrote:
I have updated to dovecot 1.2.4, now how to configure multiple quotas
As described in the fine documentation: http://wiki.dovecot.org/Quota/1.1
Regards, Pascal
The trapper recommends today: 5e1f1e55.0930806@localdomain.org
Do you have an example with different quotas using mysql. These are my config files:
dovecot-sql.conf
password_query = SELECT email AS user, password, '/home/vmail/%d/%n' AS userdb_home, 'maildir:/home/vmail/%d/%n' AS userdb_mail, 5000 AS userdb_uid, 5000 AS userdb_gid, CONCAT('maildir:storage=', ROUND(quota/1000) ) AS userdb_quota FROM users WHERE email = '%u'
user_query = SELECT '/home/vmail/%d/%n' AS home, 'maildir:/home/vmail/%d/%n' AS mail, 5000 AS uid, 5000 AS gid, CONCAT('maildir:storage=', ROUND(quota/1000) ) AS quota FROM users WHERE email = '%u'
dovecot.conf
plugin: quota: maildir:storage=51200:messages=1000:ignore=Trash trash: /etc/dovecot/dovecot-trash.conf
On 11/04/2009 04:21 PM juan carlos wrote:
Do you have an example with different quotas using mysql. These are my config files:
dovecot-sql.conf password_query = SELECT email AS user, password, '/home/vmail/%d/%n' AS userdb_home, 'maildir:/home/vmail/%d/%n' AS userdb_mail, 5000 AS userdb_uid, 5000 AS userdb_gid, CONCAT('maildir:storage=', ROUND(quota/1000) ) AS userdb_quota FROM users WHERE email = '%u'
user_query = SELECT '/home/vmail/%d/%n' AS home, 'maildir:/home/vmail/%d/%n' AS mail, 5000 AS uid, 5000 AS gid, CONCAT('maildir:storage=', ROUND(quota/1000) ) AS quota FROM users WHERE email = '%u'
dovecot.conf
plugin: quota: maildir:storage=51200:messages=1000:ignore=Trash trash: /etc/dovecot/dovecot-trash.conf
Your dovecot -n output¹ does not show 'prefetch user database' settings. Please check your password_query. There is an example² in the wiki. How to configure global quota rules and overwrite it per user, is also described³ in the wiki (including examples).
Regards, Pascal
1 = http://dovecot.org/list/dovecot/2009-November/044199.html 2 = http://wiki.dovecot.org/AuthDatabase/SQL#MySQL 3 = http://wiki.dovecot.org/Quota/1.1
The trapper recommends today: beeffeed.0930817@localdomain.org
participants (2)
-
juan carlos
-
Pascal Volk