mail-in-a-box / mailinabox

Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
https://mailinabox.email/
Creative Commons Zero v1.0 Universal
13.88k stars 1.43k forks source link

Don't force port 22 for rsync backup #2104

Open SoMuchForSubtlety opened 2 years ago

SoMuchForSubtlety commented 2 years ago

Currently, the backup script has port 22 hardcoded. https://github.com/mail-in-a-box/mailinabox/blob/3a7de051ee1e87d08589a946e3d05bbf6f6806fc/management/backup.py#L19

This prevents setting a non-standard port via ~/.ssh/config and I don't see any upsides since port 22 is the default anyway.

I need to use port 23 since that is what's being used by hetzner storage box.

ddavness commented 2 years ago

I have this implemented on a fork of mine - if anyone wants to make a PR you can start by cherry-picking this commit: https://github.com/ddavness/power-mailinabox/commit/8a0805dae854ad6a5e13c2b1fe55b9a28490ff0e

JoshData commented 2 years ago

Yeah I can't think of a reason why -p 22 should be there, and I would accept a pull request removing it.

schlypel commented 1 year ago

@SoMuchForSubtlety this is merged in 61 and works now, can this be closed? Thanks.