Re: Trouble with replication via IMAP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Same thing here, I never managed to make cyrus use imap for replication.
With or without sync_try_imap.
It always fall back to csync, after the imap test.
Debian packages, 2.5 to 3.2, 3.2 to 3.2 and now 3.2 to 3.6.

Authentification, then :
41 35.032441693 10.0.132.183 → 10.0.132.74 IMAP 163 Response: A01 OK Success (privacy protection) SESSIONID=<cyrus-1681887621-1382319-1-14400537638870657483> 42 35.032647887 10.0.132.183 → 10.0.132.74 TCP 66 143 → 44064 [FIN, ACK] Seq=624 Ack=894 Win=64512 Len=0 TSval=1651866450 TSecr=690413991 43 35.032834724 10.0.132.74 → 10.0.132.183 TCP 60 44064 → 143 [RST] Seq=894 Win=0 Len=0 44 35.032935275 10.0.132.74 → 10.0.132.183 TCP 60 44064 → 143 [RST] Seq=894 Win=0 Len=0 45 35.033531056 10.0.132.74 → 10.0.132.183 TCP 74 44736 → 2005 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=690413992 TSec

Imap works fine between both hosts :
# cyradm -user cyrus 10.0.132.74
Password:
10.0.132.74>


Quoting ellie timoney <ellie@xxxxxxxxxxxx>:

Hi Nels,

Did you somehow turn off "sync_try_imap" (in imapd.conf on the primary)? It should be on by default unless it's configured to be off. If it's on (by default or otherwise), sync_client will always try to make an IMAP connection to the replica before falling back to CSYNC if that fails. If it's off, it will only try CSYNC, which requires sync_server to be running on the replica. It sounds like your sync_client is only trying CSYNC, which makes me think "sync_try_imap" is turned off.

Here's the relevant paragraph from the imapd.conf(5) man page:

          sync_try_imap: 1
Whether sync_client should try to perform an IMAP connection before fall‐ ing back to csync. If this is set to "no", sync_client will only use csync. Prefix with a channel name to apply only for that channel

Cheers,

ellie

On Tue, 18 Apr 2023, at 6:18 AM, Nels Lindquist wrote:
Good afternoon.

I'm configuring replication between two 3.6.1 instances.

Based on the example configuration files provided, I started with
sync_server disabled in cyrus.conf on the replica, since IMAP
replication has been supported since version 3.

However, I kept getting "sync_client connect(repl1.dom.ain) failed:
Connection refused" errors. No firewall issues; direct connections to
IMAP ports all work fine.  Running sync_client manually from the
commandline also fails with a connection timeout.

I configured sync_server in cyrus.conf on the replica and everything
immediately began replicating. FWIW, I've tried with and without log
channels. Both work fine as long as sync_server is running; neither work
without it.

Any ideas?

Nels Lindquist
----
<nlindq@xxxxxxx>
------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T6bd84d7971061987-M79b082f8a70d80e2c22faefe
Delivery options: https://cyrus.topicbox.com/groups/info/subscription


--
Service systèmes et réseaux - DISI

Université de Picardie Jules Verne
5, rue du moulin neuf - 80000 Amiens

------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T6bd84d7971061987-M5243179a3fc8a2f58f3ec389
Delivery options: https://cyrus.topicbox.com/groups/info/subscription




[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux