custom ssh port doveadm sync

Gedalya gedalya at
Tue Nov 18 08:32:30 UTC 2014

On 11/18/2014 03:23 AM, dvm at 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 * # 
> 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

        Synchronize mailboxes with a remote server.  Any errors are 
written to stderr.

               doveadm sync -u username at

        If you need more complex parameters to ssh, you can use e.g.:

               doveadm sync -u username at ssh -i id_dsa.dovecot \
               mailuser at doveadm dsync-server -u 
username at

More information about the dovecot mailing list