[Dovecot] Dsync didn't updates automatically

Breno Moreira brenoavm at gmail.com
Fri Jan 4 17:29:35 EET 2013


Hi Timo,
Thanks for your answer.

Good to know that it can sync when a new mail arrives.

I've already seen this wiki page, my configuration is almost the same that
the one described there.
It syncs at startup, but doesn't syncs when a new email arrives, and that
is my problem.

In error log, some messages are printed when Dovecot starts:

Jan  4 13:22:21 srv1 dovecot: master: Dovecot v2.1.7 starting up (core
dumps disabled)
Jan  4 13:22:21 srv1 dovecot: auth-worker(4322): mysql(
supra-lb.testesupra.com.br): Connected to database Supramail
Jan  4 13:22:21 srv1 dovecot: doveadm(nobody): Fatal: setgid(65534(nogroup)
from userdb lookup) failed with euid=5000(vmail), gid=5000(vmail),
egid=5000(vmail): Operation not permitted (This binary should probably be
called with process group set to 65534(nogroup) instead of 5000(vmail))
Jan  4 13:22:21 srv1 dovecot: doveadm(mav): Fatal: setgid(1000(mav) from
userdb lookup) failed with euid=5000(vmail), gid=5000(vmail),
egid=5000(vmail): Operation not permitted (This binary should probably be
called with process group set to 1000(mav) instead of 5000(vmail))

But when there is a new mail, it only prints a success message:

Server 1:

an  4 13:24:30 srv1 postfix/smtpd[4264]: connect from srv1[127.0.0.1]
Jan  4 13:24:30 srv1 postfix/smtpd[4264]: improper command pipelining after
EHLO from srv1[127.0.0.1]: mail from: foo at bar.com\nrcpt to:
mav at testesupra.com.br\ndata\nThis is qualquer coisa from proxy\n.\nquit\n
Jan  4 13:24:30 srv1 postfix/smtpd[4264]: E5BCE1FF82: client=srv1[127.0.0.1]
Jan  4 13:24:30 srv1 postfix/cleanup[4372]: E5BCE1FF82: message-id=<
20130104152430.E5BCE1FF82 at srv1.testesupra.com.br>
Jan  4 13:24:31 srv1 postfix/smtpd[4264]: disconnect from srv1[127.0.0.1]
Jan  4 13:24:31 srv1 postfix/qmgr[2689]: E5BCE1FF82: from=<foo at bar.com>,
size=344, nrcpt=1 (queue active)
Jan  4 13:24:31 srv1 dovecot: lmtp(4375): Connect from 127.0.0.1
Jan  4 13:24:31 srv1 dovecot: auth-worker(4376): mysql(
supra-lb.testesupra.com.br): Connected to database Supramail
Jan  4 13:24:31 srv1 dovecot: lmtp(4375): Disconnect from 127.0.0.1: Client
quit (in reset)
Jan  4 13:24:31 srv1 postfix/lmtp[4374]: E5BCE1FF82: to=<
mav at testesupra.com.br>, relay=localhost[127.0.0.1]:7025, delay=0.42,
delays=0.09/0.01/0.01/0.31, dsn=2.0.0, status=sent (250 2.0.0 <
mav at testesupra.com.br> LrxIHy/05lBrDwAArsoYNw Saved)


Server 2:

Jan  4 13:24:31 srv2 dovecot: lmtp(3947): Connect from 192.168.100.195
Jan  4 13:24:31 srv2 dovecot: auth-worker(3948): mysql(
supra-lb.testesupra.com.br): Connected to database Supramail
Jan  4 13:24:31 srv2 dovecot: lmtp(3947, mav at testesupra.com.br):
LrxIHy/05lBrDwAArsoYNw: msgid=<
20130104152430.E5BCE1FF82 at srv1.testesupra.com.br>: saved mail to INBOX


On Fri, Jan 4, 2013 at 1:16 AM, Timo Sirainen <tss at iki.fi> wrote:

> On 3.1.2013, at 18.57, Breno Moreira <brenoavm at gmail.com> wrote:
>
> > I'm trying to use the Dsync cluster feature in a simple setup, without
> > director, but I'm having some troubles.
> >
> > First of all, I want to know if this functionality syncs the mailbox when
> > the user receive a mail or only when the dovecot starts?
>
> Both, if configured correctly.
>
> > Reading the Dovecot mailing list and the design description for a
> > dsync-replicated Dovecot cluster, I understood that it should sync every
> > time a new mail arrives, but it isn't happening in my system. So, can I
> do
> > this update automatically? If yes, why is it not working properly? Maybe
> is
> > my configuration files or maybe I'm confusing the capability of this
> > feature.
>
> Does it sync at startup either? Anything in error log?
> http://wiki2.dovecot.org/Replication also describes the configuration.
>
> > I'm using Dovecot 2.1.7 included in the Debian Wheezy, with virtual users
> > in a MySQL database, Moreover, I have the following configuration:
>
> I don't see anything obviously wrong in your setup.
>
>


-- 
---------------------------------------------------------------------
Breno Moreira

"I have no idols. I admire work, dedication and competence."
Ayrton Senna


More information about the dovecot mailing list