Replication: "cross-updates" of mail meta-data

2015-06-11 Thread Andre Nathan
Hello I have a two-server dovecot setup using replication. Each server runs two dovecot instances, one for director and another for the backend. Initially I set up a single server, got it all working, then rsync'd the data and index partitions to the new one and started the clusters (I used rsync

Re: [Dovecot] Backup recovery with mdbox

2010-10-06 Thread Andre Nathan
On Tue, 2010-10-05 at 14:13 +0100, Timo Sirainen wrote: > dsync could work, although with some small kludging: > > 1. Put the old backup to e.g. ~/backup > > 2. Rename the mailbox to whatever you want in destination, e.g. mv > ~/backup/mailboxes/foo ~/backup/mailboxes/foo-$date > > 3. Copy the

Re: [Dovecot] Backup recovery with mdbox

2010-10-06 Thread Andre Nathan
On Wed, 2010-10-06 at 15:26 +0100, Timo Sirainen wrote: > dsync -o > mail_location=mdbox:mdbox:/var/spool/imap/partition7/11/andre=sneakymustard.com:INDEX=/var/lib/imap/user/11/andre=sneakymustard.com:MAILBOXDIR=mailboxes/backup-1234 > -u ..etc.. > > So basically override the default mail_locati

[Dovecot] User authentication fields size limit

2010-10-06 Thread Andre Nathan
Hello I'm using authentication via SQL, and I'm storing the full mail_location in the database. This is a long string because we're using multiple partitions and hashing to create this path. It looks like this: # doveadm user andre=sneakymustard.com userdb: andre=sneakymustard.com password : $

Re: [Dovecot] User authentication fields size limit

2010-10-06 Thread Andre Nathan
On Wed, 2010-10-06 at 19:59 +0100, Timo Sirainen wrote: > There's no 128 byte limit in Dovecot as far as I know. You sure it's not > truncated to 128 bytes already on the SQL database? :) If that's not the > case, set auth_debug=yes and show the logs. Is the log from "doveadm user" enough? It's li

Re: [Dovecot] User authentication fields size limit

2010-10-06 Thread Andre Nathan
On Wed, 2010-10-06 at 16:09 -0300, Andre Nathan wrote: > Truncation appears in the "master out" string. Nevermind. Apparently there's an inconsistency in the MySQL cluster and some servers have it truncated. Sorry for the noise. Andre

Re: [Dovecot] Backup recovery with mdbox

2010-10-08 Thread Andre Nathan
On Wed, 2010-10-06 at 12:08 -0300, Andre Nathan wrote: > That worked, as long as I run a > > doveadm force-resync -u andre=sneakymustard.com INBOX > > after dsync, which is totally fine :) Hmm actually it doesn't work after a force-resync. The "backup-$date" m

Re: [Dovecot] Backup recovery with mdbox

2010-10-18 Thread Andre Nathan
On Mon, 2010-10-18 at 18:38 +0100, Timo Sirainen wrote: > Added to hg: > >This example imports all mails from a backup under a backup-20101026 >mailbox: > >doveadm import -u jane@example.org \ >mdbox:/backup/20101026/jane.doe/mdbox backup-20101026 all > >

Re: [Dovecot] Segfault in libdovecot-sieve

2010-10-25 Thread Andre Nathan
Hi I've upgraded to 2.0.6 and set the home directory. The segfaults are gone :) Thanks, Andre On Thu, 2010-10-21 at 22:13 +0100, Timo Sirainen wrote: > On 21.10.2010, at 23.14, Andre wrote: > > > This shows up in the mail error when the sieve error happens. It seems > > the sieve error is a sid

[Dovecot] Recommendation for OCFS2 filesystem type

2010-10-25 Thread Andre Nathan
Hello When creating an OCFS2 filesystem, one can specify a "filesystem type" option: -T filesystem-type Specify how the filesystem is going to be used, so that mkfs.ocfs2 can chose optimal filesystem parameters for that use. The supported filesystem types are:

[Dovecot] Corrupted transaction log file

2010-10-26 Thread Andre Nathan
Hello I run dovecot 2.0.6 on a two-machine cluster using OCFS2 as the file system. I have some error messages like these in my log: Oct 25 01:07:50 box5 dovecot: lmtp(8886, suporte=100br@lmtp1.prv.f1.k8.com.br): Error: Corrupted transaction log file /var/lib/imap/user/a3/suporte=100br.com/sto

Re: [Dovecot] Corrupted transaction log file

2010-10-26 Thread Andre Nathan
On Tue, 2010-10-26 at 22:39 +0200, Timo Sirainen wrote: > Have you set mmap_disable=yes? Yep. > Those errors should fix themselves automatically. Still, it's not very good > if they keep happening. Sooner or later they will cause user visible problems. They're not happening all the time. It sho

Re: [Dovecot] Corrupted transaction log file

2010-10-27 Thread Andre Nathan
On Tue, 2010-10-26 at 23:52 -0200, Andre Nathan wrote: > They're not happening all the time. It showed up two or three times in > the logs during the night. A few errors of this kind appeared in the logs last night. The "Log synchronization error" appears more frequ

Re: [Dovecot] Corrupted transaction log file

2010-10-27 Thread Andre Nathan
On Tue, 2010-10-26 at 23:52 -0200, Andre Nathan wrote: > On Tue, 2010-10-26 at 22:39 +0200, Timo Sirainen wrote: > > Have you set mmap_disable=yes? > > Yep. Just out of curiosity, is this setting really needed, or is it for performance reasons? OCFS2 claims to suppor

Re: [Dovecot] Phantom email message

2010-11-10 Thread Andre Nathan
On Wed, 2010-11-10 at 11:59 -0800, Marc Perkel wrote: > Anyone have any ideas? This happens from time to time for me in Evolution. Moving a message from some folder to the folder displaying the phantom message seems to force it to recalculate and always fixes it here. HTH, Andre

Re: [Dovecot] Indexes.

2010-12-03 Thread Andre Nathan
On Thu, 2010-12-02 at 13:40 +0100, Robert Schetterer wrote: > hm , i have no problems with ocfs2 (1.4.3-1: amd64 ) on drbd ubuntu lucid > using dovecot vers 2 recommended settings for cluster file systems > i have my index files in the maildir dir Robert, are you running an active-active setup wi

Re: [Dovecot] Best Cluster Storage

2011-01-14 Thread Andre Nathan
On Fri, 2011-01-14 at 03:48 +, Jonathan Tripathy wrote: > ocfs2 seems to work quite well with lots of small files (typical of > maildir). I'm guessing that since ocfs2 reboot a system automatically, > it doesn't require any additional fencing? We have a two-node active-active DRBD+OCFS2 Dove

[Dovecot] Error: write(auth socket) failed: Broken pipe

2011-03-16 Thread Andre Nathan
Hello >From time to time I'm seeing errors like this in my logs: Mar 16 10:45:55 box5 dovecot: lmtp(5438): Error: write(auth socket) failed: Broken pipe This causes delivery from postfix to fail until I restart dovecot. There doesn't seem to be any other messages in the logs related to this err

[Dovecot] Backup recovery with mdbox

2010-10-05 Thread Andre Nathan
Hello I'm using mdbox for mail storage. I'd like to give users an option to recover backups into a new folder, say, Backup-$date. Is there a simple way to do this? I was looking at tools like dsync and doveadm-altmove but apparently they're not intended for this kind of stuff. Thanks in advance,