[Dovecot] dsync with virtual users

Ken Stevenson ken at allenmyland.com
Mon May 7 23:44:49 EEST 2012


On 2012-05-07 07:45, Charles Marcus wrote:
> Is there a question in  there somewhere?

Sorry about that. I'm trying to understand the syntax of the dsync 
command. I have two servers with almost identical mail setups using 
dovecot 2.13.

Here's the source side:

$ doveadm user ken at allenmyland.com
userdb: ken at allenmyland.com
   home      : /var/vmail/ken at allenmyland.com
   uid       : 5000
   gid       : 5000

Here's the destination side:

root at abbott4 ~ # doveadm user ken at allenmyland.com
userdb: ken at allenmyland.com
   home      : /zdata/vmail/ken at allenmyland.com
   uid       : 5000
   gid       : 5000

What is the correct syntax of the dsync command to backup email from 
the first server to the second?

If I su to vmail then use

$ dsync -u ken at allenmyland.com backup ken at abbott4.allenmyland.com

I get :

dsync-local(ken at allenmyland.com): Error: remote: doveadm(ken): Fatal: 
User doesn't exist
dsync-local(ken at allenmyland.com): Error: read() from worker server 
failed: EOF

I presume that's because it's doing a user lookup on the remote side 
for ken instead of using my email address. How do I specify the username 
for the remote side?

Any help would be appreciated.




More information about the dovecot mailing list