On 17/09/2021 3:30 pm, Simon Matter wrote:
On 16/09/2021 7:35 pm, Simon Matter wrote:
Working on this upgrade to a new server - 2.4 to 3.4.2
on the old server, running 2.4.17 (I know ...)
Using this howto :
https://www.cyrusimap.org/2.5/imap/admin/sop/replication.html
(2.5, I know ... but I can't find doco for how to do this on 2.4)
I've added to /etc/services :
csync 9905/tcp # Cyrus csync temp CB
9905 is available and doesn't clash with anything I can find :
bash-4.3# netstat -an | grep 9905
bash-4.3#
in imapd.conf :
# sync server, CB 20210916
sync_authname: XXXXX
sync_password: XxXXxxX
sync_port: 9905
in cyrus.conf :
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="localhost:imap" prefork=0
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
#sieve cmd="timsieved" listen="sieve" prefork=0
lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
# for syncing to rollcage13 for migration CB 20210916
syncserver cmd="/usr/pkg/cyrus/bin/sync_server" listen="csync"
}
Error logged is :
Sep 16 18:42:52 master[5508]: servname not supported for ai_socktype,
disabling syncserver
Um?
Am I totally flogging a dead horse or might this work?
Again, I have never used this, but, do you have 'csync' defined in
/etc/services?
I sure do, as above :
bash-4.3# grep ^csync /etc/services
csync 9905/tcp # Cyrus csync temp CB
Hm, I know I've read about the entry but forgot later, do I have to worry :)
Anyway, two more things to check
1) are permissions on /etc/services fine?
yes
2) can you add an entry for UDP as well and try?
I can, but I think I may have things around backwards anyway. I'm trying
to start sync_server on the machine that I'm trying to migrate away
from, which would be the 'master'. But the man page for sync_server says :
DESCRIPTION
Sync_server is the server side of the the replication system.
It runs
on the target (replica) system and listens for
connections from
sync_client which provides instructions for synchronizing the
replica
system with the master system.
That, seems to me to be backwards, and I should be trying to run
sync_client on the master?
The man page for sync_client says :
DESCRIPTION
Sync_client is the client side of the replication system. It
runs on
the client (master) system and connects to the target (replica)
system
and generates an appropriate sequence of transactions to
synchronize
the replica system with the master system.
The client is the master? The target is the replica is the server?
Erm?!
The cyrus doco for how to set this up, is not clear on what goes where -
I suspect it's written by the people that wrote or maintain cyrus, and
it leaves a lot out - or expects you to have read the entire doco set
and some of the source code, to get this working!
------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/T50c2c1b30d20802c-M4bb6ff3931efebf66511049f
Delivery options: https://cyrus.topicbox.com/groups/info/subscription