Cyrus: master/slave synchronisation

Martin Schweizer schweizer.martin at gmail.com
Sun Feb 7 03:37:04 EST 2010


Hello

I use FreeBSD 7.2/amd64 with Cyrus IMAP v2.3.16. Cyrus is installed on
two server. So fare Cyrus himself works as expected on both servers.
It seems to be all ok. After I checked regulary my logs I see one
strange message on the Cyrus syncronisation server (which helds the
copies of the mails).

/var/log/auth.log on the Sync server:
auth.log.4.bz2:Feb  6 17:37:00 acsvfbsd02 syncserver[49881]:
DIGEST-MD5 server step 1
auth.log.4.bz2:Feb  6 17:37:00 acsvfbsd02 syncserver[49881]:
DIGEST-MD5 server step 2
auth.log.4.bz2:Feb  6 17:37:00 acsvfbsd02 syncserver[49881]: no user in db

This occurs only if I start/restart the Cyrus process.

/var/log/debug.log on the Sync server:
Feb  7 08:59:07 acsvfbsd02 syncserver[50063]: accepted connection
Feb  7 08:59:07 acsvfbsd02 syncserver[50063]: cmdloop(): startup

So this meens for me that the sync communication would be accepted,
isn't it? If I check the mails on both servers, they are identicaly.

On the Sync client I get:
debug.log.4.bz2:Feb  6 16:55:15 acsvfbsd06 sync_client[25108]:
sync_client RESTART succeeded
debug.log.4.bz2:Feb  6 16:55:15 acsvfbsd06 sync_client[25166]:
DIGEST-MD5 client step 1
debug.log.4.bz2:Feb  6 16:55:15 acsvfbsd06 sync_client[25166]:
DIGEST-MD5 client step 2
debug.log.4.bz2:Feb  6 16:55:15 acsvfbsd06 sync_client[25166]:
DIGEST-MD5 client step 3

and

auth.log.7.bz2:Feb  5 17:52:23 acsvfbsd06 syncserver[96354]:
DIGEST-MD5 server step 1
auth.log.7.bz2:Feb  5 17:52:23 acsvfbsd06 syncserver[96354]:
DIGEST-MD5 server step 2

The relevant part of the imapd.conf:

Cyrus  sync client:
[snip]
sync_host: server1
sync_authname: test
sync_password: xxxx
sync_machineid: 1
sync_log: 1
sync_repeat_interval: 1

Cyrus  sync server:
[snip]
sync_machineid: 2
sync_repeat_interval: 1

In the past I used sasldb2.db as password store. Now I use
saslauthd/Kerberos5 which is works as expected. As described in the
docs, DIGEST-MD5 and CRAM-MD5 use only the sasldb. So I store the user
test on both servers in the sasldb. The result are the same. I also
study around the mech-list but I use sasl_mech_list: PLAIN LOGIN
DIGEST-MD5 CRAM-MD5 and sasl_mech_list: PLAIN LOGIN. The result is
also the same.

Any ideas?

Kind regards,

-- 
Martin Schweizer
schweizer.martin at gmail.com
Tel.: +41 32 512 48 54 (VoIP)
Fax: +1 619 3300587


More information about the Info-cyrus mailing list