Problem with sync_client

Avinash Sultanpur avinash at sultanpur.org
Wed Aug 20 03:33:44 EDT 2008


Hi,

I am in the process of setting up replication. I have setup the
replica server and I have tested it successfully with sync_test.

-sh-3.2$ synctest -u cyrus -w password -t "" replica
S: * STARTTLS
S: * OK imap2.mediassistindia.com Cyrus sync server v2.3.7-Invoca-RPM-2.3.7-2.el5
C: STARTTLS
S: OK Begin TLS negotiation now
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher AES256-SHA (256/256 bits)
S: * SASL PLAIN
S: * OK imap2.mediassistindia.com Cyrus sync server v2.3.7-Invoca-RPM-2.3.7-2.el5
C: AUTHENTICATE PLAIN ****
S: OK Success (tls protection)
Authenticated.
Security strength factor: 256

However, when I try to use sync_client to replicate a mailbox I get
the following error,

-sh-3.2$ /usr/lib/cyrus-imapd/sync_client -vl -u yukthi
Can not connect to server 'replica', retrying in 15 seconds

and this in syslog,

Aug 20 12:18:39 imap1 sync_client[10378]: connect(replica) failed: Invalid argument

I ran tcpdump on the replica server and I don't see any packets coming
to port 'csync'. You can also find the strace output of sync_client at
http://sultanpur.org/sync_client_strace.

Master server's imapd.conf:

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
lmtp_downcase_rcpt: 1
allowplaintext: 1
tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
autocreatequota: 2048000
unixhierarchysep: 1
sync_host: replica
sync_authname: cyrus
sync_password: password

Cyrus version: 2.3.7 on Cent OS 5.2

-Avinash


More information about the Info-cyrus mailing list