[Dovecot] enabling per user quota plugin and problems with pop3
Hello,
I am configuring quota plugin per user, not for the whole system. As
documentation says (http://wiki2.dovecot.org/Quota), I have to add "quota" to the global mail_plugins and "imap_quota" to mail_plugins for protocol imap, but I don't know how to configure this in a userdb. I'm using a passwd-file in the way:
<user>:{plain}password:<uid>:<gid>::<home>::userdb_mail_plugins=quota,imap_quota
but this activate both plugins in the global mail_plugins option.
The problem with this is that if the user tries to connect via pop3
instead of imap (a thing that I permit, although the user shouldn't do it) I have the error:
Aug 20 10:04:18 myotis30 dovecot: pop3: Error: dlopen(/usr/lib/dovecot/modules/lib11_imap_quota_plugin.so) failed: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: undefined symbol: client_send_tagline
is there any way to solve this problem?
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868887590 Fax: 868888337
Hi again,
Another problem I'm having with this is that quota (maildirsize) is not
updated when mail is delivered.
According to
http://wiki2.dovecot.org/Quota/Configuration#Per-user_quota I must be sure that dovecot-lda is run with -d option, but in my configuration I'm receiving mail via lmtp and (I think) dovecot-lda is not running at all.
So the problem (I think) is that quota plugin is not used in the lmtp
process. Is there any way to configure that lmtp processes use the mail_plugins in the userdb database?
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868887590 Fax: 868888337
El 20/08/12 12:56, Angel L. Mateo escribió:
Hi again,
Another problem I'm having with this is that quota (maildirsize) is
not updated when mail is delivered.
According to
http://wiki2.dovecot.org/Quota/Configuration#Per-user_quota I must be sure that dovecot-lda is run with -d option, but in my configuration I'm receiving mail via lmtp and (I think) dovecot-lda is not running at all.
So the problem (I think) is that quota plugin is not used in the
lmtp process. Is there any way to configure that lmtp processes use the mail_plugins in the userdb database?
I forgot to attach doveconf -n
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868887590 Fax: 868888337
El 20/08/12 12:56, Angel L. Mateo escribió:
Hi again,
Another problem I'm having with this is that quota (maildirsize) is
not updated when mail is delivered.
According to
http://wiki2.dovecot.org/Quota/Configuration#Per-user_quota I must be sure that dovecot-lda is run with -d option, but in my configuration I'm receiving mail via lmtp and (I think) dovecot-lda is not running at all.
So the problem (I think) is that quota plugin is not used in the
lmtp process. Is there any way to configure that lmtp processes use the mail_plugins in the userdb database?
I have discovered the origin of my problem, but not the solution.
The origin of the problem why lmtp didn't use user's mail_plugin is
that I had it configured it in the pass_attrs option (and read with prefetch) and not in user_attrs, so lmtp didn't get it.
But now the problem is that I can't configure mail_plugins redefinition
per user with 'quota,imap_quota' because when it is get it for lmtp, it produces the error
Aug 20 13:38:30 myotis30 dovecot: lmtp(1086): Error: dlopen(/usr/lib/dovecot/modules/lib11_imap_quota_plugin.so) failed: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: undefined symbol: client_send_tagline
and if I configure mail_plugins redefinition with just 'quota' then it
is no applied for IMAP connections.
Any idea?
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información y las Comunicaciones Aplicadas (ATICA) http://www.um.es/atica Tfo: 868887590 Fax: 868888337
On 20.8.2012, at 14.47, Angel L. Mateo wrote:
The origin of the problem why lmtp didn't use user's mail_plugin is that I had it configured it in the pass_attrs option (and read with prefetch) and not in user_attrs, so lmtp didn't get it.
But now the problem is that I can't configure mail_plugins redefinition per user with 'quota,imap_quota' because when it is get it for lmtp, it produces the error
Aug 20 13:38:30 myotis30 dovecot: lmtp(1086): Error: dlopen(/usr/lib/dovecot/modules/lib11_imap_quota_plugin.so) failed: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: undefined symbol: client_send_tagline
and if I configure mail_plugins redefinition with just 'quota' then it is no applied for IMAP connections.
You can't do it with one passwd-file, you'd have to use multiple per-protocol passwd files.. For example:
userdb passwd-file { args = /etc/dovecot/passwd.%s }
Yeah, passwd-files aren't very flexible for things like these. Maybe you should look into using sqlite? It probably allows some if() or case() in the query (I haven't used sqlite).
El 23/08/12 22:05, Timo Sirainen escribió:
On 20.8.2012, at 14.47, Angel L. Mateo wrote:
The origin of the problem why lmtp didn't use user's mail_plugin is that I had it configured it in the pass_attrs option (and read with prefetch) and not in user_attrs, so lmtp didn't get it.
But now the problem is that I can't configure mail_plugins redefinition per user with 'quota,imap_quota' because when it is get it for lmtp, it produces the error
Aug 20 13:38:30 myotis30 dovecot: lmtp(1086): Error: dlopen(/usr/lib/dovecot/modules/lib11_imap_quota_plugin.so) failed: /usr/lib/dovecot/modules/lib11_imap_quota_plugin.so: undefined symbol: client_send_tagline
and if I configure mail_plugins redefinition with just 'quota' then it is no applied for IMAP connections.
You can't do it with one passwd-file, you'd have to use multiple per-protocol passwd files.. For example:
userdb passwd-file { args = /etc/dovecot/passwd.%s }
I have tried this option. It works, although I have to duplicate this file.
-- Angel L. Mateo Martínez Sección de Telemática Área de Tecnologías de la Información _o) y las Comunicaciones Aplicadas (ATICA) / \\ http://www.um.es/atica _(___V Tfo: 868887590 Fax: 868888337
participants (2)
-
Angel L. Mateo
-
Timo Sirainen