[Dovecot] Dovecot 2.0 (2.0.11) na nfs quota
Good Morning!
I have problems with setup imap quota with mailboxes on nfs
I use dovecot 2.0.11, below dovecot.conf + extract from log: # 2.0.9: /etc/dovecot.conf.rpmsave # OS: Linux 2.6.35.11-83.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) mail_plugins = acl quota zlib trash auth_cache_size = 8 k dotlock_use_excl = yes mail_location = maildir:~/Maildir:INBOX=/var/spool/mail/%u mail_nfs_index = yes mail_fsync=always mail_nfs_storage = yes mail_privileged_group = mail mmap_disable = yes ssl_cert =
passdb { args = cache_key=%u%r%l max_requests=256 driver = pam } protocols = imap pop3 service auth { client_limit = 5248 user = root } service anvil { client_limit=1155 } service imap-login { client_limit = 256 inet_listener imap { port = 0 } inet_listener imaps { address = [::], * port = 993 } process_limit = 1024 service_count = 0 } protocol imap { ssl_cert =
process_limit = 128 service_count = 0 } protocol pop3 { ssl_cert =
service quota-warning { executable = script /usr/local/bin/quota-warning.sh # use some unprivileged user for executing the quota warnings user = dovenull unix_listener quota-warning { } }
Mar 9 09:36:06 dervish dovecot: imap-login: Login: user=<solarz>, method=PLAIN, rip=213.135.34.118, lip=213.135.44.54, mpid=4264, TLS Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: Effective uid=1761, gid=101, home=/home/staff/solarz Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: acl: No acl setting - ACLs are disabled Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: Quota root: name=Disk quota backend=fs args=user Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: Quota warning: bytes=0 (95%) messages=0 reverse=no command=quota-warning 95 solarz Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: Quota warning: bytes=0 (80%) messages=0 reverse=no command=quota-warning 80 solarz Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: maildir++: root=/home/staff/solarz/Maildir, index=, control=, inbox=/var/spool/mail/solarz Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: fs quota add mailbox dir = /home/staff/solarz/Maildir Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: fs quota block device = oceanic:/home7 Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: fs quota mount point = /home7 Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: fs quota mount type = nfs Mar 9 09:36:06 dervish dovecot: imap(solarz): Debug: trash: No trash setting - plugin disabled Mar 9 09:36:06 dervish dovecot: imap(solarz): Error: quotactl(Q_GETQUOTA, oceanic:/home7) failed: No such file or directory Mar 9 09:36:06 dervish dovecot: imap(solarz): Error: quotactl(Q_GETQUOTA, oceanic:/home7) failed: No such file or directory Mar 9 09:36:06 dervish dovecot: imap(solarz): Error: quotactl(Q_GETQUOTA, oceanic:/home7) failed: No such file or directory Mar 9 09:36:08 dervish dovecot: imap(solarz): Error: quotactl(Q_GETQUOTA, oceanic:/home7) failed: No such file or directory Mar 9 09:36:14 dervish dovecot: imap(solarz): Error: quotactl(Q_GETQUOTA, oceanic:/home7) failed: No such file or directory Mar 9 09:36:14 dervish dovecot: imap(solarz): Error: quotactl(Q_GETQUOTA, oceanic:/home7) failed: No such file or directory
[root@dervish dovecot]# quota solarz
Ograniczenia dyskowe user solarz (uid 1761):
System plików bloki miękki twardy pobł. pliki miękki twardy pobł.
/dev/mapper/vg01-lvol00
256572 7120150 8000150 1373 140010 510010
ftp:/home/ftp/pub
163490624 180000000 280000000 221472
0 0
oceanic:/home1 162643 13756030 14888830 697 190000 650000
oceanic:/home7 12298720 13756030 14888830 144846 190000 650000
oceanic:/homed 3022789 13756030 14888830 15122 190000 650000
What I doing wrong?
Best Regards PS-Inbox is mounted locally rest of the mailboxes are via nfs
-- Bartłomiej Solarz-Niesłuchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski@wit.edu.pl tel. 223486547, fax 223486501 JID: solarz@jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pokój 404, pon.-pt. 8-16 Motto - Jak sobie pościelisz tak sie wyśpisz
On 2011-03-09 3:53 AM, Bartłomiej Solarz-Niesłuchowski wrote:
I use dovecot 2.0.11, Ummm...
below dovecot.conf + extract from log: # 2.0.9: /etc/dovecot.conf.rpmsave This says you're using 2.0.9... ?
W dniu 2011-03-09 12:42, Charles Marcus pisze: that said that config was generated on 2.0.9
-- Bartłomiej Solarz-Niesłuchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski@wit.edu.pl tel. 223486547, fax 223486501 JID: solarz@jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pokój 404, pon.-pt. 8-16 Motto - Jak sobie pościelisz tak sie wyśpisz
On 2011-03-09 7:34 AM, Bartłomiej Solarz-Niesłuchowski wrote:
W dniu 2011-03-09 12:42, Charles Marcus pisze:
On 2011-03-09 3:53 AM, Bartłomiej Solarz-Niesłuchowski wrote:
I use dovecot 2.0.11, Ummm...
below dovecot.conf + extract from log: # 2.0.9: /etc/dovecot.conf.rpmsave
This says you're using 2.0.9... ?
that said that config was generated on 2.0.9
Incorrect... it (is supposed to) show(s) the current running dovecot version.
I know because I'm the one that asked Timo if it could be added to the output...
It's purpose is to help discover if you are using the version/config you think you are using...
--
Best regards,
Charles
W dniu 2011-03-09 13:56, Charles Marcus pisze:
On 2011-03-09 7:34 AM, Bartłomiej Solarz-Niesłuchowski wrote:
On 2011-03-09 3:53 AM, Bartłomiej Solarz-Niesłuchowski wrote:
I use dovecot 2.0.11, Ummm... below dovecot.conf + extract from log: # 2.0.9: /etc/dovecot.conf.rpmsave This says you're using 2.0.9... ?
W dniu 2011-03-09 12:42, Charles Marcus pisze: that said that config was generated on 2.0.9 Incorrect... it (is supposed to) show(s) the current running dovecot version.
I know because I'm the one that asked Timo if it could be added to the output...
It's purpose is to help discover if you are using the version/config you think you are using...
OK
Current status is that quota based on ext3 works BUT quota based on nfs dont.
below updated config: # 2.0.11: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35.11-83.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) auth_cache_size = 8 k mail_fsync = always mail_location = maildir:~/Maildir:INBOX=/var/spool/mail/%u mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = acl quota zlib trash mail_privileged_group = mail mmap_disable = yes passdb { args = cache_key=%u%r%l max_requests=256 driver = pam } plugin/quota = fs:INBOX:mount=/var/spool/mail plugin/quota2 = fs:Others:user plugin/quota_warning = storage=95%% quota-warning 95 %u plugin/quota_warning2 = storage=80%% quota-warning 80 %u protocols = imap pop3 service anvil { client_limit = 1155 } service auth { client_limit = 5248 user = root } service imap-login { client_limit = 256 inet_listener imap { port = 0 } inet_listener imaps { address = [::], * port = 993 } process_limit = 1024 service_count = 0 } service imap { process_limit = 2048 } service pop3-login { client_limit = 256 inet_listener pop3 { port = 0 } inet_listener pop3s { address = [::], * port = 995 } process_limit = 128 service_count = 0 } service pop3 { process_limit = 2048 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh user = dovenull } ssl_cert =
Current log: Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: box=/home/staff/solarz/Maildir/.mail.Dovecot mount=/var/spool/mail match=no Mar 9 13:58:29 dervish dovecot: imap-login: Login: user=<solarz>, method=PLAIN, rip=213.135.34.118, lip=213.135.44.54, mpid=7230, TLS Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: Effective uid=1761, gid=101, home=/home/staff/solarz Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: acl: No acl setting - ACLs are disabled Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: Quota root: name=INBOX backend=fs args=mount=/var/spool/mail Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: Quota warning: bytes=0 (95%) messages=0 reverse=no command=quota-warning 95 solarz Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: Quota warning: bytes=0 (80%) messages=0 reverse=no command=quota-warning 80 solarz Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: Quota root: name=Others backend=fs args=user Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: maildir++: root=/home/staff/solarz/Maildir, index=, control=, inbox=/var/spool/mail/solarz Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: fs quota add mailbox dir = /home/staff/solarz/Maildir Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: fs quota block device = oceanic:/home7 Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: fs quota mount point = /home7 Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: fs quota mount type = nfs Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: fs quota add mailbox dir = /var/spool/mail Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: fs quota block device = /dev/mapper/vg01-lvol00 Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: fs quota mount point = /var/spool Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: fs quota mount type = ext3 Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: trash: No trash setting - plugin disabled Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: box=/home/staff/solarz/Maildir/.mail.Dovecot mount=/var/spool/mail match=no Mar 9 13:58:29 dervish dovecot: imap(solarz): Debug: box=/home/staff/solarz/Maildir/.mail.wsisiz-net mount=/var/spool/mail match=no Mar 9 13:58:29 dervish dovecot: imap(solarz): Error: quotactl(Q_GETQUOTA, oceanic:/home7) failed: No such file or directory
[root@dervish quota]# dovecot --version 2.0.11
-- Bartłomiej Solarz-Niesłuchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski@wit.edu.pl tel. 223486547, fax 223486501 JID: solarz@jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pokój 404, pon.-pt. 8-16 Motto - Jak sobie pościelisz tak sie wyśpisz
W dniu 2011-03-09 14:20, Bartłomiej Solarz-Niesłuchowski pisze:
plugin/quota = fs:INBOX:mount=/var/spool/mail plugin/quota2 = fs:Others:user
OK reason founded.
On system where was compiled dovecot was no quota-devel package....
Now dovecot works correctly.
BUT
anybody knows why Mozilla Thunderbird shows quota based only on plugin/quota2 = fs:Others:user even on INBOX
-- Bartłomiej Solarz-Niesłuchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski@wit.edu.pl tel. 223486547, fax 223486501 JID: solarz@jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pokój 404, pon.-pt. 8-16 Motto - Jak sobie pościelisz tak sie wyśpisz
W dniu 2011-03-16 12:26, Bartłomiej Solarz-Niesłuchowski pisze:
W dniu 2011-03-09 14:20, Bartłomiej Solarz-Niesłuchowski pisze:
plugin/quota = fs:INBOX:mount=/var/spool/mail plugin/quota2 = fs:Others:user
OK reason founded.
On system where was compiled dovecot was no quota-devel package....
Now dovecot works correctly.
BUT
anybody knows why Mozilla Thunderbird shows quota based only on plugin/quota2 = fs:Others:user even on INBOX
OKi next problem: after changing dovecot to v. 2.0.12 TB shows quota on INBOX correctly but quota on Send and other mailboxes is noquota: GOOD: 8164[7102b80]: 830c000:imap.wit.edu.pl:A:CreateNewLineFromSocket: 6 OK [READ-WRITE] Select completed.
8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:SendData: 7 getquotaroot "INBOX"
8164[7102b80]: ReadNextLine [stream=5e82428 nb=29 needmore=0] 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:CreateNewLineFromSocket:
- QUOTAROOT "INBOX" "INBOX"
8164[7102b80]: ReadNextLine [stream=5e82428 nb=39 needmore=0] 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:CreateNewLineFromSocket:
- QUOTA "INBOX" (STORAGE 3336 200000)
8164[7102b80]: ReadNextLine [stream=5e82428 nb=30 needmore=0] 8164[7102b80]: 830c000:imap.wit.edu.pl:S-INBOX:CreateNewLineFromSocket: 7 OK Getquotaroot completed.
BAD: 7672[71040c0]: 964b000:imap.wit.edu.pl:A:CreateNewLineFromSocket: 2 OK [READ-WRITE] Select completed.
7672[71040c0]: 964b000:imap.wit.edu.pl:S-mail.Sent:SendData: 3 getquotaroot "mail.Sent"
7672[71040c0]: ReadNextLine [stream=95fbe88 nb=16 needmore=0] 7672[71040c0]: 964b000:imap.wit.edu.pl:S-mail.Sent:CreateNewLineFromSocket: 3 OK No quota.
7672[71040c0]: 964b000:imap.wit.edu.pl:S-mail.Sent:SendData: 4 UID fetch 1:* (FLAGS) (CHANGEDSINCE 0)
dovecot.conf # 2.0.12: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35.11-83.fc14.x86_64 x86_64 Fedora release 14 (Laughlin) auth_cache_size = 8 k mail_fsync = always mail_location = maildir:~/Maildir:INBOX=/var/spool/mail/%u mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = acl quota zlib trash mail_privileged_group = mail mmap_disable = yes passdb { args = cache_key=%u%r%l max_requests=256 driver = pam } plugin { quota = fs:INBOX:mount=/var/spool/mail quota2 = fs:Others:user quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u } protocols = imap pop3 service anvil { client_limit = 1155 } service auth { client_limit = 5248 user = root } service imap-login { client_limit = 256 inet_listener imap { port = 0 } inet_listener imaps { address = [::], * port = 993 } process_limit = 1024 service_count = 0 } service imap { process_limit = 2048 } service pop3-login { client_limit = 256 inet_listener pop3 { port = 0 } inet_listener pop3s { address = [::], * port = 995 } process_limit = 128 service_count = 0 } service pop3 { process_limit = 2048 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh user = dovenull } ssl_cert =
Tomorrow I will upgrade to dovecot 2.0.13 and check again (lukasz).
Best Regards
-- Bartłomiej Solarz-Niesłuchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski@wit.edu.pl tel. 223486547, fax 223486501 JID: solarz@jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pokój 404, pon.-pt. 8-16 Motto - Jak sobie pościelisz tak sie wyśpisz
W dniu 2011-05-18 20:21, Bartłomiej Solarz-Niesłuchowski pisze:
W dniu 2011-03-16 12:26, Bartłomiej Solarz-Niesłuchowski pisze:
W dniu 2011-03-09 14:20, Bartłomiej Solarz-Niesłuchowski pisze:
plugin/quota = fs:INBOX:mount=/var/spool/mail plugin/quota2 = fs:Others:user
OK reason founded.
On system where was compiled dovecot was no quota-devel package....
Now dovecot works correctly.
BUT
anybody knows why Mozilla Thunderbird shows quota based only on plugin/quota2 = fs:Others:user even on INBOX
OKi next problem: after changing dovecot to v. 2.0.12 TB shows quota on INBOX correctly but quota on Send and other mailboxes is noquota: Found: fedora 14 has compiled dovecot without nfs quota support
Sorry for the noise Best Regards
-- Bartłomiej Solarz-Niesłuchowski, Administrator WSISiZ e-mail: Bartlomiej.Solarz-Niesluchowski@wit.edu.pl tel. 223486547, fax 223486501 JID: solarz@jabber.wit.edu.pl 01-447 Warszawa, ul. Newelska 6, pokój 404, pon.-pt. 8-16 Motto - Jak sobie pościelisz tak sie wyśpisz
participants (2)
-
Bartłomiej Solarz-Niesłuchowski
-
Charles Marcus