Setting up replication?

Knute Johnson dovecot at knutejohnson.com
Thu Mar 24 15:54:47 UTC 2016


On 3/23/2016 14:26, Knute Johnson wrote:
> I'm trying to set up replication between two servers and I've hit a 
> snag.  I have two users and am using mbox files.  If anybody has a 
> sample config file for a simple system like mine I would really be 
> grateful to see it.
>
> Thanks,
>
> The error I'm getting is:
>
> Mar 23 14:07:31 knute2 dovecot: doveadm(192.168.3.100,nobody): Error: 
> user nobody: Initialization failed: Namespace '': 
> mkdir(/nonexistent/mail) failed: Permission denied (euid=65534(nobody) 
> egid=65534(nogroup))
> Mar 23 14:07:31 knute2 dovecot: doveadm(192.168.3.100,nobody): Error: 
> dsync-server: User init failed
> Mar 23 14:07:31 knute2 dovecot: doveadm(nobody): Error: sync: Failed 
> to start dsync-server command: 75
>
> knute at knute2:/etc/dovecot/conf.d $ sudo doveadm user '*'
> nobody
> knute
> penny
>
> I don't know why the user 'nobody' shows up here?  nobody is in the 
> /etc/passwd file but he has no group.
>
> knute at knute2:/ $ cat /etc/passwd | grep nobody
> nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
>
> -----------------------
>
> I created a separate config file as suggested in Peer Heinlein's book.
>
> knute at knute2:/etc/dovecot/conf.d $ cat 12-replication.conf
> mail_plugins = $mail_plugins notify replication
>
> service replicator {
>     process_min_avail = 1
>     unix_listener replicator-doveadm {
>         mode = 0600
>     }
> }
>
> service aggregator {
>     fifo_listener replication-notify-fifo {
>         mode = 0666
>     }
>     unix_listener replication-notify {
>         mode = 0666
>     }
> }
>
> service doveadm {
>     inet_listener {
>         port = 30303
>     }
> }
>
> #doveadm_port = 30303
>
> doveadm_password = secret
>
> plugin {
>     mail_replica = tcp:knute2.frazmtn.com:30303
> }
>
> replication_dsync_parameters = -d -N -l 30 -U
>
> ---------------------

I've got it working more or less.  I had to change the mode of 
replicator-doveadm to 0666.  I'm still getting errors for 'nobody' but 
that doesn't seem to cause it to not work, just annoying.

Can anybody explain the significance of the mode?

I'm syncing between a 2.2.9 and 2.2.13 system.  Any thing I should look for?

Thanks,

-- 

Knute Johnson



More information about the dovecot mailing list