Re: Quotas not working with roundcube
Hello Aki, Thank you very much, indeed that was the missing part. I've also enabled mailbox_list_index = yes protocol !indexer-worker { mail_vsize_bg_after_count = 100 } As described in the documentation https://wiki.dovecot.org/Quota/Count Regards Le lundi 17 septembre 2018 à 07:57:58 UTC+2, Aki Tuomi a écrit : You did everything except actually enable quota... =) Try adding this to your configuration quota = count:User quota quota_vsizes = yes inside the plugin {} section. Aki > On 16 September 2018 at 21:58 Mik J wrote: > > > Hello, > > I'm trying to have quotas working with roundcube. > When I'm logged into roundcube I see 0% quota which seems to correspond to > disabled. > > However I did everything that I could to enable quotas > https://wiki.dovecot.org/Quota > > # doveconf -n > auth_mechanisms = cram-md5 loginauth_verbose = yes > debug_log_path = /tmp/dovecot.log > first_valid_uid = 1000 > log_path = /var/log/dovecot.log > mail_gid = vmail > mail_location = maildir:/home/mail/%d/%n/Maildir > mail_plugins = notify replication quota > mail_uid = vmail > mbox_write_locks = fcntl > mmap_disable = yes > namespace inbox { > inbox = yes > location = > mailbox Drafts { > special_use = \Drafts > } > mailbox Junk { > special_use = \Junk > } > mailbox Sent { > special_use = \Sent > } > mailbox "Sent Messages" { > special_use = \Sent > } > mailbox Trash { > special_use = \Trash > } > prefix = > } > passdb { > driver = bsdauth > } > passdb { > args = /etc/dovecot/dovecot.passwd > driver = passwd-file > } > plugin { > quota_grace = 10%% > quota_rule = *:storage=2G > quota_rule2 = Trash:storage=+200M > quota_rule3 = SPAM:ignore > quota_status_nouser = DUNNO > quota_status_overquota = 552 5.2.2 Mailbox is full > quota_status_success = DUNNO > quota_warning = storage=95%% quota-warning 95 %u > quota_warning2 = storage=80%% quota-warning 80 %u > } > ssl_ca = /etc/ssl/certs/CA_Intermed_Lets_Encrypt.crt > ssl_cert = ssl_key = # hidden, use -P to show it > ssl_key_password = # hidden, use -P to show it > userdb { > driver = passwd > } > userdb { > driver = static > } > protocol lda { > mail_plugins = notify replication quota > } > protocol imap { > mail_plugins = notify replication quota imap_quota > } > > > >
Quotas not working with roundcube
Hello, I'm trying to have quotas working with roundcube. When I'm logged into roundcube I see 0% quota which seems to correspond to disabled. However I did everything that I could to enable quotas https://wiki.dovecot.org/Quota # doveconf -n auth_mechanisms = cram-md5 loginauth_verbose = yes debug_log_path = /tmp/dovecot.log first_valid_uid = 1000 log_path = /var/log/dovecot.log mail_gid = vmail mail_location = maildir:/home/mail/%d/%n/Maildir mail_plugins = notify replication quota mail_uid = vmail mbox_write_locks = fcntl mmap_disable = yes namespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = } passdb { driver = bsdauth } passdb { args = /etc/dovecot/dovecot.passwd driver = passwd-file } plugin { quota_grace = 10%% quota_rule = *:storage=2G quota_rule2 = Trash:storage=+200M quota_rule3 = SPAM:ignore quota_status_nouser = DUNNO quota_status_overquota = 552 5.2.2 Mailbox is full quota_status_success = DUNNO quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u } ssl_ca = /etc/ssl/certs/CA_Intermed_Lets_Encrypt.crt ssl_cert =
Re: How to use quota with dovecot
Hello,Thank you to both of you for your answers.I just use imap.I'm going to look at your examples and 15-lda.confHave a nice week Le Dimanche 9 avril 2017 17h44, chaouche yacine a écrit : On Saturday, April 8, 2017 9:47 AM, Mik J wrote: > Then commented out in 90-quota.conf > >quota_rule = *:storage=1G > >quota_rule2 = Trash:storage=+100M > >quota_grace = 10%% > >} You also need to define what type of quota do you want, dict-based, maildir based, static (same quota for all)... Figure out what quota you want then add the missing "quota=" line. I configured maildir based quotas and the line looks like this on my config file : 90-quota.conf: quota = maildir:User quota This will create and maintain a maildirsize file in the maildirs. Of course, this doesn't work for mboxes. -- Yassine.
How to migration my mails from another server ?
Hello, I would like to host my mails and I would like to retrieve my existing mailbox content from my ISP My ISP == I don't have root access on the server The server seem to use Dovecot according to the banner. My machine == I have root access on the server I use Dovecot 2.2.21 I use Maildir I read this page multiple times but it's not clear to me https://wiki2.dovecot.org/Migration/Dsync "Set up configuration for the IMAP server you wish to migrate from" Is it my ISP's server or my server ? In which configuration file should I do this ? The same for this option dsync_features = empty-header-workaroundwhere is it supposed to be configured ? My most important case is quite "simple": the mailboxes (there are 2 or 3) I want to migrate don't exist on my machine, so there is no such problems as merge existing mails. Will this migration use imap and retrieve the content of the mails ? Will it use port 143 or 993 ? I'll use the backup option I have another case which there are mails on both servers. So I would like to keep existing mails on my machine. I'll use the sync -1 option ? Thank you
How to use quota with dovecot
Hello, I would like to use quotas with dovecot and things are not clear to me. I read this page https://wiki2.dovecot.org/Quota 1) I did this # ls /usr/local/lib/dovecot/lib10_quota_plugin.so /usr/local/lib/dovecot/lib10_quota_plugin.so # grep mail_plugins /etc/dovecot/conf.d/10-mail.conf mail_plugins = notify replication quota Then the page tells about 20-imap.conf but an explanation is written # Space separated list of plugins to load (default is global mail_plugins). So what is that default global mail_plugins ? Is it the one coming from 10-mail.conf ? 2) I tried both use this mail_plugins = $mail_plugins quota in 20-imap.conf or comment it. And restarted dovecot each time Then commented out in 90-quota.conf quota_rule = *:storage=1G quota_rule2 = Trash:storage=+100M quota_grace = 10%% } But I have this message # doveadm quota recalc -u u...@mydomain.org doveadm(u...@mydomain.org): Error: Quota not enabled Does anyone knows why ?
Re: [Dovecot] Dovecot configuration and question about IP trusted
> De : Bob Miller > Hi Mik, > >> >> Also how do you understand this sentence >> "# Don't use mmap() at all. This is required if you store indexes > to shared >> # filesystems (NFS or clustered filesystem) or for some operating systems >> # which use a separate cache for mmap, such as OpenBSD. >> mmap_disable = yes" >> I've read it 10 times, and I don't know if this should be set to > yes or no (probably because my english is not perfect). >> My operating system is OpenBSD and I don't share NFS or cluster > filesystems. > > Well, your english is monumentally better than my second language (if > you could even say I have one), so good on you... > > I interpret this sentence as an if statement: > > if [[ (using NFS||Cluster) == true || (using OS w separate cache for > mmap, such as OpenBSD) == true ]]; then > setting is required (set to yes/true) > fi Thank you for your answers. Have a nice week end
Re: [Dovecot] Dovecot configuration and question about IP trusted
> De : Bob Miller > > Hi, >> I'm trying to tighten the security a little bit and added in dovecot.conf > >> login_trusted_networks = 192.168.1.0/30 >> Then restarted Dovecot >> >> >> My client has the IP 192.168.1.20 and it's still able to retrieve > emails. I expected it to be forbidden. Am I missing something ? > > My interpretation of the documentation indicates that the trusted > network setting causes certain authentication and security checks to be > bypassed if a computer is in the trusted network, and to not bypass > those authentication and security checks if the computer is not in the > trusted range. I see nothing indicating this setting will "forbid" > anything... > >> I feel that Dovecot is slow. I'm doing my test with my iphone as an > imap client. >> Test 1: I retrieve a mail on a remote server provided by a hosting company, > it takes 2 seconds >> Test 2: I retrieve a mail on my server which is on my LAN, the mail > includes a few letters in the subject and a few letters in the body. The > action > takes about 8 seconds. >> It's quite subtule to measure so first I would like to know if Dovecot > tries to do a dns reverse lookup or something like that. And it would explain > the overhead. > > I don't know about the reverse lookup, but this sounds like a caching > issue to me. http://wiki2.dovecot.org/IndexFiles Hello Bob, Thank you for this clarification about the parameter login_trusted_networks. Regarding the indexfiles, I've read the page but I don't see at any moment, how to enable or disable the indexes. Also how do you understand this sentence "# Don't use mmap() at all. This is required if you store indexes to shared # filesystems (NFS or clustered filesystem) or for some operating systems # which use a separate cache for mmap, such as OpenBSD. mmap_disable = yes" I've read it 10 times, and I don't know if this should be set to yes or no (probably because my english is not perfect). My operating system is OpenBSD and I don't share NFS or cluster filesystems. Thank you
[Dovecot] Dovecot configuration and question about IP trusted
Hello list, I've just finished to install Dovecot and things seems to work so far. After some little efforts though. My version is 2.0.20 Question 1: I'm trying to tighten the security a little bit and added in dovecot.conf login_trusted_networks = 192.168.1.0/30 Then restarted Dovecot My client has the IP 192.168.1.20 and it's still able to retrieve emails. I expected it to be forbidden. Am I missing something ? # dovecot -n | grep trust login_trusted_networks = 192.168.1.0/30 Question 2: I feel that Dovecot is slow. I'm doing my test with my iphone as an imap client. Test 1: I retrieve a mail on a remote server provided by a hosting company, it takes 2 seconds Test 2: I retrieve a mail on my server which is on my LAN, the mail includes a few letters in the subject and a few letters in the body. The action takes about 8 seconds. It's quite subtule to measure so first I would like to know if Dovecot tries to do a dns reverse lookup or something like that. And it would explain the overhead. Thank you