[Dovecot] Dovequota Mbox - NFS - Quota Does not work
Hi I am not able to get the quota out from dovecot I have tried with thunderbird and roundcube without luck this is my conf
# 2.0.beta6 (3156315704ef): /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.14.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) mail_debug = yes mail_location = mbox:~/mail:INBOX=/mail/spool/%u:INDEX=/mail/indexes/%u mbox_write_locks = fcntl passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size quota = fs:INBOX:mount=/mail quota2 = fs:ROOT:mount=/home } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol imap { imap_logout_format = bytes=%i/%o mail_max_userip_connections = 10 mail_plugins = imap_quota quota }
What I am doing wrong?
On 2011-02-25 1:58 PM, Il Neofita wrote:
I am not able to get the quota out from dovecot I have tried with thunderbird and roundcube without luck this is my conf
# 2.0.beta6
Upgrade first, them come back with question.
Too many fixes since beta6...
--
Best regards,
Charles
Ok same problem # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.14.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) mail_debug = yes mail_location = mbox:~/mail:INBOX=/mail/spool/%u:INDEX=/mail/indexes/%u mail_nfs_storage = yes mbox_write_locks = fcntl passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename imap_quota quota mail_log_fields = uid box msgid size quota = fs:fraser:mount=/home quota2 = fs:INBOX:mount=/mail } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol imap { mail_plugins = quota imap_quota }
DF /dev/mapper/mail_group-mail 780152128 202024 740320692 1% /mail bigfat.localserver:/export/home0/centos 198381216 64283072 123858336 35% /home/centos
On Fri, Feb 25, 2011 at 2:50 PM, Charles Marcus <CMarcus@media-brokers.com> wrote:
On 2011-02-25 1:58 PM, Il Neofita wrote:
I am not able to get the quota out from dovecot I have tried with thunderbird and roundcube without luck this is my conf
# 2.0.beta6
Upgrade first, them come back with question.
Too many fixes since beta6...
--
Best regards,
Charles
Logs?
Basic troubleshooting techniques...
When asking for help with a problem, state the problem succintly, then provide relevant config details, *and* logs exhibiting the problem.
I don't do NFS or Quotas, so may not be able to help once there is enough info to do so, I'm just trying to help you get the info here so someone who can help will be able to.
Also - please provide all of the relevant details in the same message, don't make people go back and read the entire thread (yes, that would mean reposting doveconf -n output)...
On 2/25/2011 3:27 PM, Il Neofita wrote:
Ok same problem # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.14.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) mail_debug = yes mail_location = mbox:~/mail:INBOX=/mail/spool/%u:INDEX=/mail/indexes/%u mail_nfs_storage = yes mbox_write_locks = fcntl passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename imap_quota quota mail_log_fields = uid box msgid size quota = fs:fraser:mount=/home quota2 = fs:INBOX:mount=/mail } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol imap { mail_plugins = quota imap_quota }
DF /dev/mapper/mail_group-mail 780152128 202024 740320692 1% /mail bigfat.localserver:/export/home0/centos 198381216 64283072 123858336 35% /home/centos
On Fri, Feb 25, 2011 at 2:50 PM, Charles Marcus <CMarcus@media-brokers.com> wrote:
On 2011-02-25 1:58 PM, Il Neofita wrote:
I am not able to get the quota out from dovecot I have tried with thunderbird and roundcube without luck this is my conf
# 2.0.beta6
Upgrade first, them come back with question.
Too many fixes since beta6...
You are right, here a merge everything
Hi I am not able to get the quota out from dovecot I have tried with thunderbird and roundcube without luck this is my conf
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.14.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) mail_debug = yes mail_location = mbox:~/mail:INBOX=/mail/spool/%u:INDEX=/mail/indexes/%u mail_nfs_storage = yes mbox_write_locks = fcntl passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename imap_quota quota mail_log_fields = uid box msgid size quota = fs:bigfat:mount=/home quota2 = fs:INBOX:mount=/mail } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol imap { mail_plugins = quota imap_quota }
DF /dev/mapper/mail_group-mail 780152128 202024 740320692 1% /mail bigfat.localserver:/export/home0/centos 198381216 64283072 123858336 35% /home/centos
and this is the log
Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so Feb 27 05:30:35 mailerweb dovecot: auth: Debug: new auth connection: pid=10514 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011lip=SERVERIP#011rip=CLIENTIP#011lport=993#011rport=49186 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client out: CONT#0111#011 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client in: CONT<hidden> Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so Feb 27 05:30:36 mailerweb dovecot: auth: Debug: pam(centos,CLIENTIP): lookup service=dovecot Feb 27 05:30:36 mailerweb dovecot: auth: Debug: pam(centos,CLIENTIP): #1/1 style=1 msg=Password: Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client out: OK#0111#011user=centos Feb 27 05:30:36 mailerweb dovecot: auth: Debug: master in: REQUEST#0111#01110514#0111#0113e6c35de88f54672e76f353542acc8a4 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: passwd(centos,CLIENTIP): lookup Feb 27 05:30:36 mailerweb dovecot: auth: Debug: master out: USER#0111#011centos#011system_groups_user=centos#011uid=6277#011gid=600#011home=/home/centos Feb 27 05:30:36 mailerweb dovecot: imap-login: Login: user=<centos>, method=PLAIN, rip=CLIENTIP, lip=SERVERIP, mpid=10519, TLS Feb 27 05:30:36 mailerweb dovecot: imap: Debug: Loading modules from directory: /usr/lib64/dovecot Feb 27 05:30:36 mailerweb dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so Feb 27 05:30:36 mailerweb dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: Effective uid=6277, gid=600, home=/home/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: Quota root: name=INBOX backend=fs args=mount=/mail Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: Quota root: name=Others backend=fs args=mount=/home Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs: root=/home/centos/mail, index=/mail/indexes/centos, control=, inbox=/mail/spool/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota add mailbox dir = /home/centos/mail Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota block device = bigfat.localserver:/export/home0/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota mount point = /home/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota mount type = nfs Feb 27 05:30:37 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/mail match=yes Feb 27 05:30:37 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/home match=no Feb 27 05:30:52 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/mail match=yes Feb 27 05:30:52 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/home match=no
On Sat, Feb 26, 2011 at 7:43 PM, Charles Marcus <CMarcus@media-brokers.com> wrote:
Logs?
Basic troubleshooting techniques...
When asking for help with a problem, state the problem succintly, then provide relevant config details, *and* logs exhibiting the problem.
I don't do NFS or Quotas, so may not be able to help once there is enough info to do so, I'm just trying to help you get the info here so someone who can help will be able to.
Also - please provide all of the relevant details in the same message, don't make people go back and read the entire thread (yes, that would mean reposting doveconf -n output)...
On 2/25/2011 3:27 PM, Il Neofita wrote:
Ok same problem # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.14.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) mail_debug = yes mail_location = mbox:~/mail:INBOX=/mail/spool/%u:INDEX=/mail/indexes/%u mail_nfs_storage = yes mbox_write_locks = fcntl passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename imap_quota quota mail_log_fields = uid box msgid size quota = fs:fraser:mount=/home quota2 = fs:INBOX:mount=/mail } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol imap { mail_plugins = quota imap_quota }
DF /dev/mapper/mail_group-mail 780152128 202024 740320692 1% /mail bigfat.localserver:/export/home0/centos 198381216 64283072 123858336 35% /home/centos
On Fri, Feb 25, 2011 at 2:50 PM, Charles Marcus <CMarcus@media-brokers.com> wrote:
On 2011-02-25 1:58 PM, Il Neofita wrote:
I am not able to get the quota out from dovecot I have tried with thunderbird and roundcube without luck this is my conf
# 2.0.beta6
Upgrade first, them come back with question.
Too many fixes since beta6...
It looks like you included the output of df but could you try running the quota command when signed in as a user who has a quota on the NFS server, or running "quota thatuser" as root?
If you don't get anything, then fetching of a user's quota isn't working over NFS and you probably need to look at your NFS server. If you do get the user's quota, then it's time to look closer at Dovecot.
Are you using the atrpms RPM? That does not have NFS quota (rquota) support compiled in. If you rebuild the SRPM with quota-devel installed you will have rquota support in the resulting RPM. I've emailed the package maintainer and asked him to include quota-devel as an optional (but default enabled) build-requires.
Once you've got the quota command working, could you try telnetting to port 143 or openssl s_client -connect yourserver:sslport, logging in and doing getquotaroot inbox? If you haven't done this before, the following page may help you:
http://bobpeers.com/technical/telnet_imap.php
Hope this helps, David Warden
On Feb 27, 2011, at 5:36 AM, Il Neofita wrote:
You are right, here a merge everything
Hi I am not able to get the quota out from dovecot I have tried with thunderbird and roundcube without luck this is my conf
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.14.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) mail_debug = yes mail_location = mbox:~/mail:INBOX=/mail/spool/%u:INDEX=/mail/indexes/%u mail_nfs_storage = yes mbox_write_locks = fcntl passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename imap_quota quota mail_log_fields = uid box msgid size quota = fs:bigfat:mount=/home quota2 = fs:INBOX:mount=/mail } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol imap { mail_plugins = quota imap_quota }
DF /dev/mapper/mail_group-mail 780152128 202024 740320692 1% /mail bigfat.localserver:/export/home0/centos 198381216 64283072 123858336 35% /home/centos
and this is the log
Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so Feb 27 05:30:35 mailerweb dovecot: auth: Debug: new auth connection: pid=10514 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011lip=SERVERIP#011rip=CLIENTIP#011lport=993#011rport=49186 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client out: CONT#0111#011 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client in: CONT<hidden> Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so Feb 27 05:30:36 mailerweb dovecot: auth: Debug: pam(centos,CLIENTIP): lookup service=dovecot Feb 27 05:30:36 mailerweb dovecot: auth: Debug: pam(centos,CLIENTIP): #1/1 style=1 msg=Password: Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client out: OK#0111#011user=centos Feb 27 05:30:36 mailerweb dovecot: auth: Debug: master in: REQUEST#0111#01110514#0111#0113e6c35de88f54672e76f353542acc8a4 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: passwd(centos,CLIENTIP): lookup Feb 27 05:30:36 mailerweb dovecot: auth: Debug: master out: USER#0111#011centos#011system_groups_user=centos#011uid=6277#011gid=600#011home=/home/centos Feb 27 05:30:36 mailerweb dovecot: imap-login: Login: user=<centos>, method=PLAIN, rip=CLIENTIP, lip=SERVERIP, mpid=10519, TLS Feb 27 05:30:36 mailerweb dovecot: imap: Debug: Loading modules from directory: /usr/lib64/dovecot Feb 27 05:30:36 mailerweb dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so Feb 27 05:30:36 mailerweb dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: Effective uid=6277, gid=600, home=/home/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: Quota root: name=INBOX backend=fs args=mount=/mail Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: Quota root: name=Others backend=fs args=mount=/home Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs: root=/home/centos/mail, index=/mail/indexes/centos, control=, inbox=/mail/spool/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota add mailbox dir = /home/centos/mail Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota block device = bigfat.localserver:/export/home0/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota mount point = /home/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota mount type = nfs Feb 27 05:30:37 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/mail match=yes Feb 27 05:30:37 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/home match=no Feb 27 05:30:52 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/mail match=yes Feb 27 05:30:52 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/home match=no
On Sat, Feb 26, 2011 at 7:43 PM, Charles Marcus <CMarcus@media-brokers.com> wrote:
Logs?
Basic troubleshooting techniques...
When asking for help with a problem, state the problem succintly, then provide relevant config details, *and* logs exhibiting the problem.
I don't do NFS or Quotas, so may not be able to help once there is enough info to do so, I'm just trying to help you get the info here so someone who can help will be able to.
Also - please provide all of the relevant details in the same message, don't make people go back and read the entire thread (yes, that would mean reposting doveconf -n output)...
On 2/25/2011 3:27 PM, Il Neofita wrote:
Ok same problem # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.14.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) mail_debug = yes mail_location = mbox:~/mail:INBOX=/mail/spool/%u:INDEX=/mail/indexes/%u mail_nfs_storage = yes mbox_write_locks = fcntl passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename imap_quota quota mail_log_fields = uid box msgid size quota = fs:fraser:mount=/home quota2 = fs:INBOX:mount=/mail } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol imap { mail_plugins = quota imap_quota }
DF /dev/mapper/mail_group-mail 780152128 202024 740320692 1% /mail bigfat.localserver:/export/home0/centos 198381216 64283072 123858336 35% /home/centos
On Fri, Feb 25, 2011 at 2:50 PM, Charles Marcus <CMarcus@media-brokers.com> wrote:
On 2011-02-25 1:58 PM, Il Neofita wrote:
I am not able to get the quota out from dovecot I have tried with thunderbird and roundcube without luck this is my conf
# 2.0.beta6
Upgrade first, them come back with question.
Too many fixes since beta6...
Thank you so much for your help This is the output of quota
quota Disk quotas for user centos (uid 6277): Filesystem blocks quota limit grace files quota limit grace /dev/mapper/mail_group-mail 340 1000 2000 21 0 0 bigfat:/export/home0/centos 1501924 2260000 2860000 6605 0 0
This is the log when I try to check for the quota Feb 28 09:24:03 mailerweb dovecot: imap-login: Login: user=<centos>, method=PLAIN, rip=::1, lip=::1, mpid=17390, TLS Feb 28 09:24:03 mailerweb dovecot: imap: Debug: Loading modules from directory: /opt/dovecot-2.0.9/lib/dovecot Feb 28 09:24:03 mailerweb dovecot: imap: Debug: Module loaded: /opt/dovecot-2.0.9/lib/dovecot/lib10_quota_plugin.so Feb 28 09:24:03 mailerweb dovecot: imap: Debug: Module loaded: /opt/dovecot-2.0.9/lib/dovecot/lib11_imap_quota_plugin.so Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: Effective uid=6277, gid=600, home=/home/centos Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: Quota root: name=INBOX backend=fs args=mount=/mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: Quota root: name=Others backend=fs args=mount=/home Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs: root=/home/centos/mail, index=/mail/indexes/centos, control=, inbox=/mail/spool/centos Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota add mailbox dir = /mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota block device = /dev/mapper/mail_group-mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota mount point = /mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota mount type = ext4 Feb 28 09:24:03 mailerweb dovecot: imap(centos): Disconnected: Logged out bytes=91/821
These are the outputs from the telnet 2 getquotaroot INBOX 2 OK No quota. 3 getquotaroot inbox 3 OK No quota.
These are the lines from the configure ./configure --prefix=/opt/dovecot-2.0.9 --with-pam | grep quota checking sys/quota.h usability... yes checking sys/quota.h presence... yes checking for sys/quota.h... yes checking sys/fs/ufs_quota.h usability... no checking sys/fs/ufs_quota.h presence... no checking for sys/fs/ufs_quota.h... no checking ufs/ufs/quota.h usability... no checking ufs/ufs/quota.h presence... no checking for ufs/ufs/quota.h... no checking jfs/quota.h usability... no checking jfs/quota.h presence... no checking for jfs/quota.h... no checking sys/fs/quota_common.h usability... no checking sys/fs/quota_common.h presence... no checking for sys/fs/quota_common.h... no checking for quotactl... yes config.status: creating src/plugins/quota/Makefile config.status: creating src/plugins/imap-quota/Makefile
These are from locate rquota /opt/src/dovecot-2.0.9/src/plugins/quota/rquota.h /opt/src/dovecot-2.0.9/src/plugins/quota/rquota.x /opt/src/dovecot-2.0.9/src/plugins/quota/rquota_xdr.c /opt/src/dovecot-2.0.9/src/plugins/quota/rquota_xdr.lo /opt/src/dovecot-2.0.9/src/plugins/quota/rquota_xdr.o /opt/src/dovecot-2.0.9/src/plugins/quota/.deps/rquota_xdr.Plo /opt/src/dovecot-2.0.9/src/plugins/quota/.libs/rquota_xdr.o /usr/include/rpcsvc/rquota.h /usr/include/rpcsvc/rquota.x /usr/sbin/rpc.rquotad /usr/share/man/man8/rpc.rquotad.8.gz /usr/share/man/man8/rquotad.8.gz
An these are the lines from dovecot -n # 2.0.9: /opt/dovecot-2.0.9/etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.18.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) auth_verbose = yes mail_debug = yes mail_location = mbox:~/mail:INBOX=/mail/spool/%u:INDEX=/mail/indexes/%u passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size mail_log_group_events = no quota = fs:INBOX:mount=/mail quota2 = fs:Others:mount=/home } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol lda { mail_plugins = quota } protocol imap { mail_plugins = quota imap_quota }
Hopefully I have included everything to understand what I did wrong.
Thank you again for your support
On Mon, Feb 28, 2011 at 8:36 AM, David Warden <warden@geneseo.edu> wrote:
It looks like you included the output of df but could you try running the quota command when signed in as a user who has a quota on the NFS server, or running "quota thatuser" as root?
If you don't get anything, then fetching of a user's quota isn't working over NFS and you probably need to look at your NFS server. If you do get the user's quota, then it's time to look closer at Dovecot.
Are you using the atrpms RPM? That does not have NFS quota (rquota) support compiled in. If you rebuild the SRPM with quota-devel installed you will have rquota support in the resulting RPM. I've emailed the package maintainer and asked him to include quota-devel as an optional (but default enabled) build-requires.
Once you've got the quota command working, could you try telnetting to port 143 or openssl s_client -connect yourserver:sslport, logging in and doing getquotaroot inbox? If you haven't done this before, the following page may help you:
http://bobpeers.com/technical/telnet_imap.php
Hope this helps, David Warden
On Feb 27, 2011, at 5:36 AM, Il Neofita wrote:
You are right, here a merge everything
Hi I am not able to get the quota out from dovecot I have tried with thunderbird and roundcube without luck this is my conf
# 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.14.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) mail_debug = yes mail_location = mbox:~/mail:INBOX=/mail/spool/%u:INDEX=/mail/indexes/%u mail_nfs_storage = yes mbox_write_locks = fcntl passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename imap_quota quota mail_log_fields = uid box msgid size quota = fs:bigfat:mount=/home quota2 = fs:INBOX:mount=/mail } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol imap { mail_plugins = quota imap_quota }
DF /dev/mapper/mail_group-mail 780152128 202024 740320692 1% /mail bigfat.localserver:/export/home0/centos 198381216 64283072 123858336 35% /home/centos
and this is the log
Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so Feb 27 05:30:35 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so Feb 27 05:30:35 mailerweb dovecot: auth: Debug: new auth connection: pid=10514 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured#011lip=SERVERIP#011rip=CLIENTIP#011lport=993#011rport=49186 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client out: CONT#0111#011 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client in: CONT<hidden> Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so Feb 27 05:30:36 mailerweb dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so Feb 27 05:30:36 mailerweb dovecot: auth: Debug: pam(centos,CLIENTIP): lookup service=dovecot Feb 27 05:30:36 mailerweb dovecot: auth: Debug: pam(centos,CLIENTIP): #1/1 style=1 msg=Password: Feb 27 05:30:36 mailerweb dovecot: auth: Debug: client out: OK#0111#011user=centos Feb 27 05:30:36 mailerweb dovecot: auth: Debug: master in: REQUEST#0111#01110514#0111#0113e6c35de88f54672e76f353542acc8a4 Feb 27 05:30:36 mailerweb dovecot: auth: Debug: passwd(centos,CLIENTIP): lookup Feb 27 05:30:36 mailerweb dovecot: auth: Debug: master out: USER#0111#011centos#011system_groups_user=centos#011uid=6277#011gid=600#011home=/home/centos Feb 27 05:30:36 mailerweb dovecot: imap-login: Login: user=<centos>, method=PLAIN, rip=CLIENTIP, lip=SERVERIP, mpid=10519, TLS Feb 27 05:30:36 mailerweb dovecot: imap: Debug: Loading modules from directory: /usr/lib64/dovecot Feb 27 05:30:36 mailerweb dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib10_quota_plugin.so Feb 27 05:30:36 mailerweb dovecot: imap: Debug: Module loaded: /usr/lib64/dovecot/lib11_imap_quota_plugin.so Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: Effective uid=6277, gid=600, home=/home/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: Quota root: name=INBOX backend=fs args=mount=/mail Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: Quota root: name=Others backend=fs args=mount=/home Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs: root=/home/centos/mail, index=/mail/indexes/centos, control=, inbox=/mail/spool/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota add mailbox dir = /home/centos/mail Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota block device = bigfat.localserver:/export/home0/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota mount point = /home/centos Feb 27 05:30:36 mailerweb dovecot: imap(centos): Debug: fs quota mount type = nfs Feb 27 05:30:37 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/mail match=yes Feb 27 05:30:37 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/home match=no Feb 27 05:30:52 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/mail match=yes Feb 27 05:30:52 mailerweb dovecot: imap(centos): Debug: box=/mail/spool/centos mount=/home match=no
On Sat, Feb 26, 2011 at 7:43 PM, Charles Marcus <CMarcus@media-brokers.com> wrote:
Logs?
Basic troubleshooting techniques...
When asking for help with a problem, state the problem succintly, then provide relevant config details, *and* logs exhibiting the problem.
I don't do NFS or Quotas, so may not be able to help once there is enough info to do so, I'm just trying to help you get the info here so someone who can help will be able to.
Also - please provide all of the relevant details in the same message, don't make people go back and read the entire thread (yes, that would mean reposting doveconf -n output)...
On 2/25/2011 3:27 PM, Il Neofita wrote:
Ok same problem # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-71.14.1.el6.x86_64 x86_64 Red Hat Enterprise Linux Server release 6.0 (Santiago) mail_debug = yes mail_location = mbox:~/mail:INBOX=/mail/spool/%u:INDEX=/mail/indexes/%u mail_nfs_storage = yes mbox_write_locks = fcntl passdb { driver = pam } plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename imap_quota quota mail_log_fields = uid box msgid size quota = fs:fraser:mount=/home quota2 = fs:INBOX:mount=/mail } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } protocol imap { mail_plugins = quota imap_quota }
DF /dev/mapper/mail_group-mail 780152128 202024 740320692 1% /mail bigfat.localserver:/export/home0/centos 198381216 64283072 123858336 35% /home/centos
On Fri, Feb 25, 2011 at 2:50 PM, Charles Marcus <CMarcus@media-brokers.com> wrote:
On 2011-02-25 1:58 PM, Il Neofita wrote:
I am not able to get the quota out from dovecot I have tried with thunderbird and roundcube without luck this is my conf
# 2.0.beta6
Upgrade first, them come back with question.
Too many fixes since beta6...
On Mon, 2011-02-28 at 09:28 -0500, Il Neofita wrote:
Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: Quota root: name=INBOX backend=fs args=mount=/mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: Quota root: name=Others backend=fs args=mount=/home
So it sees these both..
Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota add mailbox dir = /mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota block device = /dev/mapper/mail_group-mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota mount point = /mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota mount type = ext4
But it only adds ext4 quota, no NFS quota..
These are the outputs from the telnet 2 getquotaroot INBOX 2 OK No quota. 3 getquotaroot inbox 3 OK No quota.
You could try what these say:
a getquota INBOX b getquota Others
I guess both say "No quota" though.
plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size mail_log_group_events = no quota = fs:INBOX:mount=/mail quota2 = fs:Others:mount=/home
You could first try getting only one the quotas to work.
In any case, I don't really see anything wrong in your configs, so I have no idea why it's not working. I also can't easily test any quota configs myself, and this looks like it would require some debugging to solve..
Ok Thank you soo much
these are the results 2 getquota Others
- QUOTA "Others" () 2 OK Getquota completed. 3 getquota INBOX
- QUOTA "INBOX" () 3 OK Getquota completed.
On Mon, Feb 28, 2011 at 9:57 AM, Timo Sirainen <tss@iki.fi> wrote:
On Mon, 2011-02-28 at 09:28 -0500, Il Neofita wrote:
Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: Quota root: name=INBOX backend=fs args=mount=/mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: Quota root: name=Others backend=fs args=mount=/home
So it sees these both..
Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota add mailbox dir = /mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota block device = /dev/mapper/mail_group-mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota mount point = /mail Feb 28 09:24:03 mailerweb dovecot: imap(centos): Debug: fs quota mount type = ext4
But it only adds ext4 quota, no NFS quota..
These are the outputs from the telnet 2 getquotaroot INBOX 2 OK No quota. 3 getquotaroot inbox 3 OK No quota.
You could try what these say:
a getquota INBOX b getquota Others
I guess both say "No quota" though.
plugin { mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename mail_log_fields = uid box msgid size mail_log_group_events = no quota = fs:INBOX:mount=/mail quota2 = fs:Others:mount=/home
You could first try getting only one the quotas to work.
In any case, I don't really see anything wrong in your configs, so I have no idea why it's not working. I also can't easily test any quota configs myself, and this looks like it would require some debugging to solve..
participants (4)
-
Charles Marcus
-
David Warden
-
Il Neofita
-
Timo Sirainen