Problem with cyrus replication: failing to update user/mailbox
Edward Prendergast
edward.prendergast at netring.co.uk
Thu Oct 25 08:02:04 EDT 2007
Hi,
I've given up on cyrus-murder for now and am just focusing on replication.
When I run /usr/lib/cyrus-imapd/sync_client -v -l -u user.info at client.office
it errors on the master:
Oct 25 13:52:29 chrisnux sync_client[10651]: USER received NO response:
IMAP_MAILBOX_NONEXISTENT Failed to access inbox for info at client.office:
Mailbox does not exist
Oct 25 13:52:29 chrisnux sync_client[10651]: CREATE received NO response:
Create client.office!user.info failed: Invalid mailbox name
Oct 25 13:52:29 chrisnux sync_client[10651]: Error in
do_user(info at client.office): bailing out!
The slave is log says this:
Oct 26 13:59:50 eddnux syncserver[4271]: accepted connection
Oct 26 13:59:50 eddnux syncserver[4271]: cmdloop(): startup
Oct 26 13:59:50 eddnux syncserver[4271]: login: chrisb [192.168.1.10] cyrus
PLAIN User logged in
Oct 26 13:59:50 eddnux syncserver[4271]: Failed to access inbox for
info at client.office
Oct 26 13:59:50 eddnux syncserver[4271]: can not unlink
/var/lib/imap/user/i/info at client.office.seen: No such file or directory
Oct 26 13:59:50 eddnux syncserver[4271]: can not unlink
/var/lib/imap/user/i/info at client.office.mboxkey: No such file or directory
Oct 26 13:59:50 eddnux syncserver[4271]: Unlocked
But I'm not sure how to copy across the mailbox if the user doesn't already
exist? I tried:
[root at chrisnux /]# /usr/lib/cyrus-imapd/sync_client -v -l -m INBOX
Which returns:
MAILBOXES INBOX
And returns the same in the log, no errors:
Oct 25 14:05:57 chrisnux sync_client[10714]: MAILBOX INBOX
The slave has this to say after INBOX transfer:
Oct 26 13:52:06 eddnux syncserver[4262]: executed
Oct 26 13:52:06 eddnux syncserver[4262]: accepted connection
Oct 26 13:52:06 eddnux syncserver[4262]: cmdloop(): startup
Oct 26 13:52:06 eddnux syncserver[4262]: login: chrisb [192.168.1.10] cyrus
PLAIN User logged in
Oct 26 13:52:06 eddnux syncserver[4262]: Unlocked
Oct 26 13:53:17 eddnux master[3994]: process 4262 exited, status 0
No errors here either.
Expcert from master imapd.conf:
defaultdomain: chris.office
virtdomains: yes
sync_host: 192.168.1.7
sync_authname: cyrus
sync_password: secret
sync_machineid: 1
sync_log: yes
I have the following line in cyrus.conf's START section:
syncclient cmd="/usr/lib/cyrus-imapd/sync_client -r"
and have set imap & lmtpunix to support uuid in the SERVICES section:
imap cmd="imapd" listen="imap" prefork=5 provide_uuid=1
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
provide_uuid=1
Except from slave imapd.conf:
defaultdomain: eddnux.office
virtdomains: yes
Slave cyrus.conf contains this in the SERVICES section:
syncserver cmd="/usr/lib/cyrus-imapd/sync_server" listen="csync"
Any help with this problem would be greatly appreciated.
Thanks,
Edward
************
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any action taken or
omitted to be taken in reliance on it, any form of reproduction,
dissemination, copying, disclosure, modification, distribution and/or
publication of this E-mail message is strictly prohibited and may be
unlawful. If you have received this E-mail message in error, please notify
us immediately. Please also destroy and delete the message from your
computer.
************
More information about the Info-cyrus
mailing list