Skip to content

Commit

Permalink
Fix imapsync to support other ports for IMAP Server than 143
Browse files Browse the repository at this point in the history
In case of configuring a different port for the builtin IMAP server the
synchronization fails. The reason is there was a missing definition for
the port of the destination machine. This will now be added if the IMAP_PORT
environment is set.
  • Loading branch information
Sven Steckmann committed Dec 26, 2024
1 parent bd9f4ba commit 6f01cde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/Dockerfiles/dovecot/imapsync_runner.pl
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ sub sig_handler {
"--passfile1", $passfile1->filename,
"--port1", $port1,
"--host2", "localhost",
(!exists($ENV{IMAP_PORT})? () : ('--port2', $ENV{IMAP_PORT})),
"--user2", $user2 . '*' . trim($master_user),
"--passfile2", $passfile2->filename,
($dry eq "1" ? ('--dry') : ()),
Expand Down

0 comments on commit 6f01cde

Please sign in to comment.