[Dovecot] Dovecot replication, no updates on message deposit
Hi,
I am trying to setup dovecot replication based on:
http://wiki2.dovecot.org/Replication
All mailboxes share the same UNIX userid ('vmail'), and I setup ssh-key based login for this account in both directions. As LDA exim4 is configured to use dovecot deliver LDA. Here is the relevant config from exim:
/usr/lib/dovecot/deliver -d $local_part -f $sender_address -a $original_local_part@$original_domain
When a message is deposited to a mailbox, it does not get replicated. The log is silent:
Mar 25 15:00:20 mx02 dovecot: master: Dovecot v2.2.9 starting up (core dumps disabled) Mar 25 15:01:05 mx02 dovecot: lda(user.name): msgid=unspecified: saved mail to INBOX
The output from doveconf -n is attached.
Any help is appreciated,
Thanks, Milan.
If anyone is interested - I found the problem in my setup:
needs to have both "replication" and "notify"
protocol lda { mail_plugins = " sieve replication notify" }
Maybe it is just me, but the Replication wiki page is not detailed enough. I had lots of problems trying to figure out which process runs on which machine, and in the context of which user.
For example, the first note mentions that "doveadm user '*'" has to work. It does not the context when this command would be running. This is important, because it takes 2 steps to configure it properly:
- to make sure the command runs at all - configure the userdb properly
- to make sure the UNIX user account which would be running it has the right to do it.
As a result, there are couple of posts on this list bumping up permissions to various sockets/fifos in /var/run/dovecot directory, probably in attempts to let 'vmail' user run "doveadm user '*'". And I still don't know if 'vmail' user runs it or not...
Milan
exim is configured to use dovecot's deliver as LDA. Milan Cvetkovic wrote:
participants (1)
-
Milan Cvetkovic