Re: Problem With Quota Dovecot
Hi Dears, I believe i found one error in my configuration: In 90-quota.conf i have this content : plugin { quota = dict:User quota::file:MAILDIR/%n/dovecot-quota quota_rule = *:storage=2GB } and in archive dovecot-quota i have : priv/quota/messages 18727 priv/quota/storage 7008147397 I read some docs and i in my dovecot.conf i not found some thing look like this : dict { quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext } 1 Is my thinking right? Should I really have a block like this in the dovecot.conf file for the quota to work correctly? 2- When i to create the archive /etc/dovecot/dovecot-dict-sql.conf.ext i need changes dovecot-quota for quota works fine ? Thanks a Lot Marcelo On Fri, 6 Dec 2019 at 18:52, Gter Marcelo wrote: > >> Are you using LDA/LMTP to deliver messages to the inbox? > Not use LDA in dovecot, i'm running Dovecot with protocols imap pop3 lmtp > > One thing, curious in accounts with problem with quota : > > i deleting dovecot index and ran one force-resync and him crashed and > return segmentation fault > > I thought the same could happen with the quota, leaving the count > incomplete > > This is just a possibility that I think might be > > Thanks a Lot > Marcelo > > On Fri, 6 Dec 2019 at 08:39, Alex JOST via dovecot > wrote: > >> Am 05.12.2019 um 14:51 schrieb Gter Marcelo via dovecot: >> > Hi Dear, >> > >> > I running the command bellow and quota fix for some hours, but after 4 >> ou 5 >> > hours de quota back return the % wrong. >> > >> > Same after 100% the size in MAILDIR quota return 45% used only again. >> >> Are you using LDA/LMTP to deliver messages to the inbox? >> >> -- >> Alex JOST >> >
Re: Problem With Quota Dovecot
>> Are you using LDA/LMTP to deliver messages to the inbox? Not use LDA in dovecot, i'm running Dovecot with protocols imap pop3 lmtp One thing, curious in accounts with problem with quota : i deleting dovecot index and ran one force-resync and him crashed and return segmentation fault I thought the same could happen with the quota, leaving the count incomplete This is just a possibility that I think might be Thanks a Lot Marcelo On Fri, 6 Dec 2019 at 08:39, Alex JOST via dovecot wrote: > Am 05.12.2019 um 14:51 schrieb Gter Marcelo via dovecot: > > Hi Dear, > > > > I running the command bellow and quota fix for some hours, but after 4 > ou 5 > > hours de quota back return the % wrong. > > > > Same after 100% the size in MAILDIR quota return 45% used only again. > > Are you using LDA/LMTP to deliver messages to the inbox? > > -- > Alex JOST >
Re: Problem With Quota Dovecot
Hi Dear, I running the command bellow and quota fix for some hours, but after 4 ou 5 hours de quota back return the % wrong. Same after 100% the size in MAILDIR quota return 45% used only again. doveadm deduplicate -u USERMAIL mailbox INBOX all Someone can help Me? Thanks a lot Marcelo On Mon, 2 Dec 2019 at 17:52, Gter Marcelo wrote: > Hi Dears, > > I have one problem with Dovecot in My mailserver. > > Dovecot Quota setting is not working fine. > > plugin { > quota = dict:User quota::file:MAILDIR/dovecot-quota > quota_rule = *:storage=1GB > } > > For example if i put the limit in 1GB, i have accounts in my mailbox with > size of maildir in 3gb,4gb for exemple and if i running the command > > doveadm quota get -u ACCOUNT_MY_USER > > The user with 2GB should be return 100% or some number bigger , but return > 45% used only, > > If i force running one force-resync, the quota-get return the size correct > showing more than 100% > > Someone can Help me ? >
Problem With Quota Dovecot
Hi Dears, I have one problem with Dovecot in My mailserver. Dovecot Quota setting is not working fine. plugin { quota = dict:User quota::file:MAILDIR/dovecot-quota quota_rule = *:storage=1GB } For example if i put the limit in 1GB, i have accounts in my mailbox with size of maildir in 3gb,4gb for exemple and if i running the command doveadm quota get -u ACCOUNT_MY_USER The user with 2GB should be return 100% or some number bigger , but return 45% used only, If i force running one force-resync, the quota-get return the size correct showing more than 100% Someone can Help me ?
Changes in sieve Dovecot 2.2
Hi People, I'm use dovecot in my mailbox system, until last month i used the dovecot version 2.0 and now i use version 2.2, version 2.2 works well for me, but i have one small problem, in sieve. In version 2.0 i had rules in sieve similiar to rule bellow: if allof (true){ keep; fileinto "INBOX"; redirect "xx"xx.com.br"; stop; } In the new version 2.2 this rules above, i have one problem duplicate messages in account from my clients, in paste INBOX, therefore, i changed rule to bellow ( with remove fileinto inbox) if allof (true){ keep; redirect "xx"xx.com.br"; stop; } Dovecot really changed your behavor, i did right to fix this ? Thanks a Lot, Marcelo
Re: v2.3.5.1 released
Hi, Why didn’t you apply this patch to v2.3.5.1? commit df8addd41d87e61113de22a21a0e61506a8d74c2 Author: Stephan Bosch Date: Tue Mar 12 03:18:33 2019 +0100 submission-login: client-authenticate - Fix crash occurring when client disconnects during authentication. diff --git a/src/submission-login/client-authenticate.c b/src/submission-login/client-authenticate.c index 8b5422f833..6b70701a1a 100644 --- a/src/submission-login/client-authenticate.c +++ b/src/submission-login/client-authenticate.c @@ -98,6 +98,9 @@ void submission_client_auth_result(struct client *client, container_of(client, struct submission_client, common); struct smtp_server_cmd_ctx *cmd = subm_client->pending_auth; + if (subm_client->conn == NULL) + return; + subm_client->pending_auth = NULL; i_assert(cmd != NULL); diff --git a/src/submission-login/client.c b/src/submission-login/client.c index 3e45e556c7..212afb92cf 100644 --- a/src/submission-login/client.c +++ b/src/submission-login/client.c @@ -212,6 +212,8 @@ static void client_connection_disconnect(void *context, const char *reason) { struct submission_client *client = context; + client->pending_auth = NULL; + client->pending_starttls = NULL; client_disconnect(>common, reason); } > On 28 Mar 2019, at 08:41, Aki Tuomi via dovecot wrote: > > https://dovecot.org/releases/2.3/dovecot-2.3.5.1.tar.gz > https://dovecot.org/releases/2.3/dovecot-2.3.5.1.tar.gz.sig > Binary packages in https://repo.dovecot.org/ > > * CVE-2019-7524: Missing input buffer size validation leads into > arbitrary buffer overflow when reading fts or pop3 uidl header > from Dovecot index. Exploiting this requires direct write access to > the index files. > > --- > Aki Tuomi > Open-Xchange oy >
submission-login: Fatal: master: service(submission-login):
Hi everyone! I’m using dovecot 2.3.5. submission-login is crashing many times in a day: Here is a sample error message: dovecot: submission-login: Fatal: master: service(submission-login): child 34247 killed with signal 11 (core not dumped - https://dovecot.org/bugreport.html#coredumps - set service submission-login { drop_priv_before_exec=yes }) After I added drop_priv_before_exec, I got these error messages: submission-login: Error: master-service: cannot get filters: net_connect_unix(/var/run/dovecot/config) failed: Permission denied dovecot: master: Error: service(submission-login): command startup failed, throttling for 2 secs How to get submission core dumps properly? Thank you. — Marcelo Coelho
imap-hibernate not working
Hi, I follow different setup instructions and I can't make imap-hibernate work. I've tried vmail and dovecot as users, tried to set mode to 0666, without success. I'm using FreeBSD 11.2. Is imap-hibernate compatible with FreeBSD 11.2? My operational system: # uname -v FreeBSD 11.2-RELEASE-p9 #0: Tue Feb 5 15:30:36 UTC 2019 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC Here are my logs: Mar 8 15:30:57 servername dovecot: imap(u...@domain.com:52.125.128.90): Error: kevent(-1) for notify remove failed: Bad file descriptor Mar 8 15:30:57 servername dovecot: imap(u...@domain.com:52.125.128.90): Error: close(-1) for notify remove failed: Bad file descriptor Mar 8 15:30:57 servername dovecot: imap-hibernate: Error: Failed to parse client input: Invalid peer_dev_minor value: 18446744073709486335 Mar 8 15:30:57 servername dovecot: imap(u...@domain.com:52.125.128.90): Error: /opt/dovecot/2.3.5/var/run/dovecot/imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value: 18446744073709486335 Mar 8 15:30:57 servername dovecot: imap: Error: Here are my processes: # ps aux | grep imap dovenull 682640.0 0.0 12012 8292 - S10:15 0:00.06 imap-login: (imap-login) dovenull 682740.0 0.0 12012 8272 - S10:15 0:00.06 imap-login: (imap-login) dovenull 682750.0 0.0 12012 8356 - S10:15 0:00.11 imap-login: (imap-login) dovenull 682760.0 0.0 12012 8468 - S10:15 0:00.16 imap-login: (imap-login) dovenull 682770.0 0.0 12012 8328 - S10:15 0:00.09 imap-login: (imap-login) dovenull 682780.0 0.0 12012 8368 - S10:15 0:00.11 imap-login: (imap-login) dovenull 682790.0 0.0 12012 8272 - S10:15 0:00.05 imap-login: (imap-login) dovenull 682800.0 0.0 12012 8288 - S10:15 0:00.06 imap-login: (imap-login) dovenull 682810.0 0.0 12012 8316 - S10:15 0:00.08 imap-login: (imap-login) dovenull 682820.0 0.0 12012 8312 - S10:15 0:00.10 imap-login: (imap-login) dovenull 682830.0 0.0 12012 8356 - S10:15 0:00.14 imap-login: (imap-login) dovenull 682860.0 0.0 12012 8312 - S10:15 0:00.08 imap-login: (imap-login) dovenull 682870.0 0.0 14060 9024 - S10:15 0:01.31 imap-login: [0 pre-login + 2 TLS proxies] (imap-login) dovenull 682880.0 0.0 12012 8392 - S10:15 0:00.24 imap-login: [11.11.11.11 TLS proxy] (imap-login) dovenull 682890.0 0.0 14060 9116 - S10:15 0:01.75 imap-login: [11.11.11.11 TLS proxy] (imap-login) dovenull 682900.0 0.0 14060 9208 - S10:15 0:01.84 imap-login: [0 pre-login + 4 TLS proxies] (imap-login) nobody 684750.0 0.0 14404 6020 - I10:19 0:00.08 /usr/local/sbin/in.imapproxyd -f /usr/local/etc/imapproxyd.conf vmail761080.0 0.0 21612 17700 - S14:30 0:00.12 imap: [u...@domain.com 11.11.11.11 IDLE] (imap) vmail763320.0 0.0 21536 17612 - I14:41 0:00.16 imap: [u...@domain.com 11.11.11.11 IDLE] (imap) vmail771270.0 0.0 21516 17396 - S15:17 0:00.07 imap: [u...@domain.com 11.11.11.11] (imap) vmail771700.0 0.0 21516 17380 - I15:19 0:00.06 imap: [u...@domain.com 11.11.11.11] (imap) vmail774380.0 0.0 21516 17396 - S15:31 0:00.05 imap: [u...@domain.com 11.11.11.11] (imap) vmail775360.0 0.0 21548 17400 - S15:35 0:00.05 imap: [u...@domain.com 11.11.11.11 IDLE] (imap) vmail775390.0 0.0 21516 17256 - I15:35 0:00.03 imap: [u...@domain.com 11.11.11.11] (imap) vmail775940.0 0.08892 4760 - S15:38 0:00.01 imap-hibernate: [0 connections] (imap-hibernate) vmail776200.0 0.0 21516 17256 - I15:39 0:00.03 imap: [u...@domain.com 11.11.11.11] (imap) My build options: Install prefix . : /opt/dovecot/2.3.5 File offsets ... : 64bit I/O polling : kqueue I/O notifys : kqueue SSL : yes (OpenSSL) GSSAPI . : no passdbs : static passwd passwd-file pam checkpassword sql CFLAGS . : -std=gnu99 -O2 -pipe -fno-strict-aliasing -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wno-duplicate-decl-specifier -Wstrict-aliasing=2 : -shadow -bsdauth -sia -ldap -vpopmail userdbs : static prefetch passwd passwd-file checkpassword sql : -ldap -vpopmail SQL drivers : mysql : -pgsql -sqlite -cassandra Full text search : squat lucene : -solr Configure command: ./configure '--prefix=/opt/dovecot/2.3.5' --without-docs '--without-shadow' '--without-docs'
Suggestions for dovecot-submission (XCLIENT NAME attribute)
Hi, Currently, Dovecot Submission doesn't forward NAME attribute when XCLIENT is enable: Received: from server.example.org (localhost [1.2.3.4]) (Authenticated sender: t...@example.org) by localhost (Postfix) with ESMTPA id AA for ; Fri, 8 Mar 2019 12:28:02 Postfix adds a header with the sender IP address (1.2.3.4), but with localhost as hostname. It would be great if Dovecot Submission send NAME attribute, with the resolved hostname of the sender IP (ADDR attribute). Thank you! -- Marcelo Coelho
Re: [Dovecot] Sieve vacation not working
It only works without :addresses for me And even when getting this on confirmation the logs: Feb 24 09:03:52 localhost dovecot: lmtp(7895, a...@dum.li): yeIlOfjN61TXHgAA0J78UA: sieve: msgid=451bb443b8ad815c205a2cce07ac31aec0727c47@vm-atmail7: sent vacation response to a...@dum.li It wasn't working. This did the trick on CentOS 7 though: alternatives --set mta /usr/sbin/sendmail.exim Cheers
[Dovecot] Invitation to connect on LinkedIn
LinkedIn Marcelo Salhab Brogliato requested to add you as a connection on LinkedIn: -- Michael A., I'd like to add you to my professional network on LinkedIn. - Marcelo Salhab Accept invitation from Marcelo Salhab Brogliato http://www.linkedin.com/e/458g9e-gpoedy6h-6q/V7LnuFRIQXpYNGb2yum6IE4IQU3ZkPl/blk/I183713507_20/1BpC5vrmRLoRZcjkkZt5YCpnlOt3RApnhMpmdzgmhxrSNBszYMcBYTc3kPcjsPe359bPpOtAFBkBlAbPkUczcPczsNd3cLrCBxbOYWrSlI/EML_comm_afe/ View invitation from Marcelo Salhab Brogliato http://www.linkedin.com/e/458g9e-gpoedy6h-6q/V7LnuFRIQXpYNGb2yum6IE4IQU3ZkPl/blk/I183713507_20/30OnPsMdjcNdPcUckALqnpPbOYWrSlI/svi/ -- DID YOU KNOW that LinkedIn can find the answers to your most difficult questions? Post those vexing questions on LinkedIn Answers to tap into the knowledge of the world's foremost business experts: http://www.linkedin.com/e/458g9e-gpoedy6h-6q/ask/inv-23/ -- (c) 2011, LinkedIn Corporation
[Dovecot] CentOS 5 + selinux
I've just installed CentOS 5.5 and dovecot 2.0.7. Out of the box, it worked ok with local user accounts. Then I enable selinux and I could no loger login to imap server. I can deal with that via a local policy. But I found dovecot tried to open /etc/shadow: type=AVC msg=audit(1291490764.101:670): avc: denied { read } for pid=16130 comm=auth name=shadow dev=md2 ino=96335 scontext=user_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:shadow_t:s0 tclass=file type=AVC msg=audit(1291500097.318:818): avc: denied { getattr } for pid=17350 comm=auth path=/etc/shadow dev=md2 ino=95396 scontext=user_u:system_r:dovecot_t:s0 tcontext=system_u:object_r:shadow_t:s0 tclass=file even it is configured for pam passdb: # dovecot -n # 2.0.7: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-194.26.1.el5 x86_64 CentOS release 5.5 (Final) mbox_write_locks = fcntl passdb { driver = pam } ssl_cert = /etc/pki/dovecot/certs/dovecot.pem ssl_key = /etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd } I straced the process and it efectively tries to open /etc/shadow. I don't want to disable selinux but I'm not happy letting dovecot read my /etc/shadow. Is there a guide to selinux and dovecot? -- Marcelo ¿No será acaso que ésta vida moderna está teniendo más de moderna que de vida? (Mafalda)
[Dovecot] Smart boxes
Hi, I'm using dovecot as IMAP server. I access my mails trough Mail (Mac client), iPhone and webmail. In Mail I use a smartbox that shows all my unread messages, no matter where it is. I really want this feature at my iPhone, so I'm thinking about developing a plugin that will create the smart unread box and follow these rules: - Every new mail arrived, it will create a hard link to directory .smart.unread (in case of Maildir); - Every mark as unread, it will create a hard link; - Every mark as read, it will remove the hard link; - Every mail delete, it will remove all files with same inode. This way, a smartbox with all unread messages will be available into webmail, iPhone and every IMAP client. What do you think about it? Is there a simple way? If it is a cool feature, I'll develop it and post the plugin here. Regards, Marcelo
Re: [Dovecot] Broken system.
Hello, I am using ext3. I followed the advice or removing all the dovecot.* files in the account directory. That solved the problem. Cheers, Marcelo On 22/11/2007, Timo Sirainen [EMAIL PROTECTED] wrote: On Wed, 2007-11-21 at 10:06 -0300, Marcelo Iturbe wrote: So I did that, now the /cur folder only has 40,000 emails, but when I connect to the account via telnet, I still get the following: .. So even though there are only 40,000 emails in /cur, dovecot still thinks that there are 9756304 emails. What filesystem do you use? Dovecot should have noticed that change automatically. Updating cur/ directory's mtime (touch cur) should cause a resync, if it wasn't updated for some reason.
[Dovecot] Broken system.
Hello, I had an Inbox with 975,604 emails on ext3 filesystem. I keept getting dropped on the comand copy 1:2000 inbox2, the syslog gave me an error message indicating out of memory problems. This despite the fact that the server has 800MB of ram free. Anyways, I asked if I could manuanlly move the files at the filesystem level or if that would mess up dovecot (break the GUIDs etc). I was informed that dovecot does not use GUIDs and that I could go ahead and move the emails at the shell level. So I did that, now the /cur folder only has 40,000 emails, but when I connect to the account via telnet, I still get the following: telnet localhost 143 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. * OK Dovecot ready. 110 login somelameuser somelamepass 110 OK Logged in. 111 select inbox * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 975604 EXISTS * 0 RECENT * OK [UNSEEN 1] First unseen. * OK [UIDVALIDITY 118842] UIDs valid * OK [UIDNEXT 979500] Predicted next UID 111 OK [READ-WRITE] Select completed. So even though there are only 40,000 emails in /cur, dovecot still thinks that there are 9756304 emails. How can I fix this? Thanks Marcelo
Re: [Dovecot] Problems executing dovecot.
yes there is actually... Nov 20 04:13:27 postdam dovecot: imap-login: Login: user=noresponder, method=PLAIN, rip=201.238.214.202, lip=201.238.214.203 Nov 20 04:16:07 postdam dovecot: IMAP(noresponder): block_alloc(): Out of memory Nov 20 04:16:07 postdam dovecot: child 23174 (imap) returned error 83 (Out of memory) So the only thing that comes to mind... is moving the files by command line. Can a I just go ahead and create dot directories and move emails from one directory to another? or will that mess up the GUIDs? Thanks, Marcelo On 15/11/2007, Asheesh Laroia [EMAIL PROTECTED] wrote: On Thu, 15 Nov 2007, Marcelo Iturbe wrote: 112 copy 1:100 toBeProcessed Connection to host lost. I keep getting dropped... Does /var/log/syslog say anything interesting? -- Asheesh. -- Real Men don't make backups. They upload it via ftp and let the world mirror it. -- Linus Torvalds -- Marcelo Iturbe ■ CIO ■ Tigabytes Chile ■ Google Enterprise Partner T: 562 264 1044 ■ www.tigabytes.com
[Dovecot] Problems executing dovecot.
Hello, I am running OS: Ubuntu 6.06.1 LTS dovecot # 1.0.7 Beta Problem: I have all the email delivery set up with maildir. I currently have an account which has 297,261 emails in the Inbox. Here is a transcript of a telnet session with the server: * OK Dovecot ready. 110 login somelameuser lameuserspass 110 OK Logged in. 111 select inbox * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 297261 EXISTS * 149522 RECENT * OK [UNSEEN 1] First unseen. * OK [UIDVALIDITY 118842] UIDs valid * OK [UIDNEXT 301157] Predicted next UID 111 OK [READ-WRITE] Select completed. 112 copy 1:100 toBeProcessed Connection to host lost. I keep getting dropped... My original idea was to move the files via command prompt, but I wasn't sure if that was allowed, thought I might mess up the UIDs. How could I move the emails into other directories (folders) so that a regular IMAP conector can process the emails? Thanks for your help Marcelo -- Marcelo Iturbe ■ CIO ■ Tigabytes Chile ■ Google Enterprise Partner T: 562 264 1044 ■ www.tigabytes.com