Re: Replication warnings

2014-11-24 Thread Oli Schacher
On Mon, 24 Nov 2014 09:37:27 +0100 Jan Behrend jbehr...@mpifr-bonn.mpg.de wrote: Hi list, I get these warnings quite frequently. Warning: Failed to do incremental sync for mailbox INBOX, retry with a full sync Is this something to worry about? Otherwise the replication works

Re: [Dovecot] restored mails

2014-01-15 Thread Oli Schacher
On Tue, 14 Jan 2014 19:00:27 + Wojciech Giel wojciech.g...@cimr.cam.ac.uk wrote: I am running dovecot 2.1 on debian wheezy . We are using maildir format. one of our uses deleted content of INBOX folder during xmass. he wants these messages back. I had these mail on tape. I have

[Dovecot] imap crash 2.2.9 hg

2013-12-05 Thread Oli Schacher
Hi Timo With dovecot built from the latest 2.2.9 hg (342f6962390e) we get imap crashes. This only affects one account which is used by multiple clients. The first few logins seem to work ok, but after a few seconds the log is flooded with Dec 5 13:43:10 team dovecot: imap-login: Login:

Re: [Dovecot] Is it safe to manipulate Maildir files directly?

2013-11-04 Thread Oli Schacher
On Mon, 4 Nov 2013 21:49:59 -0800 David Henkel-Wallace gu...@henkel-wallace.org wrote: Having the cron job find the messages and train spamassassin is no problem. The question is how to move the messages. Is it safe to simply rename the files from my cron job? [...] If I have to go

Re: [Dovecot] Replication: long detalys

2013-10-07 Thread Oli Schacher
On Mon, 07 Oct 2013 12:35:10 +0200 Lucas Rothamel - Eye Catching Webdesign i...@eye-catching-webdesign.de wrote: Hello everybody, I am running dovecot 2.1.7 on Debian Wheezy on two servers with replication set up This kind of setup is recommended on dovecot 2.2+ only.

Re: [Dovecot] Fileoperations in Maildir – problematic or okay?

2013-08-05 Thread Oli Schacher
On Mon, 5 Aug 2013 09:36:44 +0200 (CEST) Martin Burgraf martin...@web.de wrote: find ~/.maildir/.Sub1.Start/cur -mtime +5 -exec mv {} ~/.maildir/.Sub1.Start.old/cur \; ? instead of using find / mv you could use dovecot's 'doveadm' command to search/move/expunge messages see:

[Dovecot] Man page: LGPL Version

2013-06-09 Thread Oli Schacher
Hi Timo http://hg.dovecot.org/dovecot-2.2/rev/1f3f21081ee5 : man pages: Updated v2.1 - v2.2 dovecot.1.in now references a inexistent LGPLv2.2 instead of LGPLv2.1

[Dovecot] dsync Panic: Unknown key: send_mail_requests

2013-05-29 Thread Oli Schacher
Hi Timo With the current dovecot hg we're getting dsync replication errors Panic: Unknown key: send_mail_requests followed by a crash. This seems to have been introduced somewhere around http://hg.dovecot.org/dovecot-2.2/rev/4883a8e1db13 Log output from latest hg, 2.2.2 (e7c474011934+): May 29

Re: [Dovecot] doveadm search causes replication error message

2013-05-06 Thread Oli Schacher
On Mon, 6 May 2013 17:30:51 +0300 Timo Sirainen t...@iki.fi wrote: Not related to replication, but yeah, probably better to just ignore nonexistent mailboxes. Changed in hg. ah, sorry, I thought Syncing mailbox meant dsync. Anyway, thanks for the fix! -- message transmitted on 100%

[Dovecot] doveadm search causes replication error message

2013-04-25 Thread Oli Schacher
Hi # 2.2.1 (83d83f55e5c2+) / dsync replicated setup I just noticed that 'doveadm search' apparently tries to replicate mailboxes and spits out errors if a mailbox in the search query is not found: #doveadm search -u u...@example.com mailbox Spamreport doveadm(u...@example.com): Error: Syncing

Re: [Dovecot] dovecot-2.2 Warning: autocreate plugin is deprecated, use mailbox { auto } setting instead

2013-04-16 Thread Oli Schacher
Am Wed, 17 Apr 2013 03:02:03 +0200 schrieb m...@netbsd.org (Emmanuel Dreyfus): Hi After upgrading to 2.2, I get this: Warning: autocreate plugin is deprecated, use mailbox { auto } setting instead I found no documentation on mailbox { auto }. Where should it go in the config file?

Re: [Dovecot] v2.2.rc7 released

2013-04-11 Thread Oli Schacher
On Wed, 10 Apr 2013 23:46:36 +0300 Timo Sirainen t...@iki.fi wrote: OK, still not quite v2.2.0, but now it's definitely very close. :) Looking forward to the release, thank you! * Running dsync no longer triggers quota warnings. Not sure if you saw my last post about this change.. it

Re: [Dovecot] v2.2.rc7 released

2013-04-11 Thread Oli Schacher
On Thu, 11 Apr 2013 08:06:58 +0200 Oli Schacher dove...@lists.wgwh.ch wrote: Error in sys.excepthook: ... and after the first coffee I realize the error is generated by our python quota script and not by dovecot. I wonder why this only showed up since this change... sorry for the noise

Re: [Dovecot] v2.2.rc7 released

2013-04-11 Thread Oli Schacher
On Thu, 11 Apr 2013 12:22:50 +0300 Timo Sirainen t...@iki.fi wrote: Those errors come from your script. I don't see anything in the quota warning change that could have changed a behavior in your script. Maybe your script changed also around the same time? yeah, sorry. there was indeed a

Re: [Dovecot] v2.2.rc6 released

2013-04-08 Thread Oli Schacher
Hi Timo In my dsync replication test setup I now get Permission denied errors: Apr 8 10:04:33 fumailsynctest2 dovecot: dsync-remote(munged): Error: net_connect_unix(/var/run/dovecot/replicator-doveadm) failed: Permission denied I haven't noticed them before rc6. Bug or something wrong with my

[Dovecot] dsync replication: quota counted twice

2013-04-08 Thread Oli Schacher
Hi I enabled quota + warnings in my replication test setup and now whenever a mail gets delivered the quota is counted twice (probably due to both servers using the same mysql quota backend) and quota warnings are fired too early. After a doveadm quota recalc -u username the quota is correct

Re: [Dovecot] dsync replication: quota counted twice

2013-04-08 Thread Oli Schacher
On Mon, 8 Apr 2013 13:15:54 +0300 Timo Sirainen t...@iki.fi wrote: There's no way to make quota work reliably that way. You need to use different quota backends. Either two mysql databases (or tables), or the other Dovecot could simply be using a dict file quota. ok, thanks for the

Re: [Dovecot] dsync replication: quota counted twice

2013-04-08 Thread Oli Schacher
On Mon, 8 Apr 2013 15:14:18 +0300 Timo Sirainen t...@iki.fi wrote: ok, thanks for the clarification. Using two different tables does the trick. I'll probably also have to disable the quota-warning scripts on one of the servers. Currently, both servers run the script when a account goes

Re: [Dovecot] dovecot v-2.0, postfix+mysql configuration issue.

2013-03-28 Thread Oli Schacher
On Thu, 28 Mar 2013 11:48:42 +0530 Vimuth vimu...@gmail.com wrote: Mar 26 07:00:44 box1 dovecot: auth: Error: sql(vim...@mydomain.rock): User query failed: Table 'mailserver.users' doesn't exist (using built-in default user_query: SELECT home, uid, gid FROM users WHERE username = '%n' AND

[Dovecot] dsync replication: assertion failed: (ibc-value_input == NULL)

2013-03-25 Thread Oli Schacher
current hg (33e78edac8f5) Mar 25 07:47:27 fumailsynctest2 dovecot: dsync-remote(munged): Panic: file dsync-ibc-stream.c: line 527 (dsync_ibc_stream_input_next): assertion failed: (ibc-value_input == NULL) Mar 25 07:47:27 fumailsynctest2 dovecot: dsync-remote(munged): Error: Raw backtrace:

[Dovecot] How do I enable dsync sieve script replication?

2013-03-22 Thread Oli Schacher
Hi all, Thank you Timo for adding sieve script replication to dsync, much appreciated! Should this run out of the box with 2.2.rc3 and latest pigeonhole+patch or does this have to be enabled in the configuration somehow? I upgraded my dsync replication test setup, but it doesn't sync sieve so

Re: [Dovecot] dsync-remote(): Error: doveadm client: No command given

2013-03-04 Thread Oli Schacher
On Mon, 4 Mar 2013 17:03:47 +0400 Aleksey Tsvetkov tsvetkov...@grandvision.ru wrote: I test dsync through tcp. In a log error: dsync-remote (): Error: doveadm client: No command given All are synchronized. The error is shown by rand for the user and on that server where it is synchronized

[Dovecot] Best practice for sieve script synchronization

2013-02-28 Thread Oli Schacher
We consider deploying a two server active-active setup with dsync replication for ~2500 users. I was wondering how people handle sieve script synchronization in such setups. We came up with a few options for syncing: 1) rsync/unison ~/sieve every x seconds 2) move sieve dirs to

Re: [Dovecot] Best practice for sieve script synchronization

2013-02-28 Thread Oli Schacher
On Thu, 28 Feb 2013 10:09:50 +0100 Robert Schetterer r...@sys4.de wrote: depending on your setup, use sieve with sql http://hg.rename-it.nl/dovecot-2.1-pigeonhole/file/e9ed5d5cef4b/doc/script-location-dict.txt we have tried that (see 4) in my post) - have you managed to get it working with

Re: [Dovecot] Best practice for sieve script synchronization

2013-02-28 Thread Oli Schacher
On Thu, 28 Feb 2013 15:07:02 +0100 Timo Sirainen t...@iki.fi wrote: Looks like I'm going to need to add ACL syncing to dsync very soon, so might as well add Sieve script syncing since it's somewhat similar.. That would be very nice! Is your amazon wishlist at

Re: [Dovecot] dsync replication errors

2013-02-16 Thread Oli Schacher
On Sat, 16 Feb 2013 17:20:22 +0200 Timo Sirainen t...@iki.fi wrote: I did a bunch of dsync fixes today in hg. With the new locking behavior (and other fixes) you shouldn't be able to break it anymore. Thanks for the fixes, Timo! I can confirm I'm no longer able to break anything with the

[Dovecot] dovecot 2.2: doveadm-server crash in latest hg

2013-02-11 Thread Oli Schacher
Hi Timo With the current hg (ed5fa76f0dc7), I get a crash as soon as I append a single message to a dsync replicated mailbox. Setup is the same as in the thread dsync replication errors ( http://www.dovecot.org/list/dovecot/2013-January/070574.html ) Feb 11 15:01:19 doco1 dovecot: imap-login:

Re: [Dovecot] dsync replication errors

2013-02-01 Thread Oli Schacher
On Thu, 31 Jan 2013 22:17:28 +0200 Timo Sirainen t...@iki.fi wrote: On Thu, 2013-01-31 at 21:51 +0200, Timo Sirainen wrote: On 31.1.2013, at 19.41, Oli Schacher dove...@lists.wgwh.ch wrote: Jan 31 17:13:11 doco1 dovecot: dsync-local(user1): Error: Mailbox INBOX: Remote didn't send

[Dovecot] dsync replication errors

2013-01-31 Thread Oli Schacher
Hi I'm trying to build a cluster of two servers with dsync replication (based on http://wiki2.dovecot.org/Replication). My test setup works fine for very simple tests, I can log in to both servers, copy a message to one of the servers and it successfully apperars in the other account. But, if I

Re: [Dovecot] dsync replication errors

2013-01-31 Thread Oli Schacher
a) Use mdbox format instead of maildir. It works better with dsync. ok, I'll try that (although I was hoping I could avoid migrating all boxes on the server I was planning to use this feature) b) Switch to v2.2 (latest hg version). It has a rewritte dsync that works better. the

Re: [Dovecot] dsync replication errors

2013-01-31 Thread Oli Schacher
On Thu, 31 Jan 2013 14:27:08 +0200 Timo Sirainen t...@iki.fi wrote: Oh. But it's still beta1. There are several fixes done to dsync since beta1, including a fix for these maildir errors. I should release beta2 or maybe rc1 soon. hmm.. actually I think I built it from the latest hg (but I

Re: [Dovecot] dsync replication errors

2013-01-31 Thread Oli Schacher
On Thu, 31 Jan 2013 15:24:06 +0200 Timo Sirainen t...@iki.fi wrote: On 31.1.2013, at 15.10, Oli Schacher dove...@lists.wgwh.ch wrote: connect thunderbird to account user1 on server1 result: login ok, mdbox visible on disk, 0 messages in thunderbird copy exactly 100 messages from

Re: [Dovecot] dsync replication errors

2013-01-31 Thread Oli Schacher
On Thu, 31 Jan 2013 17:09:20 +0200 Timo Sirainen t...@iki.fi wrote: See if http://hg.dovecot.org/dovecot-2.2/rev/1d88f01ba2aa helps? I updated to the latest hg, including the remote cmd exit wait update. It looks better now, but I still manage to break things :-) # test 1:

Re: [Dovecot] dsync replication errors

2013-01-31 Thread Oli Schacher
On Thu, 31 Jan 2013 18:49:18 +0200 Timo Sirainen t...@iki.fi wrote: http://hg.dovecot.org/dovecot-2.2/rev/86629f621fe4 should fix this crash. The duplication happens because maildir somehow messes up itself. I guess I should look into it. thanks, much appreciated! test 3: mdbox

[Dovecot] 2.1.10 imapc assert crash report

2012-09-24 Thread Oli Schacher
Hi Timo I have a simple imapc gmail proxy test setup which works fine on 2.1.9, but crashes on 2.1.10 # 2.1.10: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 3.4.7-1-ARCH x86_64 auth_mechanisms = plain login imapc_host = imap.gmail.com imapc_port = 993 imapc_ssl = imaps imapc_ssl_ca_dir =

Re: [Dovecot] restore lost emails

2011-06-06 Thread Oli Schacher
On Mon, 6 Jun 2011 19:29:38 -0700 (PDT) Daminto Lie dli...@yahoo.com.au wrote: OK, but if I want to restore a particular mail from backups, what're the steps involved? What I mean is do I just copy and paste that mail file from backups to the user account maildir folder and what program

Re: [Dovecot] help with dovecot installation dependencies

2011-02-15 Thread Oli Schacher
On Tue, 15 Feb 2011 20:53:07 +0800 sunhux G sun...@gmail.com wrote: Thanks very much Will get the RHES 4 packages tomorrow as not in office now. Just hope they can be rpm installed right away without compiling. yes, they are already compiled Can the 2.0 RHEL5 packages run on RHEL

Re: [Dovecot] Dovecot can't start with error pop3-login imap-login not supported protocol family

2011-02-15 Thread Oli Schacher
On Wed, 16 Feb 2011 12:01:43 +0800 sunhux G sun...@gmail.com wrote: [root@]# init.d/dovecot start Starting Dovecot Imap: Error: socket() failed: Address family not supported by protocol Error: service(pop3-login): listen(::, 110) failed: Address family not supported by protocol Error:

Re: [Dovecot] Separate access to different folders of the same mailbox?

2011-02-09 Thread Oli Schacher
On Thu, 10 Feb 2011 09:15:18 +0200 Alexander Chekalin acheka...@lazurit.com wrote: in my company we have a mailbox that holds a copy of every message that our SMTP processed. While it eats a lot of space, it saved us several times when, you may imaging, user suddenly deleted the most

Re: [Dovecot] RHEL5/CentOS5 YUM repo, rpm, or spec file for 2.0?

2010-10-25 Thread Oli Schacher
Anyone know of a YUM repo. RPM or spec file for Dovecot 2.0 and friends? http://packages.atrpms.net/dist/el5/dovecot/ I haven't tried the 2.0 rpms yet, but we were very happy with the 1.0/1.1/1.2 packages on centos

Re: [Dovecot] Migrating domain with diferent default_pass_scheme

2010-05-03 Thread Oli Schacher
Hi Emilio For this purpose we used dovecot proxy mysql with a view that would prepend the pass scheme depending on if an account is already migrated (pointing to old or new IP): create or replace view v_proxy as concat(if(proxyhost='ip of new server','{MD5}','{PLAIN}'),old or new password) as

Re: [Dovecot] Master user and proxying

2010-01-29 Thread Oli Schacher
[ID 583609 mail.info] auth(default): passdb(pierre,127.0.0.1,master): Master user logging in as acco...@test.fr*pierre sounds like your proxy tries to login to destination as acco...@test.fr*pierre*pierre . Which of those two sql statements did u use for this log? '%u*pierre' as destuser or

[Dovecot] Managesieve and Dovecot from ATRPM - Still no luck

2010-01-05 Thread Oli Schacher
Hi list I'm still trying to get managesieve running on centos x64 with the packages from atrpm. I used the 1.2.9 rpms (also rebuilt with the lastet managesieve patches) but I'm always getting the same error when trying to compile managesieve: ./configure --with-dovecot=/usr/lib64/dovecot/

Re: [Dovecot] Managesieve and Dovecot from ATRPM - Still no luck

2010-01-05 Thread Oli Schacher
So, to resolve your situation point --with-dovecot= to a compiled Dovecot source tree as explained in the INSTALL/README file. That was it! I finally got it running by pointing configure to the rpm build dir instead of /usr/lib64/dovecot. I'm also happy to see that Angel is building atrpm

Re: [Dovecot] Sieve Plugin Help

2009-12-16 Thread Oli Schacher
I don't see anything here mentioning Sieve. Does this mean that Sieve is not enabled in this build? Sieve works fine with your atrpm package, but you need the devel package as well to compile it. See my previous post for a quick how-to

Re: [Dovecot] Sieve Plugin Help

2009-12-16 Thread Oli Schacher
Asai wrote: Thanks, Oli. So, what about the ATrpms Dovecot-Sieve plugin? http://atrpms.net/dist/el5/dovecot-sieve/ Is this different? AFAIK this is the CMU Sieve (Cyrus) plugin for dovecot 1.1. I don't think there are atrpm packages for the dovecot sieve version.

[Dovecot] Managesieve RC with dovecot 1.2.8 from atrpm

2009-12-01 Thread Oli Schacher
Hi list I'm trying to get managesieve running (which seem to include the managesieve patches) on centos5, but compilation fails. What I did: mkdir /work cd /work wget http://dl.atrpms.net/all/dovecot-devel-1.2.8-0_103.el5.x86_64.rpm wget http://dl.atrpms.net/all/dovecot-1.2.8-0_103.el5.x86_64.rpm

[Dovecot] Sieve compilation error

2009-11-19 Thread Oli Schacher
Hi list Trying to get sieve for 1.2 running (dovecot sieve, not cmusieve) I'm running on centos 5.4 64bit, dovecot rpms installed from http://atrpms.net/dist/el5/dovecot/ ( dovecot-1.2.7-0_102.el5.x86_64.rpm and dovecot-devel-1.2.7-0_102.el5.x86_64.rpm ) I pulled the sieve sources ( hg clone

Re: [Dovecot] Sieve compilation error

2009-11-19 Thread Oli Schacher
Stephan Bosch schrieb: --with-dovecot points to the directory containing the dovecot-config file. In the default dovecot makefile this is installed in $prefix/lib/dovecot. In your case it is apparently installed in the include/dovecot directory which confuses Sieve's configure script,

Re: [Dovecot] Berlin talk - video or audio available?

2009-07-30 Thread Oli Schacher
James Brown schrieb: Thanks Timo for putting up the .pdf and .ppt files for your talk at www.dovecot.org/talks. Is there a video or audio file of it? Thanks, James. Most talks where recorded and according to heinlein support will be put online when they are done editing.

[Dovecot] Resync quota to mysql script

2009-06-09 Thread Oli Schacher
I changed some quota options in my dovecot config (eg. excluded folders) but afaik this only affects new mail and there is no magic command to recalculate the quota (or is there?). So I wrote this little python script to do this, maybe someone finds it useful. It can output the sql statements

Re: [Dovecot] Resync quota to mysql script

2009-06-09 Thread Oli Schacher
Well, you can delete the user's quota row from SQL and it will get recalculated later. And if you want to force the recalculation immediately, you can log in as the user and issue GETQUOTAROOT INBOX command. Ah, I didn't know this does a full recalculation. Thanks for the hint!

[Dovecot] 1.2rc2: setacl crash

2009-04-04 Thread Oli Schacher
Hi By playing around with imap acl I managed to get another crash. Setup is the same as in my last crash report (1.2 beta4, crash with ACL), except updated from beta4 to rc2 and added the slash to the prefix, as suggested by Timo: prefix: shared/%%d/%%n/ What I did: logged in as sales 2 setacl

[Dovecot] 1.2 beta4, crash with ACL

2009-04-03 Thread Oli Schacher
Hi I'm betatesting the new acl features in dovecot 1.2. System: Centos 5.2, dovecot 1.2beta4 built with the spec file from http://dl.atrpms.net/all/dovecot.spec I set up two accounts (sa...@domain, o...@domain), I could access them both without problems (testing with Thunderbird) Then I tried

Re: [Dovecot] Auth Issues - Urgent - Help!

2008-10-08 Thread Oli Schacher
David Cunningham schrieb: I have about 5 Thousand users using horde that login ever 1-5 minutes to refresh their page. Imapproxy can be configured to cache connections only for a defined amount of time, eg. close connections not used for more than a few minutes. Setting is

Re: [Dovecot] Unknown dict module: mysql

2008-10-03 Thread Oli Schacher
Oct 1 10:52:15 inet2 dovecot: dict: Unknown dict module: mysql Oct 1 10:52:15 inet2 dovecot: dict: Failed to initialize dictionary 'quotadict' Problem seems to be related to dovecot 1.1.3 . 1.1.2 works fine with the same configuration. Am I missing a config change between those versions?

[Dovecot] Unknown dict module: mysql

2008-10-01 Thread Oli Schacher
Hi I'm trying to set up the dict/expiry plugins, but the dict server always tells me it can't find the modules although they should be there and compiled in. System is: Centos 5.2 64 bit, Using rpm from http://atrpms.net/dist/el5/dovecot/ dovecot --version 1.1.3 Relevant config: dict {