Fix sync mailboxes script dicker image
This commit is contained in:
@@ -94,6 +94,9 @@ stalwart-cli apply --file accounts-plan.ndjson
|
||||
|
||||
## 5. Copy mail with imapsync
|
||||
|
||||
The sync scripts use the upstream `gilleslamiral/imapsync` Docker image. The first
|
||||
run pulls the image automatically, so Docker Hub access is required.
|
||||
|
||||
Linux:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#requires -Version 5.1
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Runs imapsync (via the dockerized imapsync/imapsync image) for every account
|
||||
Runs imapsync (via the upstream gilleslamiral/imapsync image) for every account
|
||||
in a migration accounts.csv, copying mail from docker-mailserver to Stalwart.
|
||||
#>
|
||||
param(
|
||||
@@ -24,7 +24,7 @@ foreach ($row in $rows) {
|
||||
Write-Host "==> Syncing $($row.email)"
|
||||
|
||||
$dockerArgs = @(
|
||||
"run", "--rm", "imapsync/imapsync",
|
||||
"run", "--rm", "gilleslamiral/imapsync", "imapsync",
|
||||
"--host1", $SourceHost, "--port1", $SourcePort, "--ssl1",
|
||||
"--user1", $row.email, "--password1", $row.old_password,
|
||||
"--host2", $DestHost, "--port2", $DestPort, "--ssl2",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Runs imapsync (via the dockerized imapsync/imapsync image) for every account
|
||||
# Runs imapsync (via the upstream gilleslamiral/imapsync image) for every account
|
||||
# in a migration accounts.csv, copying mail from docker-mailserver to Stalwart.
|
||||
set -euo pipefail
|
||||
|
||||
@@ -35,7 +35,7 @@ while IFS=',' read -r email new_password old_password aliases quota_mb; do
|
||||
|
||||
echo "==> Syncing $email"
|
||||
|
||||
args=(run --rm imapsync/imapsync
|
||||
args=(run --rm gilleslamiral/imapsync imapsync
|
||||
--host1 "$SOURCE_HOST" --port1 "$SOURCE_PORT" --ssl1 --user1 "$email" --password1 "$old_password"
|
||||
--host2 "$DEST_HOST" --port2 "$DEST_PORT" --ssl2 --user2 "$email" --password2 "$new_password"
|
||||
--automap --syncinternaldates --skipcrossduplicates --no-modulesversion)
|
||||
|
||||
Reference in New Issue
Block a user