[Dovecot] userdb multiple databases
Hello, I'm trying to configure per user plugins. My original passdb and userdb is in a ldap directory (using userdb with prefetch). To configure per user plugins (in fact, I want to enable quota plugin for some users) I need to configure mail_plugins attribute in the userdb. The problem is that I don't know any ldap attribute to store this information (is there any schema with includes an attribute for this). So I want to configure it in a passwd-file file. My problem is that I don't know if I can chain userdb databases. I know I can configure multiple databases, but as far as I know, they are looked in order, so if the user is found in the first one, then is no look for the user in the second one, so I have to configure all user's attributes in the passwd-file database. Is there any way to chain these lookups? -- 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: 86337
[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: 86337
Re: [Dovecot] enabling per user quota plugin and problems with pop3
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: 86337
Re: [Dovecot] enabling per user quota plugin and problems with pop3
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: 86337 # 2.1.5: /etc/dovecot/dovecot.conf # OS: Linux 3.4.0-030400-generic x86_64 Ubuntu 12.04 LTS auth_cache_size = 20 M auth_cache_ttl = 1 days auth_debug = yes auth_master_user_separator = * auth_verbose = yes default_process_limit = 1000 disable_plaintext_auth = no log_timestamp = %Y-%m-%d %H:%M:%S login_trusted_networks = 155.54.211.176/28 mail_debug = yes mail_fsync = always mail_location = maildir:~/Maildir:INDEX=/var/indexes/%n mail_nfs_storage = yes mail_privileged_group = mail maildir_stat_dirs = yes mdbox_rotate_size = 20 M passdb { args = /etc/dovecot/master-users driver = passwd-file master = yes pass = yes } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } passdb { args = session=yes dovecot driver = pam } plugin { lazy_expunge = .EXPUNGED/ .DELETED/ .DELETED/.EXPUNGED/ quota = maildir:User quota quota_rule = *:storage=10G quota_rule2 = Trash:storage=+1G sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_extensions = +imapflags sieve_max_redirects = 15 zlib_save = gz zlib_save_level = 6 } postmaster_address = postmas...@um.es service anvil { client_limit = 2003 } service auth { client_limit = 3000 unix_listener auth-userdb { mode = 0666 } } service doveadm { inet_listener { port = 24245 } } service imap { process_limit = 5120 process_min_avail = 2 vsz_limit = 512 M } service lmtp { inet_listener lmtp { port = 24 } process_min_avail = 10 vsz_limit = 512 M } service pop3 { process_min_avail = 2 } ssl = no ssl_cert = /etc/ssl/certs/dovecot.pem ssl_key = /etc/ssl/private/dovecot.pem userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } protocol lda { mail_plugins = sieve } protocol lmtp { mail_plugins = sieve } protocol pop3 { pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s, in=%i, out=%o } local 155.54.211.160/27/27 { doveadm_password = ]dWhu5kB }
[Dovecot] Is it possible to save only some messages compressed to mdbox? (2.1.6)
I'm trying to save some messages as compressed (via zlib plugin) and it doesn't seem to work. Here's a log line (I'm logging to stderr): d k 1345467448.705591500 1345467448.705596500 1345467448.974808500 1650 xxx...@yyy.ruhr-uni-bochum.de local.jost.krieger+h...@ruhr-uni-bochum.de 10909 80 Extra: -o plugin/zlib_save_level=9 -o plugin/zlib_save=bz2 lda(kriegjcb): Info: msgid=20120820125728.58cc9172...@c2-4-7.noc.ruhr-uni-bochum.de: saved mail to Hirn-2012-08 did 0+0+1 This probably doesn't make much sense to anyone except the last line but 1. It is a somewhat complicated qmail/maildrop/dovecot setup, which works for the standard cases. The Extra gets interpolated into the lda command and this works because an incorrect option blows up the delivery. The mails arrive uncompressed. So here's the questions: 1. Is it possible to have compressed/uncompressed mails mixed in an mdbox? 2. Will it work via -o in lda delivery? I tried to find out in the source but found it hard to see which options are pulled in when. Thanks Jost Krieger -- | Helft Spam ausrotten!HTML in Mail ist unhöflich. | | Postmaster, JAPH, manchmal Wahrsager am RZ der RUB | | Wahre Worte sind nicht gefällig, gefällige Worte sind nicht wahr.| | Lao Tse, Tao Te King 81 |
Re: [Dovecot] Deleting metadata smashes file dovecot.dict
Hi it seems to me, that it depends on how dovecot handles line reading. Dovecot presumes that a line is of max length of IO_BLOCK_SIZE (=8192) Bytes. Is there a fix so dovecot reads a line until EOL or EOF (if this is the real reason)? Regards Andre smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] Hostname Based forwarding
Thanks for the info. That unfortunately does not make it as flexible as name based hosting, too bad. -- View this message in context: http://dovecot.2317879.n4.nabble.com/Hostname-Based-forwarding-tp37110p37150.html Sent from the Dovecot mailing list archive at Nabble.com.
Re: [Dovecot] Deleting metadata smashes file dovecot.dict
On 20.8.2012, at 16.35, Andre Gröbe wrote: it seems to me, that it depends on how dovecot handles line reading. Dovecot presumes that a line is of max length of IO_BLOCK_SIZE (=8192) Bytes. Is there a fix so dovecot reads a line until EOL or EOF (if this is the real reason)? Without having actually looked at the code, I'd guess you can just replace IO_BLOCK_SIZE with (size_t)-1.
Re: [Dovecot] Variables in LDAP userdb
On 20.8.2012, at 18.21, Alex Crow wrote: Is it OK to have dovecot variables in entries in an LDAP userdb? Say I wanted to set the mail userdb parameter to override mail_location, would it work by having an entry in LDAP (eg for mailMessageStore attrib) like: mdbox:/home/email/%d/%n:INDEX=/home/indexes/%d/%1n/%n:ALT=/home/email_archive/%d/%1n/%n and those % variables will still be expanded by dovecot? No. Otherwise it would break paths that actually contain % characters. Or would I be required to replace them in the LDAP directory with their actual values? Yes. If you really wanted to avoid that and you have only a few different values, you could create some namespaces in dovecot.conf and enable/disable them as needed in the ldap fields. Although I guess that's not a whole lot better since there's currently no simple enabled setting for namespaces, maybe I should add one..
[Dovecot] Error: Couldn't open INBOX: Timeout while waiting for lock
Hi , My users are frequetly getting the below error, Aug 21 00:04:18 blade6 dovecot: pop3-login: proxy(hgl_dipak): Login failed to 192.168.1.43:110: [IN-USE] Couldn't open INBOX: Timeout while waiting for lock. We are proxing pop connections from one pop server (dovecot version 1.1.20) i.e 192.168.1.39 to the other pop Server (Dovecot version 2.0.16 ) i.e 192.168.1.4. We have set pop3_lock_session = yes and dont want to disable it. Please Help !! :) K.K