Repository navigation
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
95 lines (82 loc) · 4.15 KB
/
Copy pathconfig.yaml.example
File metadata and controls
95 lines (82 loc) · 4.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# ==============================================================================
# imapshift configuration template
# ==============================================================================
# 1. Copy this file to config.yaml:
# cp config.yaml.example config.yaml
# 2. Restrict permissions because this file contains IMAP passwords:
# chmod 600 config.yaml
# 3. Never commit config.yaml to version control (.gitignore excludes it).
# ==============================================================================
settings:
# When true, running `sync` without --real or --dry-run runs in simulation mode (--dry).
# Note: passing --real on the CLI always overrides this setting.
dry_run: true
# Number of accounts migrated in parallel (range: 1..32; can be overridden via --workers).
workers: 3
# If true, continue migrating remaining accounts if one account fails during copy.
# If false, stop launching new queued accounts after a permanent/exhausted copy error.
# Note: the pre-flight connection check always aborts before copying if any account fails.
continue_on_error: true
# Automatically map special folders (Sent, Drafts, Junk, Trash, Archive) via --automap.
automap: true
# Execution backend for imapsync:
# auto -> use local `imapsync` binary if found in PATH, otherwise Docker
# local -> require local `imapsync` binary
# docker -> always run imapsync inside Docker using `docker_image`
backend: auto
# Optional global settings (uncomment only if you want to override built-in defaults):
# docker_image: gilleslamiral/imapsync # Docker image used when backend resolves to docker
# connect_timeout: 10.0 # Timeout (seconds, 1.0..120.0) for pre-flight IMAP check
# retries: 2 # Automatic retries on transient copy errors (0..10)
# retry_delay: 5.0 # Initial backoff delay in seconds before retrying (0..300)
# log_dir: logs # Directory for independent per-account log files
# state_file: .imapshift/state.json # Persistent JSON state used by `retry`
accounts:
# Each top-level key under `accounts` is the account email address.
info@example.com:
# active: true # Optional (default: true). Set false to skip this account.
# automap: true # Optional: override global settings.automap for this account.
# exclude_folders: # Optional: folders excluded from sync (--exclude).
# - "Spam"
# - "Trash"
source:
host: imap.source.example.com # Required: source IMAP hostname or IP
# port: 993 # Optional (default: 993, range: 1..65535)
user: info@example.com # Optional (defaults to account key if omitted)
password: "replace-with-source-password" # Required: single-line IMAP password
# tls: ssl # Optional: ssl (default), starttls, or none
# verify_tls: true # Optional (default: true): verify TLS certificates
destination:
host: imap.dest.example.com # Required: destination IMAP hostname or IP
# port: 993
user: info@example.com
password: "replace-with-destination-password"
# tls: ssl
# verify_tls: true
sales@example.com:
source:
host: imap.other-source.example.org
port: 993
user: sales@example.com
password: "replace-with-source-password"
destination:
host: imap.other-dest.example.org
port: 993
user: sales@example.com
password: "replace-with-destination-password"
# Example showing a disabled account (active: false), STARTTLS on port 143,
# omitted `user` (inherits support@example.com), and folder exclusions:
support@example.com:
active: false
automap: false
exclude_folders:
- "Junk"
source:
host: mail.legacy.example.org
port: 143
tls: starttls
verify_tls: true # Set false only for self-signed/internal certs
password: "replace-with-source-password"
destination:
host: imap.dest.example.com
password: "replace-with-destination-password"