[Dovecot] dsync with virtual users
On 2012-05-06 6:15 PM, Ken Stevenson ken@allenmyland.com wrote:
I'm using dovecot v2.0.16
Is there a question in there somewhere?
--
Best regards,
Charles
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@allenmyland.com userdb: ken@allenmyland.com home : /var/vmail/ken@allenmyland.com uid : 5000 gid : 5000
Here's the destination side:
root@abbott4 ~ # doveadm user ken@allenmyland.com userdb: ken@allenmyland.com home : /zdata/vmail/ken@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@allenmyland.com backup ken@abbott4.allenmyland.com
I get :
dsync-local(ken@allenmyland.com): Error: remote: doveadm(ken): Fatal: User doesn't exist dsync-local(ken@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.
On 7.5.2012, at 23.44, Ken Stevenson wrote:
I have two servers with almost identical mail setups using dovecot 2.13. .. $ dsync -u ken@allenmyland.com backup ken@abbott4.allenmyland.com
Might as well move to the new dsync syntax. I really should update the man and wiki pages for this..:
doveadm backup -u ken@allenmyland.com abbott4.allenmyland.com
participants (3)
-
Charles Marcus
-
Ken Stevenson
-
Timo Sirainen