Re: Dovecot 2.2.22 - doveadm via socket not working
On 22.03.2016 01:33, Andreas Jobs wrote: Hello, (my) doveadm is no longer working if I use the -S socket_path. # doveadm quota get -S mbx7:542 -u myaccount doveadm(myaccount): Error: doveadm server disconnected before handshake: EOF doveadm(myaccount): Error: mbx7:542: Command quota get failed for jobsanzl: EOF Quota name Type Value Limit% The server logs: Mar 22 00:29:47 doveadm(134.147.53.150): Fatal: USER environment is missing and -u option not used Mar 22 00:29:47 doveadm(134.147.53.150): Fatal: master: service(doveadm): child 31599 returned error 64 Any hints? --Andreas Hi! I can confirm this bug exists, I'll take a look. Aki
Re: sieve - editheader - edit in place
Hello, Am 21.03.2016 um 17:57 schrieb Stephan Bosch: Op 21-3-2016 om 10:24 schreef Hajo Locke: Hello, i do some tests with sieve editheader extensions. deleteheader and addheader are working, but i noticed that new headerlines are always prepended to current header. They can also be appended with ":last". So new lines can be found always on top. I am looking for a possibility to edit a headerline in place, without moving the new line to top of stack(replaceheader?). It is not looking good if a Subject-Line suddenly moves to top of header. Things not looking good in the header is not really a good reason for wanting this, is it? :) I do understand the sentiment, though. yeah, an ordinary mailheader with lines in "natural" order looks best. Is there a possibility for me? Well, the editheader extension was born with a replaceheader command: https://tools.ietf.org/html/draft-degener-sieve-editheader-00 I think replaceheader was designed as shortcut for deleteheader->addheader. so there was no additional value. http://www.ietf.org/mail-archive/web/sieve/current/msg02977.html replacing without losing position would be nice. But it was quickly removed after the first draft. I am not sure why. So, there is currently no standard way to achieve this. I could create a "vnd.dovecot.replaceheader" extension to reinstate it, but no GUI would use it. Is anyone else longing for this ability? i hope more people would like this. if not, i would have sympathy for not implementing this. Regards, Stephan. Thanks, Hajo
Upgrade Dovecot from 2.1.17 to 2.2.13 lmtp child killed with signal 6
After upgrade Debian (Wheezy to Jessie) Dovecot version 2.1.17 is upgraded to 2.2.13. I have random crash of lmtp-a and I got lot message in queue. Any solution for this problem? -- Postqueue -- 7A5B77F72B 1160457 Tue Mar 22 10:10:15 i...@jurisic.org (delivery temporarily suspended: lost connection with mail.jurisic.org[private/dovecot-lmtp] while sending end of data -- message may be sent more than once) ante.starce...@gmail.com -- Log file -- Mar 22 10:10:15 lmtp(23497, i...@jurisic.org): Panic: file fs-api.c: line 615 (fs_copy): assertion failed: (src->fs == dest->fs) Mar 22 10:10:15 lmtp(23497, i...@jurisic.org): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0(+0x6b6fe) [0x7f7647a8b6fe] -> /usr/lib/dovecot/libdovecot.so.0(+0x6b7ec) [0x7f7647a8b7ec] -> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f7647a428fb] -> /usr/lib/dovecot/libdovecot.so.0(fs_copy+0x90) [0x7f7647a4c4a0] -> /usr/lib/dovecot/libdovecot-storage.so.0(sdbox_copy+0x4e0) [0x7f7647d3ec10] -> /usr/lib/dovecot/modules/lib10_quota_plugin.so(+0xbaab) [0x7f764726aaab] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_copy+0x7d) [0x7f7647d7b01d] -> /usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver_save+0x196) [0x7f76480229d6] -> /usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver+0xf3) [0x7f7648022e13] -> dovecot/lmtp(+0x6171) [0x7f7648452171] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x3f) [0x7f7647a9cd0f] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xf9) [0x7f7647a9dd09] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x9) [0x7f7647a9cd79] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) [0x7f7647a9cdf8] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) [0x7f7647a47dc3] -> dovecot/lmtp(main+0x165) [0x7f76484509b5] -> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f7647696b45] -> dovecot/lmtp(+0x4a95) [0x7f7648450a95] Mar 22 10:10:15 lmtp(23497, i...@jurisic.org): Fatal: master: service(lmtp): child 23497 killed with signal 6 (core dumps disabled) -- Dovecot configuration -- # 2.2.13: /etc/dovecot/dovecot.conf # OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.3 ext4 auth_mechanisms = plain login debug_log_path = /var/log/dovecot.debug default_client_limit = 1 default_process_limit = 1000 default_vsz_limit = 512 M dict { quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext } hostname = mail.jurisic.org info_log_path = /var/log/dovecot.info lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes listen = * log_path = /var/log/dovecot.log mail_attachment_dir = /var/mail/vhosts/%d/attachment mail_home = /var/mail/vhosts/%d/mail/%n mail_location = sdbox:/var/mail/vhosts/%d/mail/%n mail_plugins = " quota" mail_privileged_group = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave namespace inbox { inbox = yes location = mailbox Drafts { auto = subscribe special_use = \Drafts } mailbox Junk { auto = subscribe special_use = \Junk } mailbox Sent { auto = subscribe special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { auto = subscribe special_use = \Trash } prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { autocreate = Sent autocreate2 = Drafts autocreate3 = Junk autocreate4 = Trash autosubscribe = Sent autosubscribe2 = Drafts autosubscribe3 = Junk autosubscribe4 = Trash expire = Trash expire2 = Trash/* expire3 = Spam expire_dict = proxy::expire quota = dict:user::proxy::quota quota_rule = *:storage=102400 quota_warning = storage=75%% quota-warning 75 %u quota_warning2 = storage=90%% quota-warning 90 %u sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } postmaster_address = postmaster@%d protocols = " imap lmtp sieve pop3" service auth-worker { user = vmail } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0666 user = postfix } unix_listener auth-userdb { mode = 0600 user = vmail } user = dovecot } service dict { unix_listener dict { mode = 0660 user = vmail } } service imap-login { process_min_avail = 4 service_count = 0 vsz_limit = 512 M } service imap { vsz_limit = 512 M } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } service quota-warning { executable = script /opt/mail-old.sh unix_listener quota-warning { group = root mode = 0666 user = root } user = root } ssl = required ssl_cert =
Re: Upgrade Dovecot from 2.1.17 to 2.2.13 lmtp child killed with signal 6
On 22.03.2016 11:43, Ivan Jurišić wrote: > After upgrade Debian (Wheezy to Jessie) Dovecot version 2.1.17 is > upgraded to 2.2.13. > I have random crash of lmtp-a and I got lot message in queue. Any > solution for this problem? This looks like it is fixed by https://github.com/dovecot/core/commit/98449946caeaf8a3b413a0d93128315b158cbffb Please upgrade, if possible. br, Teemu Huovila > > -- Postqueue -- > > 7A5B77F72B 1160457 Tue Mar 22 10:10:15 i...@jurisic.org > (delivery temporarily suspended: lost connection with > mail.jurisic.org[private/dovecot-lmtp] while sending end of data -- > message may be sent more than once) > ante.starce...@gmail.com > > -- Log file -- > > Mar 22 10:10:15 lmtp(23497, i...@jurisic.org): Panic: file fs-api.c: > line 615 (fs_copy): assertion failed: (src->fs == dest->fs) > > Mar 22 10:10:15 lmtp(23497, i...@jurisic.org): Error: Raw backtrace: > /usr/lib/dovecot/libdovecot.so.0(+0x6b6fe) [0x7f7647a8b6fe] -> > /usr/lib/dovecot/libdovecot.so.0(+0x6b7ec) [0x7f7647a8b7ec] -> > /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f7647a428fb] -> > /usr/lib/dovecot/libdovecot.so.0(fs_copy+0x90) [0x7f7647a4c4a0] -> > /usr/lib/dovecot/libdovecot-storage.so.0(sdbox_copy+0x4e0) > [0x7f7647d3ec10] -> > /usr/lib/dovecot/modules/lib10_quota_plugin.so(+0xbaab) [0x7f764726aaab] > -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_copy+0x7d) > [0x7f7647d7b01d] -> > /usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver_save+0x196) > [0x7f76480229d6] -> > /usr/lib/dovecot/libdovecot-lda.so.0(mail_deliver+0xf3) [0x7f7648022e13] > -> dovecot/lmtp(+0x6171) [0x7f7648452171] -> > /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x3f) [0x7f7647a9cd0f] > -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run_internal+0xf9) > [0x7f7647a9dd09] -> > /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0x9) > [0x7f7647a9cd79] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x38) > [0x7f7647a9cdf8] -> > /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) > [0x7f7647a47dc3] -> dovecot/lmtp(main+0x165) [0x7f76484509b5] -> > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f7647696b45] > -> dovecot/lmtp(+0x4a95) [0x7f7648450a95] > > Mar 22 10:10:15 lmtp(23497, i...@jurisic.org): Fatal: master: > service(lmtp): child 23497 killed with signal 6 (core dumps disabled) > > -- Dovecot configuration -- > > # 2.2.13: /etc/dovecot/dovecot.conf > # OS: Linux 3.16.0-4-amd64 x86_64 Debian 8.3 ext4 > auth_mechanisms = plain login > debug_log_path = /var/log/dovecot.debug > default_client_limit = 1 > default_process_limit = 1000 > default_vsz_limit = 512 M > dict { > quota = pgsql:/etc/dovecot/dovecot-dict-sql.conf.ext > } > hostname = mail.jurisic.org > info_log_path = /var/log/dovecot.info > lda_mailbox_autocreate = yes > lda_mailbox_autosubscribe = yes > listen = * > log_path = /var/log/dovecot.log > mail_attachment_dir = /var/mail/vhosts/%d/attachment > mail_home = /var/mail/vhosts/%d/mail/%n > mail_location = sdbox:/var/mail/vhosts/%d/mail/%n > mail_plugins = " quota" > mail_privileged_group = vmail > managesieve_notify_capability = mailto > managesieve_sieve_capability = fileinto reject envelope > encoded-character vacation subaddress comparator-i;ascii-numeric > relational regex imap4flags copy include variables body enotify > environment mailbox date ihave > namespace inbox { > inbox = yes > location = > mailbox Drafts { > auto = subscribe > special_use = \Drafts > } > mailbox Junk { > auto = subscribe > special_use = \Junk > } > mailbox Sent { > auto = subscribe > special_use = \Sent > } > mailbox "Sent Messages" { > special_use = \Sent > } > mailbox Trash { > auto = subscribe > special_use = \Trash > } > prefix = > } > passdb { > args = /etc/dovecot/dovecot-sql.conf.ext > driver = sql > } > plugin { > autocreate = Sent > autocreate2 = Drafts > autocreate3 = Junk > autocreate4 = Trash > autosubscribe = Sent > autosubscribe2 = Drafts > autosubscribe3 = Junk > autosubscribe4 = Trash > expire = Trash > expire2 = Trash/* > expire3 = Spam > expire_dict = proxy::expire > quota = dict:user::proxy::quota > quota_rule = *:storage=102400 > quota_warning = storage=75%% quota-warning 75 %u > quota_warning2 = storage=90%% quota-warning 90 %u > sieve = ~/.dovecot.sieve > sieve_dir = ~/sieve > } > postmaster_address = postmaster@%d > protocols = " imap lmtp sieve pop3" > service auth-worker { > user = vmail > } > service auth { > unix_listener /var/spool/postfix/private/auth { > group = postfix > mode = 0666 > user = postfix > } > unix_listener auth-userdb { > mode = 0600 > user = vmail > } > user = dovecot > } > service dict { > unix_listener dict { > mode = 0660 > user = vmail > } > } > service imap-login { > process_min_avail = 4 > service_count = 0 > vsz_limi
Re: LMTP proxy does not pass RCPT TO: ... 5xx response back
Hi, Timo Sirainen (So 21 Feb 2016 02:57:55 CET): > The way it's commonly done in larger environments is that the over-quota is > already checked by the MTA and have it fail the RCPT TO. You can have Dovecot > update the over-quota flags via quota-warning scripts (and quota_over_script) > in whatever way and have the MTA look that up. Then in Dovecot LMTP you could > simply disable quota checks. The over-quota flag isn't supported on 2.2.9 (which is what Ubuntu 14.04 has). I tried the quota-status plugin. But it seems, this plugin tries to read the maildir directly. Doesn't help. Since I have a director/backend setup. Can't quota-status use the same interface doveadm quota uses? Unfortunenatly I didn't find further documentation, except the source itself. Best regards from Dresden/Germany Viele Grüße aus Dresden Heiko Schlittermann -- SCHLITTERMANN.de internet & unix support - Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} - gnupg encrypted messages are welcome --- key ID: F69376CE - ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 - signature.asc Description: Digital signature
protocols.d/ dir empty?
(I hope I'm doing this right) Hey there. I have a problem with the dovecot protocols. When I do /telnet 127.0.0.1 143/ it gives me a connection refused error. I looked in the wiki and then after trying /doveconf protocols listen /I realized that I don't have any protocols.//I went in //usr/share/dovecot/protocols.d/ and it's empty. How can I fix that?
Re: protocols.d/ dir empty?
On 2016-03-22 15:50, Kieran wrote: (I hope I'm doing this right) Hey there. I have a problem with the dovecot protocols. When I do /telnet 127.0.0.1 143/ it gives me a connection refused error. I bet dovecot is not running. I looked in the wiki and then after trying /doveconf protocols listen /I realized that I don't have any protocols.//I went in //usr/share/dovecot/protocols.d/ and it's empty. How can I fix that? That directory doesn't even exist on my system... Please provide output of doveconf -n. -- Christian Kivalo
Dovecot 2.2.21 change imap logout format (and broke my log parsing)
Hi, after upgrade to dovecot-2.2.21 the log of "imap logout" format changed from: Mar 1 03:40:44 pop01 dovecot: imap(i...@domain.com): Connection closed in=111 out=1522 session= to: Mar 3 03:48:11 pop01 dovecot: imap(i...@domain.com): Connection closed (IDLE running for 0.001 + waiting input for 2088.878 secs, 2 B in + 10+0 B out, state=wait-input) in=224 out=2834 session=<6XTzihst3uUFqB6m> Can "(IDLE running for 0.001 + waiting input for 2088.878 secs, 2 B in + 10+0 B out, state=wait-input)" removed from the log? My imap_logout_format is: imap_logout_format = in=%i out=%o session=<%{session}> Thanks -- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
Re: protocols.d/ dir empty?
Op 22-3-2016 om 15:50 schreef Kieran: (I hope I'm doing this right) Hey there. I have a problem with the dovecot protocols. When I do /telnet 127.0.0.1 143/ it gives me a connection refused error. I looked in the wiki and then after trying /doveconf protocols listen /I realized that I don't have any protocols.//I went in //usr/share/dovecot/protocols.d/ and it's empty. How can I fix that? That protocols directory is specific to Debian. Did you install the dovecot-imapd package? The question is similar for other protocols that you may want to use; each has its own binary package. Regards, Stephan.
multiple imapc settings in different namespaces
hello all i assume this question must have already been asked, but i'm looking for a way to circumvent which might work specifically on my system. the version can be any available version between 2.2.9 and 2.2.22 (i'm testing with both of the above and no other ) i'm using imapc in 2 different namespaces. in both cases, the imapc_host is local, and a custom passdb program is expected to handle proxying to different servers. one of the case should proxy to a different legacy platform, and the other is used for shared mailboxes. is there any way at all to be able to tell which is which in passdb ? i don't care about the password, i can use a login prefix or suffix, different ports, different master passwords, ssl, maybe a different protocol name or auth method... somehow i've seen in the source code there is a namespace "owner" but did not manage to change this parameter. i guess it is used internally. anything else ? thanks a lot for any help you can provide best regards @abi
Re: protocols.d/ dir empty?
# 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 4.1.13-v7+ armv7l Debian 7.9 auth_mechanisms = plain login disable_plaintext_auth = no listen = * mail_location = maildir:~/Maildir namespace { inbox = yes location = mailbox { special_use = \Drafts name = Drafts } mailbox { special_use = \Junk name = Junk } mailbox { special_use = \Sent name = Sent } mailbox { special_use = \Sent name = Sent Messages } mailbox { special_use = \Trash name = Trash } prefix = name = inbox } passdb { driver = pam } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } service replication-notify-fifo { name = aggregator } service anvil-auth-penalty { name = anvil } service auth-worker { name = auth-worker } service { unix_listener { group = postfix mode = 0660 user = postfix path = /var/spool/postfix/private/auth } name = auth } service config { name = config } service dict { name = dict } service login/proxy-notify { name = director } service dns-client { name = dns_client } service doveadm-server { name = doveadm } service { inet_listener { port = 143 name = imap } inet_listener { port = 993 ssl = yes name = imaps } name = imap-login } service login/imap { name = imap } service indexer-worker { name = indexer-worker } service indexer { name = indexer } service ipc { name = ipc } service lmtp { name = lmtp } service log-errors { name = log } service pop3 { name = pop3-login } service login/pop3 { name = pop3 } service replicator { name = replicator } service login/ssl-params { name = ssl-params } service stats-mail { name = stats } ssl_cert = On 2016-03-22 15:50, Kieran wrote: (I hope I'm doing this right) Hey there. I have a problem with the dovecot protocols. When I do /telnet 127.0.0.1 143/ it gives me a connection refused error. I bet dovecot is not running. I looked in the wiki and then after trying /doveconf protocols listen /I realized that I don't have any protocols.//I went in //usr/share/dovecot/protocols.d/ and it's empty. How can I fix that? That directory doesn't even exist on my system... Please provide output of doveconf -n.
Replication issues master <-> master nfs backend
I keep having some replication issues and not sure what can be done to resolve or correct. It does not seem to happen all the time, though for the last ~30 or so minutes and many messages seems to be happening consistent for me. I have 2 mail servers, basically clones, and thus master master replication. Most of the time things work fine. But many times an email or several will arrive on one, and never replicate to the other. I am not as concerned on the never replicating, as I am that the user never gets notified. Mail arrives on say server 1, users are checking mail on server 2, and they never see the email on server 2. This is not always the case, but its happening enough daily. I then log into one and run sync manually. Which usually syncs the mail on both servers, and then it arrives in the inbox. Here is an example, mail is on mail2, but not mail1. I am checking email on mail1 so I am not seeing the 1 email. Mail1 /home/wlt-ml/.maildir/new: total 0 Mail2 /home/wlt-ml/.maildir/new: total 12 -rw--- 1 wlt-ml site1 8502 Mar 22 14:57 1458673024.7643.mail2 Then I manually log into mail2 and run this command, though usually I can run it from either side, and just change the name to the other server. doveadm sync -u "*" remote:mail1 And then I end up with the missing email on mail1, and it arrives in my email client shortly there after Mail1 /home/wlt-ml/.maildir/new: total 12 -rw--- 1 wlt-ml site1 8502 Mar 22 14:57 1458673051.M838843P26735.mail1,S=8502,W=8678:2,T I have no idea why it does this. It seems to happen when when a full sync has taken place per doveadm replicator status wlt-ml. There does not seem to be any settings to force a full vs fast sync more often. No clue if this is even a full vs fast issue or other. I think it tends to happen more when people stay connected to the imap server. I had a theory that closing the email client and opening it again will get dovecot to sync. I believe this is still the case, but not able to confirm 100%. Also users are reporting closing Thunderbird. I can see them logging out and back in in the logs, but email does not replicate or show till I run doveadm sync manually. Tempted to have cron invoke that on the regular, but seems very hackish and likely will have its own issues doing that. Since its not the right way or how things were designed. Not sure if this is a bug or what. Hopefully miss-configuration on my end. Open to any feedback, advice, etc. I can provide replicator configuration but its pretty straight forward and mostly copy/paste from the replication page. Replication works, just seems it is not triggered to replicate at times or something. dovecot --version 2.2.22 (fe789d2) -- William L. Thomson Jr. Obsidian-Studios, Inc. http://www.obsidian-studios.com
Re: Allowing for multiple recipient_delimiter characters?
On Fri, Mar 18, 2016 at 5:58 PM, Aaron Lindsay wrote: > Postfix allows the recipient_delimiter configuration parameter to > contain multiple characters, splitting on the first such character it > encounters. For example, if using 'recipient_delimiter=+-' both > aaron+...@example.com and aaron-...@example.com would be delivered to > aa...@example.com. > > Is anyone opposed to changing dovecot's handling of > recipient_delimiter so that it's the same as that of postfix? If not, > I am willing to rebase/merge/address review comments on Lennart > Weller's patch[1] to get this functionality upstream. I didn't receive any opposition to my proposal, so I've created two github pull requests for discussion - one for dovecot and one for pigeonhole: https://github.com/dovecot/core/pull/4 https://github.com/dovecot/pigeonhole/pull/2 I've also attached the two patches for review here in case that is preferred. Please keep me in CC as I'm not subscribed to the list. Thanks! -Aaron 0001-subaddress-Support-multiple-recipient_delimiters.patch Description: application/download 0001-Support-multiple-recipient_delimiters.patch Description: application/download
plugin can't be loaded in imap proxy mode
When dovecot v2.2.21 work in IMAP proxy mode, plugin can not be loaded and work, so my question is: plugins do not work in proxy mode? Anyone can help me ? Thanks a lot.
RE: plugin can't be loaded in imap proxy mode
Hi, All I tested [last-login] plugin, when I directly logined by pam way, the last-login plugin can load and run, but when I logined by proxy way(Dovecot forward my imap request to another imap server), the last-login plugin did not load and run. Thanks From: Zhong, Xun Sent: Wednesday, March 23, 2016 11:47 AM To: 'dovecot@dovecot.org' Subject: plugin can't be loaded in imap proxy mode When dovecot v2.2.21 work in IMAP proxy mode, plugin can not be loaded and work, so my question is: plugins do not work in proxy mode? Anyone can help me ? Thanks a lot.