Re: Sieve script unable to file into public folder after dovecot upgrade to version 2.3.4
Hi all, it has turned out that it actually was an ACL issue. I had to add "p" to the rule: authenticated lrsp Now fileinto is working again :-) Best regards Andreas Am 2. Januar 2019 13:10:03 schrieb Andreas Oster : Hi all, Wishing you and your families a Happy New Year 2019. I am currently struggling with an odd sieve issue after upgrading dovecot from 2.2.32 to the latest 2.3.4 version. OS is Ubuntu 18.04. For one of our users I have a sieve rule in place which should copy (keep + fileinto) incoming mails from the INBOX to a public namespace folder. Unfortunately this does not work anymore. In the sieve log file of the user I get error messages like this: sieve: info: started log at Jan 02 12:41:31. error: msgid=: failed to store into mailbox 'Public/Verteiler': Permission denied. This is the content of the sieve script : require ["fileinto"]; keep; fileinto "Public/Verteiler"; stop; At first I thought it might be caused by a faulty IMAP ACL but this does not seem to be the case. When I do a manual copy in Thunderbird from the INBOX to this public folder there are no problems at all. Does anybody have an idea what could be the cause of the issue ? Thank you very much for your kind help. Best regards Andreas
Sieve script unable to file into public folder after dovecot upgrade to version 2.3.4
Hi all, Wishing you and your families a Happy New Year 2019. I am currently struggling with an odd sieve issue after upgrading dovecot from 2.2.32 to the latest 2.3.4 version. OS is Ubuntu 18.04. For one of our users I have a sieve rule in place which should copy (keep + fileinto) incoming mails from the INBOX to a public namespace folder. Unfortunately this does not work anymore. In the sieve log file of the user I get error messages like this: sieve: info: started log at Jan 02 12:41:31. error: msgid=: failed to store into mailbox 'Public/Verteiler': Permission denied. This is the content of the sieve script : require ["fileinto"]; keep; fileinto "Public/Verteiler"; stop; At first I thought it might be caused by a faulty IMAP ACL but this does not seem to be the case. When I do a manual copy in Thunderbird from the INBOX to this public folder there are no problems at all. Does anybody have an idea what could be the cause of the issue ? Thank you very much for your kind help. Best regards Andreas
Re: STARTTLS issue with sieve
Am 08.07.2017 um 23:10 schrieb Heiko Schlittermann: Andreas Oster (Fr 07 Jul 2017 08:15:05 CEST): Hi all, I am currently struggling with an odd sieve/Pigeonhole issue. Some weeks ago I had to replace our dovecot certificate due to expiration. In the past I did use a self-signed certificate, but because we now have a little openssl based CA I have decided to create signed certificate for imaps. Dovecot is happily accepting the new certificate which has integrated the whole cert-chain. Unfortunately Pigeonhole does not seem to like the certificate: As it seem, Pigeonhole sends you the full cert chain: *** Starting TLS handshake - Certificate type: X.509 - Got a certificate list of 3 certificates. - Certificate[0] info: - subject `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen … - Certificate[2] info: - subject `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen GmbH,OU=NOVA Root CA,CN=NOVA Root CA', issuer The last one being the CA used. SHA-1 fingerprint `95326e3ff12683cc40a85874d562d0a6f15dcb37' - Status: The certificate is NOT trusted. The certificate issuer is unknown. *** PKI verification of server certificate failed... *** Fatal error: Error in the certificate. *** Handshake has failed For me it reads as if your client (gnutls-cli) does not trust the chain your server sent. (The server doesn't care about the chain). I have checked the certificate with: openssl verify -verbose -CAfile /etc/ssl/certs/ca-chain.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem: OK How do you know that gnutls-cli uses the same CA file? Try passing the CA file to gnutls-cli? The --x509cafile seems to be hardcoded in /usr/lib/x86_64-linux-gnu/libgnutls.so.30 (Debian9, amd64) $ strings /usr/lib/x86_64-linux-gnu/libgnutls.so.30 | grep '/etc/ssl' /etc/ssl/certs/ca-certificates.crt So, on my system gnutls-cli seems to use the same CA store (/etc/ssl/certs) as openssl. Best regards from Dresden/Germany Viele Grüße aus Dresden Heiko Schlittermann Hi all, in a posting on the dovecot user list Stephan Bosch pointed out that there is already a fix: https://github.com/dovecot/pigeonhole/commit /c80aa7c25b0b4e61bb8e3a91864a355f7f2fa89f This small change also resolved my sieve login issue. best regards Andreas
Re: STARTTLS issue with sieve
Am 07.07.2017 um 08:15 schrieb Andreas Oster: Hi all, I am currently struggling with an odd sieve/Pigeonhole issue. Some weeks ago I had to replace our dovecot certificate due to expiration. In the past I did use a self-signed certificate, but because we now have a little openssl based CA I have decided to create signed certificate for imaps. Dovecot is happily accepting the new certificate which has integrated the whole cert-chain. Unfortunately Pigeonhole does not seem to like the certificate: <--snip gnutls-cli --starttls -p4190 mail.novanetwork.local Processed 173 CA certificate(s). Resolving 'mail.novanetwork.loc'... Connecting to '10.2.1.23:4190'... - Simple Client Mode: "IMPLEMENTATION" "Dovecot Pigeonhole" "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave" "NOTIFY" "mailto" "SASL" "" "STARTTLS" "VERSION" "1.0" OK "Dovecot ready." STARTTLS OK "Begin TLS negotiation now." --> At this point the TLS process does not proceed. When I press CTRL-D I get the following output: *** Starting TLS handshake - Certificate type: X.509 - Got a certificate list of 3 certificates. - Certificate[0] info: - subject `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen GmbH,OU=Mail Server,CN=mail.novanetwork.local', issuer `C=DE,ST=Baden-Wuerttemberg,O=NOVA Elektroanlagen GmbH,OU=NOVA Intermediate CA,CN=NOVA Intermediate CA', RSA key 2048 bits, signed using RSA-SHA256, activated `2017-06-23 06:58:40 UTC', expires `2020-06-22 06:58:40 UTC', SHA-1 fingerprint `51a9b62eaebb6b4a2b8cc9a22740dc689445da0c' Public Key ID: 165eaaa4b36c091ec8f32103da003a1f43b1c57d Public key's random art: +--[ RSA 2048]+ | .o.. | |. .o. . E| |o.... . | |= o. + | |+* o . S| |o==. o o | | .=o+.. | | .ooo | | .o| +-+ - Certificate[1] info: - subject `C=DE,ST=Baden-Wuerttemberg,O=NOVA Elektroanlagen GmbH,OU=NOVA Intermediate CA,CN=NOVA Intermediate CA', issuer `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen GmbH,OU=NOVA Root CA,CN=NOVA Root CA', RSA key 4096 bits, signed using RSA-SHA256, activated `2016-12-05 11:40:29 UTC', expires `2026-12-03 11:40:29 UTC', SHA-1 fingerprint `308870b657dccd4902ca119d18d7ba8d6ad54ec0' - Certificate[2] info: - subject `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen GmbH,OU=NOVA Root CA,CN=NOVA Root CA', issuer `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen GmbH,OU=NOVA Root CA,CN=NOVA Root CA', RSA key 4096 bits, signed using RSA-SHA256, activated `2016-12-05 11:36:47 UTC', expires `2036-11-30 11:36:47 UTC', SHA-1 fingerprint `95326e3ff12683cc40a85874d562d0a6f15dcb37' - Status: The certificate is NOT trusted. The certificate issuer is unknown. *** PKI verification of server certificate failed... *** Fatal error: Error in the certificate. *** Handshake has failed I have checked the certificate with: openssl verify -verbose -CAfile /etc/ssl/certs/ca-chain.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem: OK and also with: openssl verify -verbose -CAfile /etc/ssl/certs/mail.novanetwork.local.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem: OK Does anyone have an idea what could be the cause of the problem and how to fix it ? Thank you for your kind help. best regards Andreas Hi all, in another posting Stephan Bosch pointed out that there is already a fix: https://github.com/dovecot/pigeonhole/commit/c80aa7c25b0b4e61bb8e3a91864a355f7f2fa89f This small change also resolved my sieve login issue. best regards Andreas
Re: STARTTLS issue with sieve
Am 08.07.2017 um 23:10 schrieb Heiko Schlittermann: Andreas Oster (Fr 07 Jul 2017 08:15:05 CEST): Hi all, I am currently struggling with an odd sieve/Pigeonhole issue. Some weeks ago I had to replace our dovecot certificate due to expiration. In the past I did use a self-signed certificate, but because we now have a little openssl based CA I have decided to create signed certificate for imaps. Dovecot is happily accepting the new certificate which has integrated the whole cert-chain. Unfortunately Pigeonhole does not seem to like the certificate: As it seem, Pigeonhole sends you the full cert chain: *** Starting TLS handshake - Certificate type: X.509 - Got a certificate list of 3 certificates. - Certificate[0] info: - subject `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen … - Certificate[2] info: - subject `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen GmbH,OU=NOVA Root CA,CN=NOVA Root CA', issuer The last one being the CA used. SHA-1 fingerprint `95326e3ff12683cc40a85874d562d0a6f15dcb37' - Status: The certificate is NOT trusted. The certificate issuer is unknown. *** PKI verification of server certificate failed... *** Fatal error: Error in the certificate. *** Handshake has failed For me it reads as if your client (gnutls-cli) does not trust the chain your server sent. (The server doesn't care about the chain). I have checked the certificate with: openssl verify -verbose -CAfile /etc/ssl/certs/ca-chain.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem: OK How do you know that gnutls-cli uses the same CA file? Try passing the CA file to gnutls-cli? The --x509cafile seems to be hardcoded in /usr/lib/x86_64-linux-gnu/libgnutls.so.30 (Debian9, amd64) $ strings /usr/lib/x86_64-linux-gnu/libgnutls.so.30 | grep '/etc/ssl' /etc/ssl/certs/ca-certificates.crt So, on my system gnutls-cli seems to use the same CA store (/etc/ssl/certs) as openssl. Best regards from Dresden/Germany Viele Grüße aus Dresden Heiko Schlittermann Hello Heiko, removing the CA and intermediate certificates from the server certificate and adding the CA certs to the ca-certificates.crt resolved my issue. Thank you for your kind help. best regards Andreas
STARTTLS issue with sieve
Hi all, I am currently struggling with an odd sieve/Pigeonhole issue. Some weeks ago I had to replace our dovecot certificate due to expiration. In the past I did use a self-signed certificate, but because we now have a little openssl based CA I have decided to create signed certificate for imaps. Dovecot is happily accepting the new certificate which has integrated the whole cert-chain. Unfortunately Pigeonhole does not seem to like the certificate: <--snip gnutls-cli --starttls -p4190 mail.novanetwork.local Processed 173 CA certificate(s). Resolving 'mail.novanetwork.loc'... Connecting to '10.2.1.23:4190'... - Simple Client Mode: "IMPLEMENTATION" "Dovecot Pigeonhole" "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave" "NOTIFY" "mailto" "SASL" "" "STARTTLS" "VERSION" "1.0" OK "Dovecot ready." STARTTLS OK "Begin TLS negotiation now." --> At this point the TLS process does not proceed. When I press CTRL-D I get the following output: *** Starting TLS handshake - Certificate type: X.509 - Got a certificate list of 3 certificates. - Certificate[0] info: - subject `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen GmbH,OU=Mail Server,CN=mail.novanetwork.local', issuer `C=DE,ST=Baden-Wuerttemberg,O=NOVA Elektroanlagen GmbH,OU=NOVA Intermediate CA,CN=NOVA Intermediate CA', RSA key 2048 bits, signed using RSA-SHA256, activated `2017-06-23 06:58:40 UTC', expires `2020-06-22 06:58:40 UTC', SHA-1 fingerprint `51a9b62eaebb6b4a2b8cc9a22740dc689445da0c' Public Key ID: 165eaaa4b36c091ec8f32103da003a1f43b1c57d Public key's random art: +--[ RSA 2048]+ | .o.. | |. .o. . E| |o.... . | |= o. + | |+* o . S| |o==. o o | | .=o+.. | | .ooo | | .o| +-+ - Certificate[1] info: - subject `C=DE,ST=Baden-Wuerttemberg,O=NOVA Elektroanlagen GmbH,OU=NOVA Intermediate CA,CN=NOVA Intermediate CA', issuer `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen GmbH,OU=NOVA Root CA,CN=NOVA Root CA', RSA key 4096 bits, signed using RSA-SHA256, activated `2016-12-05 11:40:29 UTC', expires `2026-12-03 11:40:29 UTC', SHA-1 fingerprint `308870b657dccd4902ca119d18d7ba8d6ad54ec0' - Certificate[2] info: - subject `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen GmbH,OU=NOVA Root CA,CN=NOVA Root CA', issuer `C=DE,ST=Baden-Wuerttemberg,L=Ettlingen,O=NOVA Elektroanlagen GmbH,OU=NOVA Root CA,CN=NOVA Root CA', RSA key 4096 bits, signed using RSA-SHA256, activated `2016-12-05 11:36:47 UTC', expires `2036-11-30 11:36:47 UTC', SHA-1 fingerprint `95326e3ff12683cc40a85874d562d0a6f15dcb37' - Status: The certificate is NOT trusted. The certificate issuer is unknown. *** PKI verification of server certificate failed... *** Fatal error: Error in the certificate. *** Handshake has failed I have checked the certificate with: openssl verify -verbose -CAfile /etc/ssl/certs/ca-chain.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem: OK and also with: openssl verify -verbose -CAfile /etc/ssl/certs/mail.novanetwork.local.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem /etc/ssl/certs/mail.novanetwork.local.cert.pem: OK Does anyone have an idea what could be the cause of the problem and how to fix it ? Thank you for your kind help. best regards Andreas
Re: folders in public namespace only visable to 2nd folder level in 2.2.29.1
Am 04.05.2017 um 11:17 schrieb Aki Tuomi: On 04.05.2017 10:27, Andreas Oster wrote: Mit freundlichen Grüßen Andreas Oster NOVA Elektroanlagen GmbH Carl-Zeiss-Str. 3 D-76275 Ettlingen Tel.: +49 (7243) 5490 22 FAX: +49 (7243) 5490 54 aos...@novanetwork.de http://www.novanetwork.de Geschäftsführer: Jörg Amann, Claudia Blasi Registergericht: Mannheim, HRB 361711 Adresse Andreas Oster Am 03.05.2017 um 17:51 schrieb Andreas Oster: Hi all, I am currently facing an issue with Dovevot version 2.2.29.1 where subfolders in a public namespace are only visible to the 2nd folder level: namespace Public -> folder "1st" -> folder -> "2nd" -> folder "3rd" When one user creates a subfolder below the 2nd level other users do not see that folder and are unable to subscribe to this folder. Folders created under the 1st level however are visible and subscribable by other users. namespace { disabled = no hidden = no ignore_on_failure = no inbox = no list = children type = public separator = / prefix = Public/ location = maildir:/var/vmail/public:INDEXPVT=~/Maildir/public subscriptions = no } I do not know at which point ( dovecot update ) this issue appeared. Does anyone face the same problem ? Thank you for your kind help best regards Andreas Hi all, I have just recognized that there seems to be something wrong with the per user seen flag indexes. In the dovecot log file I get a lot of those errors: Error: /var/vmail/domain/someuser/Maildir/public/.test.2nd /dovecot.index.pvt reset, view is now inconsistent Error: /var/vmail/domain/someuser/Maildir/public/.test.2nd/dovecot.index.pvt view is inconsistent Error: /var/vmail/domain/someuser/Maildir/public/.test.2nd.3rd /dovecot.index.pvt reset, view is now inconsistent Error: /var/vmail/domain/someuser/Maildir/public/.test.2nd.3rd/dovecot.index.pvt view is inconsistent Could this be the cause of the issue ? How can this be fixed ? Thank you for your kind help best regards Andreas Hi! The second level issue is because thunderbird has a bug. You can see the third level and so on in subscribe view by closing and opening the 2nd level. Aki Hello Aki, thank you for the tip. I have tried with another mail client and could see and subscribe to the subfolders in the public namespace without any problem. Hope that Thunderbird gets fixed soon. However, I still see a lot of those index errors in the log file. Any idea how to fix that ? Thank you for your kind help. best regards Andreas
Re: folders in public namespace only visable to 2nd folder level in 2.2.29.1
Mit freundlichen Grüßen Andreas Oster NOVA Elektroanlagen GmbH Carl-Zeiss-Str. 3 D-76275 Ettlingen Tel.: +49 (7243) 5490 22 FAX: +49 (7243) 5490 54 aos...@novanetwork.de http://www.novanetwork.de Geschäftsführer: Jörg Amann, Claudia Blasi Registergericht: Mannheim, HRB 361711 Adresse Andreas Oster Am 03.05.2017 um 17:51 schrieb Andreas Oster: Hi all, I am currently facing an issue with Dovevot version 2.2.29.1 where subfolders in a public namespace are only visible to the 2nd folder level: namespace Public -> folder "1st" -> folder -> "2nd" -> folder "3rd" When one user creates a subfolder below the 2nd level other users do not see that folder and are unable to subscribe to this folder. Folders created under the 1st level however are visible and subscribable by other users. namespace { disabled = no hidden = no ignore_on_failure = no inbox = no list = children type = public separator = / prefix = Public/ location = maildir:/var/vmail/public:INDEXPVT=~/Maildir/public subscriptions = no } I do not know at which point ( dovecot update ) this issue appeared. Does anyone face the same problem ? Thank you for your kind help best regards Andreas Hi all, I have just recognized that there seems to be something wrong with the per user seen flag indexes. In the dovecot log file I get a lot of those errors: Error: /var/vmail/domain/someuser/Maildir/public/.test.2nd /dovecot.index.pvt reset, view is now inconsistent Error: /var/vmail/domain/someuser/Maildir/public/.test.2nd/dovecot.index.pvt view is inconsistent Error: /var/vmail/domain/someuser/Maildir/public/.test.2nd.3rd /dovecot.index.pvt reset, view is now inconsistent Error: /var/vmail/domain/someuser/Maildir/public/.test.2nd.3rd/dovecot.index.pvt view is inconsistent Could this be the cause of the issue ? How can this be fixed ? Thank you for your kind help best regards Andreas
folders in public namespace only visable to 2nd folder level in 2.2.29.1
Hi all, I am currently facing an issue with Dovevot version 2.2.29.1 where subfolders in a public namespace are only visible to the 2nd folder level: namespace Public -> folder "1st" -> folder -> "2nd" -> folder "3rd" When one user creates a subfolder below the 2nd level other users do not see that folder and are unable to subscribe to this folder. Folders created under the 1st level however are visible and subscribable by other users. namespace { disabled = no hidden = no ignore_on_failure = no inbox = no list = children type = public separator = / prefix = Public/ location = maildir:/var/vmail/public:INDEXPVT=~/Maildir/public subscriptions = no } I do not know at which point ( dovecot update ) this issue appeared. Does anyone face the same problem ? Thank you for your kind help best regards Andreas
Re: [Dovecot] FTS solr issue with second private namespace
Am 02.12.2013 12:00, schrieb Andreas Oster: > Hi all, > > I have just stumbled over an issue with the FTS plugin of dovecot. > For our primary namespace, INBOX and its subfolders, searching works > without any problems but in a second namespace, which I have created > for old/archived mails, searching of the mail text/body does not work. > I can see the search request in the tomcat log but no result is created > and the mail client (Thunderbird) keeps displaying the serach message > without returning any results. > > Tomcat6 catalina.out: > > Dez 02, 2013 11:58:00 AM org.apache.solr.core.SolrCore execute > INFO: [] webapp=/solr path=/select > params={fl=uid,score&sort=uid+asc&q=body:"schiller"&fq=%2Bbox:1b4de60d0a6287522d0c4424cda4+%2Buser:"testuser"&rows=2} > hits=0 status=0 QTime=1 > > > I am currently using Dovecot 2.2.9 and do not have any special FTS config: > > mail_plugins = quota mailbox_alias fts fts_solr > > plugin { > fts = solr > fts_solr = break-imap-search url=http://localhost:8080/solr/ > fts_autoindex = yes > } > > > Thank you for your kind help > > best regards > > Andreas > > Hi all, I have recognized the following: in order to get the mails, stored in the secondary private namespace, indexed I have to manually do: doveadm index -u user -q MainArchive/ or doveadm index -A -q MainArchive/ fts_autoindex does not seem to work for other namespaces than INBOX. Is this a bug or desired functionality ? Thank you for your kind help best regards Andreas
Re: [Dovecot] FTS solr issue with second private namespace
Am 02.12.2013 12:00, schrieb Andreas Oster: > Hi all, > > I have just stumbled over an issue with the FTS plugin of dovecot. > For our primary namespace, INBOX and its subfolders, searching works > without any problems but in a second namespace, which I have created > for old/archived mails, searching of the mail text/body does not work. > I can see the search request in the tomcat log but no result is created > and the mail client (Thunderbird) keeps displaying the serach message > without returning any results. > > Tomcat6 catalina.out: > > Dez 02, 2013 11:58:00 AM org.apache.solr.core.SolrCore execute > INFO: [] webapp=/solr path=/select > params={fl=uid,score&sort=uid+asc&q=body:"schiller"&fq=%2Bbox:1b4de60d0a6287522d0c4424cda4+%2Buser:"testuser"&rows=2} > hits=0 status=0 QTime=1 > > > I am currently using Dovecot 2.2.9 and do not have any special FTS config: > > mail_plugins = quota mailbox_alias fts fts_solr > > plugin { > fts = solr > fts_solr = break-imap-search url=http://localhost:8080/solr/ > fts_autoindex = yes > } > > > Thank you for your kind help > > best regards > > Andreas > > Hi all, does nobody have an idea what could be the cause of this issue or has run into the same problem with fts ? Thank you for your kind help best regards Andreas
[Dovecot] FTS solr issue with second private namespace
Hi all, I have just stumbled over an issue with the FTS plugin of dovecot. For our primary namespace, INBOX and its subfolders, searching works without any problems but in a second namespace, which I have created for old/archived mails, searching of the mail text/body does not work. I can see the search request in the tomcat log but no result is created and the mail client (Thunderbird) keeps displaying the serach message without returning any results. Tomcat6 catalina.out: Dez 02, 2013 11:58:00 AM org.apache.solr.core.SolrCore execute INFO: [] webapp=/solr path=/select params={fl=uid,score&sort=uid+asc&q=body:"schiller"&fq=%2Bbox:1b4de60d0a6287522d0c4424cda4+%2Buser:"testuser"&rows=2} hits=0 status=0 QTime=1 I am currently using Dovecot 2.2.9 and do not have any special FTS config: mail_plugins = quota mailbox_alias fts fts_solr plugin { fts = solr fts_solr = break-imap-search url=http://localhost:8080/solr/ fts_autoindex = yes } Thank you for your kind help best regards Andreas
Re: [Dovecot] trouble with setting individual quota values for multiple namespaces
Am 01.08.2013 14:02, schrieb Timo Sirainen: > On Thu, 2013-08-01 at 13:17 +0300, Timo Sirainen wrote: >> On 1.8.2013, at 11.09, Andreas Oster wrote: >> >>> please apologize that I repost this problem again. I tried to get some >>> help several times on the list but did not find/get a solution. >>> >>> I am still struggling to setup different quotas for namespaces. >>> >>> In addition to the default "INBOX" namespace I have created a namespace >>> called "MailArchive" which should have its own quota value of 5G per user. >>> >>> At first I configured quota2 like this: >>> >>> quota2 = maildir:MailArchive quota:ns=MailArchive/ >>> quota2_rule = *:storage=5G >>> >>> and this seemd to work quite well. Users, accessing the MailArchive >>> namespace can see the 5G limit in their mail client, unfortunately in >>> the mail.err log file, errors like these repeatedly appear: >>> >>> Jul 29 11:40:24 mailserver dovecot: imap(testuser): Error: quota: >>> Unknown namespace: MailArchive/ >>> Jul 29 11:41:43 dovecot: last message repeated 47 times >> >> I can't reproduce this, works fine for me. Show your entire doveconf -n >> output? Also set mail_debug=yes and show what it logs when you log in. > > Fixed, happened because of shared mailboxes: > http://hg.dovecot.org/dovecot-2.2/rev/1705bf7bf484 > > > Hello Timo, thanks to your patch the error messages have disappeared. Thank you very much for your kind help. best regards Andreas
Re: [Dovecot] trouble with setting individual quota values for multiple namespaces
Am 01.08.2013 14:02, schrieb Timo Sirainen: > On Thu, 2013-08-01 at 13:17 +0300, Timo Sirainen wrote: >> On 1.8.2013, at 11.09, Andreas Oster wrote: >> >>> please apologize that I repost this problem again. I tried to get some >>> help several times on the list but did not find/get a solution. >>> >>> I am still struggling to setup different quotas for namespaces. >>> >>> In addition to the default "INBOX" namespace I have created a namespace >>> called "MailArchive" which should have its own quota value of 5G per user. >>> >>> At first I configured quota2 like this: >>> >>> quota2 = maildir:MailArchive quota:ns=MailArchive/ >>> quota2_rule = *:storage=5G >>> >>> and this seemd to work quite well. Users, accessing the MailArchive >>> namespace can see the 5G limit in their mail client, unfortunately in >>> the mail.err log file, errors like these repeatedly appear: >>> >>> Jul 29 11:40:24 mailserver dovecot: imap(testuser): Error: quota: >>> Unknown namespace: MailArchive/ >>> Jul 29 11:41:43 dovecot: last message repeated 47 times >> >> I can't reproduce this, works fine for me. Show your entire doveconf -n >> output? Also set mail_debug=yes and show what it logs when you log in. > > Fixed, happened because of shared mailboxes: > http://hg.dovecot.org/dovecot-2.2/rev/1705bf7bf484 > > > Hello Timo, that was really fast, thank you very much. I will try your patch and report my findings. best regards Andreas
[Dovecot] trouble with setting individual quota values for multiple namespaces
Hello all please apologize that I repost this problem again. I tried to get some help several times on the list but did not find/get a solution. I am still struggling to setup different quotas for namespaces. In addition to the default "INBOX" namespace I have created a namespace called "MailArchive" which should have its own quota value of 5G per user. At first I configured quota2 like this: quota2 = maildir:MailArchive quota:ns=MailArchive/ quota2_rule = *:storage=5G and this seemd to work quite well. Users, accessing the MailArchive namespace can see the 5G limit in their mail client, unfortunately in the mail.err log file, errors like these repeatedly appear: Jul 29 11:40:24 mailserver dovecot: imap(testuser): Error: quota: Unknown namespace: MailArchive/ Jul 29 11:41:43 dovecot: last message repeated 47 times In the WIKI I have read, that in order to have quota for different namespaces, one would have to use different quota backends so I changed the quota config for the MailArchive namespace to SQL. namespace inbox { disabled = no hidden = no ignore_on_failure = no inbox = yes list = yes location = mailbox Drafts { auto = subscribe driver = special_use = \Drafts } mailbox Junk { auto = subscribe driver = special_use = \Junk } mailbox Sent { auto = subscribe driver = special_use = \Sent } mailbox "Sent Messages" { auto = no driver = special_use = \Sent } mailbox Trash { auto = subscribe driver = special_use = \Trash } prefix = separator = / subscriptions = yes type = private } namespace { disabled = no hidden = no ignore_on_failure = no inbox = no list = yes location = maildir:/var/vmail/archive/%Ln/Maildir mailbox "Archived Mails" { auto = subscribe driver = } prefix = MailArchive/ separator = / subscriptions = yes type = private } plugin { quota = maildir:User quota:ns= quota2 = dict:Archive Quota:%u.mailarchive:ns=MailArchive/:proxy::sqlquota quota2_rule = *:storage=5G quota_rule = *:storage=1G quota_rule2 = Trash:storage=+200M } dict { sqlquota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext } Unfortunately this did not change anything. Quota is working like expected but I still get the same errors in mail.err. I am currently using dovecot version 2.2.4. Thank you for your kind help best regards Andreas
Re: [Dovecot] SOLVED for me: how to setup different quota for multiple namespaces
Am 04.02.2013 12:08, schrieb Steffen Kaiser: > On Tue, 22 Jan 2013, Timo Sirainen wrote: > > Hey, it works (for me) now: > > namespace { > type = private > separator = . > prefix = archive. > location = mdbox:/home/%u/archive > #subscriptions = no > #list = children > } > > plugin { > quota = dict:User quota::ns=:proxy::quota > quota2 = dict:Archive quota:%u.archive:ns=archive.:proxy::quota > quota2_rule = *:storage=1048576 > } > > Note the %u.archive _and_ ns=archive. ! The "%u.archive" is used as > "username" in the SQL table and you require another name (primary key) > there for both namespaces, see below. Seems to work for any type of > namespace. > > @Timo: I will going to document this setup in the Wiki unless you say > the syntax is wrong and/or works because of a bug only. > > :-) > > == > > Old response with my debugging/findings for information only. > > > > all the name spaces use one entry in the quota dict table, hence, > it does not work. > >> On 17.1.2013, at 16.58, Andreas Oster wrote: > >>>> I just saw on important difference in the doc and this configuration: >>>> >>>> see >>>> http://wiki2.dovecot.org/Quota/Configuration#Quota_for_public_namespaces >>>> >>>> >>>> the ns=name syntax is for _public_ namespaces only. I just tested it >>>> with this setup and every message is counted for both namespaces, if >>>> delivered into INBOX or a mailbox of the Archive namespace. > >> It should work for all namespaces. > >>>>> plugin { >>>>> quota = dict:User quota::proxy::quota >>>>> quota2 = dict:Archive quota:ns=Archive.:proxy::quota > >> quota = dict:User quota::ns=:proxy::quota >> quota2 = dict:Archive quota::ns=Archive.:proxy::quota > >> That should work? Worked at least in latest v2.1 hg. > > I use these settings now: > > # 2.1.14 (ea7e45c1da72+): > /usr/local/dovecot-2.1.14/etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.6 > > [snip] > > dict { > quota = > pgsql:/usr/local/dovecot-2.1.14/etc/dovecot/dovecot-dict-sql.conf.ext > } > namespace { > location = mdbox:/home/%u/archive > prefix = archive. > separator = . > type = private > } > plugin { > quota = dict:User quota::ns=:proxy::quota > quota2 = dict:Archive quota::ns=archive.:proxy::quota > quota2_rule = *:storage=1048576 > quota_rule = *:storage=300MB > quota_rule2 = Trash:storage=+30M > } > > The problem is now, that there is one row in the quota dict SQL table, > that holds the quota of an user, e.g. doveadm quota recalc executes > these SQL statements: > > 2013-02-04 11:52:07 CET LOG: statement: BEGIN > 2013-02-04 11:52:07 CET LOG: statement: DELETE FROM quota WHERE > username = 'dvtest1' > 2013-02-04 11:52:07 CET LOG: statement: DELETE FROM quota WHERE > username = 'dvtest1' > 2013-02-04 11:52:07 CET LOG: statement: INSERT INTO quota > (bytes,username) VALUES ('2173894','dvtest1') > 2013-02-04 11:52:07 CET LOG: statement: INSERT INTO quota > (messages,username) VALUES ('89','dvtest1') > 2013-02-04 11:52:07 CET LOG: statement: COMMIT > 2013-02-04 11:52:07 CET LOG: statement: BEGIN > 2013-02-04 11:52:07 CET LOG: statement: DELETE FROM quota WHERE > username = 'dvtest1' > 2013-02-04 11:52:07 CET LOG: statement: DELETE FROM quota WHERE > username = 'dvtest1' > 2013-02-04 11:52:07 CET LOG: statement: INSERT INTO quota > (bytes,username) VALUES ('2582','dvtest1') > 2013-02-04 11:52:07 CET LOG: statement: INSERT INTO quota > (messages,username) VALUES ('2','dvtest1') > 2013-02-04 11:52:07 CET LOG: statement: COMMIT > > Deliveries to INBOX or a folder of "archive." yields: > > UPDATE quota SET bytes=bytes+1220,messages=messages+1 WHERE username = > 'dvtest1' > > This is true if I change the type of name spaces "archive" from "private" > into "shared" or "public". > > -- Steffen Kaiser > Hello Steffen, hello all I am still struggling to setup quota for multiple namespaces. In addition to the "INBOX" namespace I have created a namespaces called MailArchive which should have its own quota value of 5G per user. At first I configured quota2 like this: quota2 = maildir:MailArchive quota:ns=MailArchive/ quota2_rule = *:storage=5G and this seemd to work quite well. Users, accessing the MailArchive names
Re: [Dovecot] getting quota error when accessing private namespace
Am 12.07.2013 09:54, schrieb Robert Schetterer: > Am 12.07.2013 09:37, schrieb Robert Schetterer: http://sys4.de/de/blog/2013/02/07/mailarchiv-mit-dovecot-und-postfix-sortiert-nach-datum-mailadressen-und-ein-ausgehend-unterordnern/ for ideas > > like above a little bit different ( no postfix bcc archive feature and > sieve autosort, instead for putting users mails by themselves to some > archive by imap ) you may solve it ,with some backup.domain.de with > alternate mail location in i.e ldap or mysql having some inbox and > archive folder for every user mailbox on other physical mount in shared > user namespace and using acl on it, this can be done automatic at user > mailbox creation time with subscribe archive folder, use some static > quota with it > > > Best Regards > MfG Robert Schetterer > Hello Robert, thank you for all your hints. I already know the +quota stuff, but this is not shown in the mail client and the user has no way to see if he is reaching the max level. That is why I tried to set up an additional namespace in the first place. Thank you very much for your kind help. Andreas
Re: [Dovecot] getting quota error when accessing private namespace
Am 12.07.2013 08:39, schrieb Robert Schetterer: > Am 12.07.2013 07:27, schrieb Andreas Oster: >> Hi all, >> >> I have run into a problem which I cannot find a solution for. >> >> I have created an additional private namespace with the following >> commands in dovecot.conf : >> >> namespace { >> disabled = no >> hidden = no >> ignore_on_failure = no >> inbox = no >> list = children >> location = maildir:/var/vmail/archives/%Ln/Maildir >> mailbox "archived mails" { >> auto = subscribe >> driver = >> special_use = \Archive >> } >> prefix = Archives/ >> separator = / >> subscriptions = yes >> type = private >> } >> >> plugin { >> quota = maildir:User quota:ns= >> quota2 = maildir:Archives quota:ns=Archives/ >> quota2_rule = *:storage=5G >> quota_rule = *:storage=1G >> quota_rule2 = Trash:storage=+200M >> } >> >> >> I can access the new namespace without any problems but every time >> a folder in this namespace is accessed, I get the following error >> messages in mail.err log: >> >> dovecot: imap(testuser): Error: quota: Unknown namespace: Archives/ >> dovecot: last message repeated 49 times >> >> >> Quota seems to work, though I have the feeling, that it only will be >> updated when closing and reopening the mail client, but this can also >> be a client issue. >> >> Quota for the INBOX is either taken from LDAP or, if there is no value >> defined in LDAP, will be assigned a quota of 1G >> >> The Archives/ namespace has a static quota of 5G for every user. >> >> >> Does anyone have idea how to get rid of these error messages ? >> >> Thank you for your kind help >> >> Andreas >> > > why you want to have a separate namespace for archives ?, why not use > simply a imap folder for every user ( which i wouldnt call archives, > cause that name is allready used by thunderbird etc ), or use some pub > namespace with an archive-username folder, restrictions can be done by > acl, what problem youre trying to solve? > > perhaps you might have a look at > > http://sys4.de/de/blog/2013/02/07/mailarchiv-mit-dovecot-und-postfix-sortiert-nach-datum-mailadressen-und-ein-ausgehend-unterordnern/ > > for ideas > > also > > http://sys4.de/de/blog/2013/03/25/outlook-2013-special-use-mit-dovecot/ > > should give you help for special use handling, guess german is ok for you > > > Best Regards > MfG Robert Schetterer > Hello Robert, thank you for your fast response. I wanted to use the Thunderbird archive feature to allow users to move old mails, they want to keep, to a storage located on another server. But it would be perfectly OK to just have another folder where they can drop their old stuff. Every user should have a quota of 5G in that folder, which is different from the default INBOX quota. best regards Andreas
[Dovecot] getting quota error when accessing private namespace
Hi all, I have run into a problem which I cannot find a solution for. I have created an additional private namespace with the following commands in dovecot.conf : namespace { disabled = no hidden = no ignore_on_failure = no inbox = no list = children location = maildir:/var/vmail/archives/%Ln/Maildir mailbox "archived mails" { auto = subscribe driver = special_use = \Archive } prefix = Archives/ separator = / subscriptions = yes type = private } plugin { quota = maildir:User quota:ns= quota2 = maildir:Archives quota:ns=Archives/ quota2_rule = *:storage=5G quota_rule = *:storage=1G quota_rule2 = Trash:storage=+200M } I can access the new namespace without any problems but every time a folder in this namespace is accessed, I get the following error messages in mail.err log: dovecot: imap(testuser): Error: quota: Unknown namespace: Archives/ dovecot: last message repeated 49 times Quota seems to work, though I have the feeling, that it only will be updated when closing and reopening the mail client, but this can also be a client issue. Quota for the INBOX is either taken from LDAP or, if there is no value defined in LDAP, will be assigned a quota of 1G The Archives/ namespace has a static quota of 5G for every user. Does anyone have idea how to get rid of these error messages ? Thank you for your kind help Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 04.02.2013 10:40, schrieb Andreas Oster: > Am 22.01.2013 12:54, schrieb Timo Sirainen: >> On 17.1.2013, at 16.58, Andreas Oster wrote: >> >>>> I just saw on important difference in the doc and this configuration: >>>> >>>> see >>>> http://wiki2.dovecot.org/Quota/Configuration#Quota_for_public_namespaces >>>> >>>> the ns=name syntax is for _public_ namespaces only. I just tested it >>>> with this setup and every message is counted for both namespaces, if >>>> delivered into INBOX or a mailbox of the Archive namespace. >> >> It should work for all namespaces. >> >>>>> plugin { >>>>> quota = dict:User quota::proxy::quota >>>>> quota2 = dict:Archive quota:ns=Archive.:proxy::quota >> >> quota = dict:User quota::ns=:proxy::quota >> quota2 = dict:Archive quota::ns=Archive.:proxy::quota >> >> That should work? Worked at least in latest v2.1 hg. >> >> > Hello Timo, > > can you please confirm, that it is actually possible to have multiple > quota roots with separate/different quota values. > > Currently I have this config: > > namespace { > disabled = no > hidden = no > ignore_on_failure = no > inbox = no > list = children > location = maildir:/var/vmail/archives/%n/Maildir > prefix = Archives/ > separator = / > subscriptions = yes > type = private > } > namespace inbox { > disabled = no > hidden = no > ignore_on_failure = no > inbox = yes > list = yes > location = > prefix = > separator = / > subscriptions = yes > type = private > } > plugin { > quota = maildir:User quota:ns= > quota2 = maildir:Archives quota:ns=Archives/ > quota_rule = *:storage=1G > quota_rule2 = Trash:storage=+200M > quota_rule3 = ns=Archives/:storage=5G > } > > > With this setup I get the following error: > > > Debug: Quota root: name=User quota backend=maildir args=ns= > Debug: Quota rule: root=User quota mailbox=* bytes=3221225472 messages=0 > Debug: Quota rule: root=User quota mailbox=Trash bytes=+209715200 messages=0 > Warning: quota root User quota rule ns=Archives/:storage=5G: obsolete > configuration for rule 'storage=5G' should be changed to 'storage=+5G' > Debug: Quota rule: root=User quota mailbox=ns=Archives/ > bytes=+5368709120 messages=0 > Debug: Quota root: name=Archives quota backend=maildir args=ns=Archives/ > > > Thank you for your kind help. > > best regards > Andreas > Hi all, my quota issue is solved. It was a stupid configuration error and it seems that I have been blind :-( plugin { quota = maildir:User quota:ns= quota2 = maildir:Archives quota:ns=Archives/ quota_rule = *:storage=1G quota_rule2 = Trash:storage=+200M quota2_rule = *:storage=5G } this confiurationg works like a charm. Thank you for your kind help. best regards Andreas
Re: [Dovecot] SOLVED for me: how to setup different quota for multiple namespaces
Am 04.02.2013 12:08, schrieb Steffen Kaiser: > On Tue, 22 Jan 2013, Timo Sirainen wrote: > > Hey, it works (for me) now: > > namespace { > type = private > separator = . > prefix = archive. > location = mdbox:/home/%u/archive > #subscriptions = no > #list = children > } > > plugin { > quota = dict:User quota::ns=:proxy::quota > quota2 = dict:Archive quota:%u.archive:ns=archive.:proxy::quota > quota2_rule = *:storage=1048576 > } > > Note the %u.archive _and_ ns=archive. ! The "%u.archive" is used as > "username" in the SQL table and you require another name (primary key) > there for both namespaces, see below. Seems to work for any type of > namespace. > > @Timo: I will going to document this setup in the Wiki unless you say > the syntax is wrong and/or works because of a bug only. > > :-) > > == > > Old response with my debugging/findings for information only. > > > > all the name spaces use one entry in the quota dict table, hence, > it does not work. > >> On 17.1.2013, at 16.58, Andreas Oster wrote: > >>>> I just saw on important difference in the doc and this configuration: >>>> >>>> see >>>> http://wiki2.dovecot.org/Quota/Configuration#Quota_for_public_namespaces >>>> >>>> >>>> the ns=name syntax is for _public_ namespaces only. I just tested it >>>> with this setup and every message is counted for both namespaces, if >>>> delivered into INBOX or a mailbox of the Archive namespace. > >> It should work for all namespaces. > >>>>> plugin { >>>>> quota = dict:User quota::proxy::quota >>>>> quota2 = dict:Archive quota:ns=Archive.:proxy::quota > >> quota = dict:User quota::ns=:proxy::quota >> quota2 = dict:Archive quota::ns=Archive.:proxy::quota > >> That should work? Worked at least in latest v2.1 hg. > > I use these settings now: > > # 2.1.14 (ea7e45c1da72+): > /usr/local/dovecot-2.1.14/etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.6 > > [snip] > > dict { > quota = > pgsql:/usr/local/dovecot-2.1.14/etc/dovecot/dovecot-dict-sql.conf.ext > } > namespace { > location = mdbox:/home/%u/archive > prefix = archive. > separator = . > type = private > } > plugin { > quota = dict:User quota::ns=:proxy::quota > quota2 = dict:Archive quota::ns=archive.:proxy::quota > quota2_rule = *:storage=1048576 > quota_rule = *:storage=300MB > quota_rule2 = Trash:storage=+30M > } > > The problem is now, that there is one row in the quota dict SQL table, > that holds the quota of an user, e.g. doveadm quota recalc executes > these SQL statements: > > 2013-02-04 11:52:07 CET LOG: statement: BEGIN > 2013-02-04 11:52:07 CET LOG: statement: DELETE FROM quota WHERE > username = 'dvtest1' > 2013-02-04 11:52:07 CET LOG: statement: DELETE FROM quota WHERE > username = 'dvtest1' > 2013-02-04 11:52:07 CET LOG: statement: INSERT INTO quota > (bytes,username) VALUES ('2173894','dvtest1') > 2013-02-04 11:52:07 CET LOG: statement: INSERT INTO quota > (messages,username) VALUES ('89','dvtest1') > 2013-02-04 11:52:07 CET LOG: statement: COMMIT > 2013-02-04 11:52:07 CET LOG: statement: BEGIN > 2013-02-04 11:52:07 CET LOG: statement: DELETE FROM quota WHERE > username = 'dvtest1' > 2013-02-04 11:52:07 CET LOG: statement: DELETE FROM quota WHERE > username = 'dvtest1' > 2013-02-04 11:52:07 CET LOG: statement: INSERT INTO quota > (bytes,username) VALUES ('2582','dvtest1') > 2013-02-04 11:52:07 CET LOG: statement: INSERT INTO quota > (messages,username) VALUES ('2','dvtest1') > 2013-02-04 11:52:07 CET LOG: statement: COMMIT > > Deliveries to INBOX or a folder of "archive." yields: > > UPDATE quota SET bytes=bytes+1220,messages=messages+1 WHERE username = > 'dvtest1' > > This is true if I change the type of name spaces "archive" from "private" > into "shared" or "public". > > -- Steffen Kaiser > Hello Steffen, I do not use a SQL backend to store the quota information, so I guess the %u parameter is of little use with my setup. I have also tried to configure quota with dict and flat file, but this also did seem not work. Thanks best regards Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 22.01.2013 12:54, schrieb Timo Sirainen: > On 17.1.2013, at 16.58, Andreas Oster wrote: > >>> I just saw on important difference in the doc and this configuration: >>> >>> see >>> http://wiki2.dovecot.org/Quota/Configuration#Quota_for_public_namespaces >>> >>> the ns=name syntax is for _public_ namespaces only. I just tested it >>> with this setup and every message is counted for both namespaces, if >>> delivered into INBOX or a mailbox of the Archive namespace. > > It should work for all namespaces. > >>>> plugin { >>>> quota = dict:User quota::proxy::quota >>>> quota2 = dict:Archive quota:ns=Archive.:proxy::quota > > quota = dict:User quota::ns=:proxy::quota > quota2 = dict:Archive quota::ns=Archive.:proxy::quota > > That should work? Worked at least in latest v2.1 hg. > > Hello Timo, can you please confirm, that it is actually possible to have multiple quota roots with separate/different quota values. Currently I have this config: namespace { disabled = no hidden = no ignore_on_failure = no inbox = no list = children location = maildir:/var/vmail/archives/%n/Maildir prefix = Archives/ separator = / subscriptions = yes type = private } namespace inbox { disabled = no hidden = no ignore_on_failure = no inbox = yes list = yes location = prefix = separator = / subscriptions = yes type = private } plugin { quota = maildir:User quota:ns= quota2 = maildir:Archives quota:ns=Archives/ quota_rule = *:storage=1G quota_rule2 = Trash:storage=+200M quota_rule3 = ns=Archives/:storage=5G } With this setup I get the following error: Debug: Quota root: name=User quota backend=maildir args=ns= Debug: Quota rule: root=User quota mailbox=* bytes=3221225472 messages=0 Debug: Quota rule: root=User quota mailbox=Trash bytes=+209715200 messages=0 Warning: quota root User quota rule ns=Archives/:storage=5G: obsolete configuration for rule 'storage=5G' should be changed to 'storage=+5G' Debug: Quota rule: root=User quota mailbox=ns=Archives/ bytes=+5368709120 messages=0 Debug: Quota root: name=Archives quota backend=maildir args=ns=Archives/ Thank you for your kind help. best regards Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 22.01.2013 14:06, schrieb Andreas Oster: > Am 22.01.2013 12:54, schrieb Timo Sirainen: >> On 17.1.2013, at 16.58, Andreas Oster wrote: >> >>>> I just saw on important difference in the doc and this configuration: >>>> >>>> see >>>> http://wiki2.dovecot.org/Quota/Configuration#Quota_for_public_namespaces >>>> >>>> the ns=name syntax is for _public_ namespaces only. I just tested it >>>> with this setup and every message is counted for both namespaces, if >>>> delivered into INBOX or a mailbox of the Archive namespace. >> >> It should work for all namespaces. >> >>>>> plugin { >>>>> quota = dict:User quota::proxy::quota >>>>> quota2 = dict:Archive quota:ns=Archive.:proxy::quota >> >> quota = dict:User quota::ns=:proxy::quota >> quota2 = dict:Archive quota::ns=Archive.:proxy::quota >> >> That should work? Worked at least in latest v2.1 hg. >> >> > Hello Timo, > > thank you for your reply. I am using dovecot 2.1.7 (Ubuntu 12.10) and > have tried to configure a separate quote root for a second private > namespace without any success. The only working option is to > ignore/disable quota for the second namespace: > > > } > namespace inbox { > hidden = no > ignore_on_failure = no > inbox = yes > list = yes > location = > prefix = > separator = / > subscriptions = yes > type = private > } > > namespace { > hidden = no > ignore_on_failure = no > inbox = no > list = children > location = maildir:/var/vmail/archives/%n/Maildir > prefix = Archives/ > separator = / > subscriptions = yes > type = private > } > > > > plugin { > quota = maildir:User quota:ns= > quota2 = maildir:Archives quota:ns=Archives/ > quota_rule = *:storage=1G > quota_rule2 = Trash:storage=+200M > quota_rule3 = ns=Archives/:ignore > } > > > If I try to enter something like: > > quota_rule3 = ns=Archives/:storage=10G > > I will get an error message saying that this is deprecated and needs to > be replaced by "+10G". > > best regards > > Andreas > Hello Timo, I have created some DEB packages for Ubuntu with dovecot version 2.1.13 but this version shows the same behavior. Do I have to configure quota like Steffen did with: quota2 = dict:Archive quota::ns=Archive/:proxy::quota Thank you for your kind help. best regards Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 22.01.2013 12:54, schrieb Timo Sirainen: > On 17.1.2013, at 16.58, Andreas Oster wrote: > >>> I just saw on important difference in the doc and this configuration: >>> >>> see >>> http://wiki2.dovecot.org/Quota/Configuration#Quota_for_public_namespaces >>> >>> the ns=name syntax is for _public_ namespaces only. I just tested it >>> with this setup and every message is counted for both namespaces, if >>> delivered into INBOX or a mailbox of the Archive namespace. > > It should work for all namespaces. > >>>> plugin { >>>> quota = dict:User quota::proxy::quota >>>> quota2 = dict:Archive quota:ns=Archive.:proxy::quota > > quota = dict:User quota::ns=:proxy::quota > quota2 = dict:Archive quota::ns=Archive.:proxy::quota > > That should work? Worked at least in latest v2.1 hg. > > Hello Timo, thank you for your reply. I am using dovecot 2.1.7 (Ubuntu 12.10) and have tried to configure a separate quote root for a second private namespace without any success. The only working option is to ignore/disable quota for the second namespace: } namespace inbox { hidden = no ignore_on_failure = no inbox = yes list = yes location = prefix = separator = / subscriptions = yes type = private } namespace { hidden = no ignore_on_failure = no inbox = no list = children location = maildir:/var/vmail/archives/%n/Maildir prefix = Archives/ separator = / subscriptions = yes type = private } plugin { quota = maildir:User quota:ns= quota2 = maildir:Archives quota:ns=Archives/ quota_rule = *:storage=1G quota_rule2 = Trash:storage=+200M quota_rule3 = ns=Archives/:ignore } If I try to enter something like: quota_rule3 = ns=Archives/:storage=10G I will get an error message saying that this is deprecated and needs to be replaced by "+10G". best regards Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 17.01.2013 15:17, schrieb Steffen Kaiser: > On Wed, 16 Jan 2013, Steffen Kaiser wrote: > >> On Fri, 11 Jan 2013, Andreas Oster wrote: > >>> Am 10.01.2013 15:30, schrieb Steffen Kaiser: >>>> On Wed, 9 Jan 2013, Andreas Oster wrote: >>>> >>>>> namespace { >>>>> type = private > > I just saw on important difference in the doc and this configuration: > > see > http://wiki2.dovecot.org/Quota/Configuration#Quota_for_public_namespaces > > the ns=name syntax is for _public_ namespaces only. I just tested it > with this setup and every message is counted for both namespaces, if > delivered into INBOX or a mailbox of the Archive namespace. > >>>>> separator = . >>>>> prefix = Archives. >>>>> location = maildir:/var/vmail/archive/%Ln/Maildir >>>>> subscriptions = yes >>>>> list = children >>>>> inbox = no >>>>> } >>>> >>>>> I configured the quota plugin in the following way: >>>> >>>>> plugin { >>>>>quota = maildir:User quota:ns= >>>>>quota2 = maildir:Archive quota:ns=Archives. >>>>>quota_rule = *:storage=1G >>>>>quota_rule2 = ns=Archives.:ignore >>>>> } >>>> >>>>> unfortunately this does not give the desired result. Folders under the >>>>> Archives namespace use the same quota as INBOX. >>>> >>>> If I understand the Wiki correctly, you need to write: >>>> >>>> quota2_rule = *:storage=10G >>>> >>>> The "quota2"_rule# settings apply to the "quota2" root by >>>> namespace. Whereas the "quota"_rule# settings apply to the default, the >>>> first quota root. >>> >>> unfortunately this does not work. when I configure it the way you have >>> proposed the 10G quote will be assigned to the base namespace (INBOX) >>> the Archives namespace has no quota assigned. > >> I tried this setup: > >> namespace { >> type = private >> separator = . >> prefix = Archive. >> location = mdbox:/home/%u/archive >> #subscriptions = no >> #list = children >> } > >> plugin { >> quota = dict:User quota::proxy::quota >> quota2 = dict:Archive quota:ns=Archive.:proxy::quota >> quota2_rule = *:storage=1048576 >> } > >> telnet localhost 143 >> 1 login .. .. >> 2 list "" * >> * LIST (\HasNoChildren \Sent) "." "Sent" >> * LIST (\HasNoChildren \Trash) "." "Trash" >> * LIST (\HasNoChildren \Junk) "." "Junk" >> * LIST (\HasNoChildren \Drafts) "." "Drafts" >> * LIST (\HasNoChildren) "." "INBOX" >> * LIST (\Noselect \HasChildren) "." "Archive" >> * LIST (\HasNoChildren) "." "Archive.Test" >> 2 OK List completed. >> 2 getquotaroot "" >> * QUOTAROOT "" "User quota" "Archive quota" >> * QUOTA "User quota" (STORAGE 259 7540259) >> * QUOTA "Archive quota" (STORAGE 2109 1048576) >> 2 OK Getquotaroot completed. > >> So the configuration is running in Dovecot v2.1.13. The value of "User >> quota" comes from LDAP. What I did not tested was, if the quota is >> actually calculated and tracked in the database. > > -- Steffen Kaiser > Hello Steffen, thanks again for testing. I also did some tests but had no luck so far. I guess it is not possible to have different quotas for multiple private namespaces. best regards Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 16.01.2013 09:55, schrieb Steffen Kaiser: > On Fri, 11 Jan 2013, Andreas Oster wrote: > >> Am 10.01.2013 15:30, schrieb Steffen Kaiser: >>> On Wed, 9 Jan 2013, Andreas Oster wrote: >>> >>>> namespace { >>>> type = private >>>> separator = . >>>> prefix = Archives. >>>> location = maildir:/var/vmail/archive/%Ln/Maildir >>>> subscriptions = yes >>>> list = children >>>> inbox = no >>>> } >>> >>>> I configured the quota plugin in the following way: >>> >>>> plugin { >>>>quota = maildir:User quota:ns= >>>>quota2 = maildir:Archive quota:ns=Archives. >>>>quota_rule = *:storage=1G >>>>quota_rule2 = ns=Archives.:ignore >>>> } >>> >>>> unfortunately this does not give the desired result. Folders under the >>>> Archives namespace use the same quota as INBOX. >>> >>> If I understand the Wiki correctly, you need to write: >>> >>> quota2_rule = *:storage=10G >>> >>> The "quota2"_rule# settings apply to the "quota2" root by >>> namespace. Whereas the "quota"_rule# settings apply to the default, the >>> first quota root. > >> unfortunately this does not work. when I configure it the way you have >> proposed the 10G quote will be assigned to the base namespace (INBOX) >> the Archives namespace has no quota assigned. > > I tried this setup: > > namespace { > type = private > separator = . > prefix = Archive. > location = mdbox:/home/%u/archive > #subscriptions = no > #list = children > } > > plugin { > quota = dict:User quota::proxy::quota > quota2 = dict:Archive quota:ns=Archive.:proxy::quota > quota2_rule = *:storage=1048576 > } > > telnet localhost 143 > 1 login .. .. > 2 list "" * > * LIST (\HasNoChildren \Sent) "." "Sent" > * LIST (\HasNoChildren \Trash) "." "Trash" > * LIST (\HasNoChildren \Junk) "." "Junk" > * LIST (\HasNoChildren \Drafts) "." "Drafts" > * LIST (\HasNoChildren) "." "INBOX" > * LIST (\Noselect \HasChildren) "." "Archive" > * LIST (\HasNoChildren) "." "Archive.Test" > 2 OK List completed. > 2 getquotaroot "" > * QUOTAROOT "" "User quota" "Archive quota" > * QUOTA "User quota" (STORAGE 259 7540259) > * QUOTA "Archive quota" (STORAGE 2109 1048576) > 2 OK Getquotaroot completed. > > So the configuration is running in Dovecot v2.1.13. The value of "User > quota" comes from LDAP. What I did not tested was, if the quota is > actually calculated and tracked in the database. > > Kind regards, > > -- Steffen Kaiser > Hello Steffen, thank you for creating a test setup. I will try to implement it the way you did it, but I will stay with maildir. Meanwhile I have recognized another issue, this time with our webmail system (roundcube). It seems that it is not able to handle multiple namespaces so I might need to stay with the single private namespance setup. Thank you very much for your kind help. best regards Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 09.01.2013 09:46, schrieb Andreas Oster: > Hello all, > > I am using dovecot for some time now but always had very basic > configurations. I recently have configured a new, additional namespace > in order to move archived mails (Thunderbird Archives) to another > storage system. > > namespace { > type = private > separator = . > prefix = Archives. > location = maildir:/var/vmail/archive/%Ln/Maildir > subscriptions = yes > list = children > inbox = no > } > > This works well but unfortunately I cannot find a solution to either > ignore this new namespace from quota computation or add a separate quota > value for it. > > I have integrated user authentication with LDAP and fetch some user > attributes from LDAP entries: > > user_attrs = > =home=/var/vmail/%Ln/Maildir,=mail=maildir:/var/vmail/%Ln/Maildir/,otherPager=quota_rule=*:storage=%$ > > I configured the quota plugin in the following way: > > plugin { > quota = maildir:User quota:ns= > quota2 = maildir:Archive quota:ns=Archives. > quota_rule = *:storage=1G > quota_rule2 = ns=Archives.:ignore > } > > unfortunately this does not give the desired result. Folders under the > Archives namespace use the same quota as INBOX. > > > Does anyone have an idea how to fix this ? > > Thank you for your kind help > > Andreas > > Hi all, does nobody have a similar setup ? Is this the wrong way to implement this ? Thanks best regards Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 09.01.2013 09:46, schrieb Andreas Oster: > Hello all, > > I am using dovecot for some time now but always had very basic > configurations. I recently have configured a new, additional namespace > in order to move archived mails (Thunderbird Archives) to another > storage system. > > namespace { > type = private > separator = . > prefix = Archives. > location = maildir:/var/vmail/archive/%Ln/Maildir > subscriptions = yes > list = children > inbox = no > } > > This works well but unfortunately I cannot find a solution to either > ignore this new namespace from quota computation or add a separate quota > value for it. > > I have integrated user authentication with LDAP and fetch some user > attributes from LDAP entries: > > user_attrs = > =home=/var/vmail/%Ln/Maildir,=mail=maildir:/var/vmail/%Ln/Maildir/,otherPager=quota_rule=*:storage=%$ > > I configured the quota plugin in the following way: > > plugin { > quota = maildir:User quota:ns= > quota2 = maildir:Archive quota:ns=Archives. > quota_rule = *:storage=1G > quota_rule2 = ns=Archives.:ignore > } > > unfortunately this does not give the desired result. Folders under the > Archives namespace use the same quota as INBOX. > > > Does anyone have an idea how to fix this ? > > Thank you for your kind help > > Andreas > > Hi all, I have changed my quota config in every way that came to my mind but did not manage to get the result I want to achieve. I would like to have LDAP provided quota for INBOX ( this part is working) and a completely separate 10G quota for the Archives namespace. Is it actually possible to have separated quotas for multiple private namespaces with dovecot (2.1.7)? Thank you for your kind help. best regards
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 10.01.2013 15:30, schrieb Steffen Kaiser: > On Wed, 9 Jan 2013, Andreas Oster wrote: > >> namespace { >> type = private >> separator = . >> prefix = Archives. >> location = maildir:/var/vmail/archive/%Ln/Maildir >> subscriptions = yes >> list = children >> inbox = no >> } > >> I configured the quota plugin in the following way: > >> plugin { >>quota = maildir:User quota:ns= >>quota2 = maildir:Archive quota:ns=Archives. >>quota_rule = *:storage=1G >>quota_rule2 = ns=Archives.:ignore >> } > >> unfortunately this does not give the desired result. Folders under the >> Archives namespace use the same quota as INBOX. > > If I understand the Wiki correctly, you need to write: > > quota2_rule = *:storage=10G > > The "quota2"_rule# settings apply to the "quota2" root by > namespace. Whereas the "quota"_rule# settings apply to the default, the > first quota root. > > Regards, > > -- Steffen Kaiser > Hello Steffen, unfortunately this does not work. when I configure it the way you have proposed the 10G quote will be assigned to the base namespace (INBOX) the Archives namespace has no quota assigned. best regards Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 10.01.2013 15:30, schrieb Steffen Kaiser: > On Wed, 9 Jan 2013, Andreas Oster wrote: > >> namespace { >> type = private >> separator = . >> prefix = Archives. >> location = maildir:/var/vmail/archive/%Ln/Maildir >> subscriptions = yes >> list = children >> inbox = no >> } > >> I configured the quota plugin in the following way: > >> plugin { >>quota = maildir:User quota:ns= >>quota2 = maildir:Archive quota:ns=Archives. >>quota_rule = *:storage=1G >>quota_rule2 = ns=Archives.:ignore >> } > >> unfortunately this does not give the desired result. Folders under the >> Archives namespace use the same quota as INBOX. > > If I understand the Wiki correctly, you need to write: > > quota2_rule = *:storage=10G > > The "quota2"_rule# settings apply to the "quota2" root by > namespace. Whereas the "quota"_rule# settings apply to the default, the > first quota root. > > Regards, > > -- Steffen Kaiser > Hello Steffen, thank you for the information. I will try to setup the quota rule the way you have proposed. I will report the results when I have time to test it. Thank you for your fast response. best regards Andreas
Re: [Dovecot] how to setup different quota for multiple namespaces
Am 09.01.2013 09:46, schrieb Andreas Oster: > Hello all, > > I am using dovecot for some time now but always had very basic > configurations. I recently have configured a new, additional namespace > in order to move archived mails (Thunderbird Archives) to another > storage system. > > namespace { > type = private > separator = . > prefix = Archives. > location = maildir:/var/vmail/archive/%Ln/Maildir > subscriptions = yes > list = children > inbox = no > } > > This works well but unfortunately I cannot find a solution to either > ignore this new namespace from quota computation or add a separate quota > value for it. > > I have integrated user authentication with LDAP and fetch some user > attributes from LDAP entries: > > user_attrs = > =home=/var/vmail/%Ln/Maildir,=mail=maildir:/var/vmail/%Ln/Maildir/,otherPager=quota_rule=*:storage=%$ > > I configured the quota plugin in the following way: > > plugin { > quota = maildir:User quota:ns= > quota2 = maildir:Archive quota:ns=Archives. > quota_rule = *:storage=1G > quota_rule2 = ns=Archives.:ignore > } > > unfortunately this does not give the desired result. Folders under the > Archives namespace use the same quota as INBOX. > > > Does anyone have an idea how to fix this ? > > Thank you for your kind help > > Andreas > > Hello all, I have just realized, that my quota config actually works when using the "ignore" directive, but I am unable to set a separate quota (for example 10G) for the Archives. namespace. I have tried with: quota_rule2 = ns=Archives.:storage=10G but this raises an error message in the logfile: Jan 9 11:30:01 mail01 dovecot: imap: Debug: Added userdb setting: plugin/quota_rule=*:storage=3G Jan 9 11:30:01 mail01 dovecot: imap: Debug: Effective uid=150, gid=8, home=/var/vmail/novanetwork.loc/testuser/Maildir Jan 9 11:30:01 mail01 dovecot: imap: Debug: Quota root: name=User quota backend=maildir args=ns= Jan 9 11:30:01 mail01 dovecot: imap: Debug: Quota rule: root=User quota mailbox=* bytes=3221225472 messages=0 Jan 9 11:30:01 mail01 dovecot: imap: Warning: quota root User quota rule ns=Archives.:storage=10G: obsolete configuration for rule 'storage=10G' should be changed to 'storage=+10G' Jan 9 11:30:01 mail01 dovecot: imap: Debug: Quota rule: root=User quota mailbox=ns=Archives. bytes=+10737418240 messages=0 Jan 9 11:30:01 mail01 dovecot: imap: Debug: Quota root: name=Archive quota backend=maildir args=ns=Archives. If I add the '+' the error message will not come up again, but when checkinig the quota value for the folders under the Archives. namespace I still get the quota size for the Inbox namespace. Thank you for your kind help best regards Andreas
[Dovecot] how to setup different quota for multiple namespaces
Hello all, I am using dovecot for some time now but always had very basic configurations. I recently have configured a new, additional namespace in order to move archived mails (Thunderbird Archives) to another storage system. namespace { type = private separator = . prefix = Archives. location = maildir:/var/vmail/archive/%Ln/Maildir subscriptions = yes list = children inbox = no } This works well but unfortunately I cannot find a solution to either ignore this new namespace from quota computation or add a separate quota value for it. I have integrated user authentication with LDAP and fetch some user attributes from LDAP entries: user_attrs = =home=/var/vmail/%Ln/Maildir,=mail=maildir:/var/vmail/%Ln/Maildir/,otherPager=quota_rule=*:storage=%$ I configured the quota plugin in the following way: plugin { quota = maildir:User quota:ns= quota2 = maildir:Archive quota:ns=Archives. quota_rule = *:storage=1G quota_rule2 = ns=Archives.:ignore } unfortunately this does not give the desired result. Folders under the Archives namespace use the same quota as INBOX. Does anyone have an idea how to fix this ? Thank you for your kind help Andreas