On 11/18/2014 03:23 AM, dvm at rdyn.net wrote:>
> Hi all,
>
> First sorry i really couldn't find it back been searching everywhere
> even the docs and its bit confusing.
> I am using # doveadm -D sync -u *@mydomain.net remote:myserver.net #
> which works perfect however for security reasons we now need to change
> the sshd port on the remote server.
> How do i tell doveadm to use a custom SSH port (would love to
> continue to use just the ssh connection), if anyone could explain that
> would be great, because all i found is custom tcp or tcp ssl which is
> not what we want to use, as i wish to stick with custom ssh port.
From the dsync man page
EXAMPLE
SYNCHRONIZATION
Synchronize mailboxes with a remote server. Any errors are
written to stderr.
doveadm sync -u username at example.com
remote:server-replica.example.com
If you need more complex parameters to ssh, you can use e.g.:
doveadm sync -u username at example.com ssh -i id_dsa.dovecot \
mailuser at example.com doveadm dsync-server -u
username at example.com