Continue mailbox imports in batches and show live copy statistics
This commit is contained in:
1 parent
23cddcaac8
commit
5b0dfff8e7
10 files changed
+448
-195
No files matched your search
+33
-31
@@ -2404,10 +2404,13 @@ minutes, the panel temporarily stops accepting new attempts for that user.
|
||||
|
||||
### Import mail from an external IMAP server
|
||||
|
||||
An operator can enable mailbox imports on a panel that provisions either local
|
||||
mailboxes or mailboxes on a linked Coulobre mail node. The worker connects
|
||||
directly to the existing mailbox at `COULOBRE_MAIL_IMAP_HOST`. The mail node
|
||||
does not need a new socket, SSH account, or provisioning permission.
|
||||
Enable mailbox imports on a panel that provisions either local mailboxes
|
||||
or mailboxes on a linked Coulobre mail node. Upgrade a linked receiver to
|
||||
the matching release and use a domain-scoped mail receiver connection.
|
||||
The dedicated import worker uses the existing mail provisioning socket.
|
||||
The receiver appends to the selected, active mailbox without exposing or
|
||||
changing its password. This works independently of webmail or password
|
||||
reveal settings.
|
||||
|
||||
Set `COULOBRE_MAILBOX_IMAP_IMPORT=1` in `/etc/coulobre/panel.env`. From the
|
||||
matching Coulobre source release, or its installed copy at
|
||||
@@ -2422,40 +2425,39 @@ sudo systemctl restart coulobre-panel.service coulobre-worker.service coulobre-b
|
||||
```
|
||||
|
||||
The general worker dispatches import jobs. Restart it along with the panel
|
||||
and scheduler so all three read the new setting.
|
||||
and scheduler so all three read the new setting. APT upgrades refresh the
|
||||
socket access for the existing import worker. After a wheel-only upgrade,
|
||||
install the updated unit as above and restart the import worker.
|
||||
|
||||
Open **Email Accounts**, find an existing mailbox, and choose **Import mail**.
|
||||
Customers can import into their own mailboxes. Operators need mailbox view
|
||||
and change permissions. Enter the external IMAP hostname, username, and
|
||||
password or app password, plus the current destination mailbox password.
|
||||
Both servers must support IMAP with implicit TLS on port 993 and present
|
||||
certificates the panel trusts for their hostnames. The source must resolve
|
||||
only to public addresses. The destination uses the panel's configured
|
||||
hostname and may be private. OAuth-only accounts are not supported.
|
||||
and change permissions. Enter only the external IMAP hostname, username, and
|
||||
password or app password. The source must resolve only to public addresses
|
||||
and support implicit TLS on port 993 with a trusted certificate. OAuth-only
|
||||
accounts are not supported.
|
||||
|
||||
The worker checks both logins before writing. Progress shows the number of
|
||||
messages copied and flags skipped in each folder. The import preserves
|
||||
messages, folder hierarchy, original internal dates and supported flags.
|
||||
It skips the transient `\Recent` flag and does not copy the `\Deleted`
|
||||
flag. It does not mark a message as read at the source, remove existing
|
||||
messages, or change DNS. It does not copy contacts, calendars, or server
|
||||
rules. Destination UIDs are assigned by the destination IMAP server.
|
||||
Start once and leave the page if needed. The worker continues from saved
|
||||
checkpoints in batches and retries interrupted connections. Progress updates
|
||||
without a page reload and shows copied messages, previously copied messages,
|
||||
recorded bytes, elapsed time, and folder errors. Byte totals only cover
|
||||
imports that recorded message sizes. The import preserves folder structure,
|
||||
original message dates, and supported flags. It skips `\Recent` and does not
|
||||
copy `\Deleted`, mark mail as read at the source, remove existing messages,
|
||||
or change DNS. It does not import contacts, calendars, or server rules.
|
||||
|
||||
For a mail cutover, run the first pass before changing mail routing. After the
|
||||
source stops receiving mail, resume with the same servers and usernames
|
||||
to copy new arrivals. If quota, a connection error, or the 12-minute pass
|
||||
limit interrupts the copy, correct the problem and resume. Already copied
|
||||
messages are skipped using a saved UID checkpoint. If a folder changes its
|
||||
UID identity, inspect the source and destination before retrying. Folder
|
||||
renames or moves are not mirrored. A pass supports up to 500 folders and
|
||||
messages of up to 50 MiB.
|
||||
source stops receiving mail, choose **Copy new mail** and enter the same
|
||||
source credentials for a final pass. If a folder changes its UID identity,
|
||||
inspect the source and destination before resuming. Folder moves and renames
|
||||
are not mirrored. A pass supports up to 500 folders and messages up to 50 MiB.
|
||||
|
||||
Passwords are encrypted while the job is queued and are removed from the
|
||||
current job record when it finishes or expires. Jobs must start within 30
|
||||
minutes. Enter the passwords again to retry or run another pass. If a job
|
||||
does not start, check `journalctl -u coulobre-mailbox-import-worker`. Let
|
||||
active imports finish before a manual upgrade, stop the import worker with
|
||||
the other panel workers, and start it again after migrations.
|
||||
The source password is encrypted while the job is active and cleared when it
|
||||
finishes, fails, or expires. Jobs must start within 30 minutes and can run
|
||||
for up to 24 hours before the source password is needed again. If a job does
|
||||
not start, check `journalctl -u coulobre-mailbox-import-worker`. Let active
|
||||
imports finish before upgrading from the old password-based importer. The
|
||||
upgrade discards legacy credentials and preserves checkpoints for a new pass.
|
||||
For manual upgrades, stop and start the import worker with the other workers.
|
||||
|
||||
### Rotate a database or mailbox password
|
||||
|
||||
|
||||
@@ -16,6 +16,8 @@ only use shared components available in its supported Core versions.
|
||||
`aria-current="page"` and give the tab navigation an accessible label.
|
||||
- Use `.live-sections` to space stacked sections. Keep live status refreshes
|
||||
separate from forms so they cannot erase edits or move keyboard focus.
|
||||
For background jobs, show progress and the terminal result in that same
|
||||
region. Keep recovery actions discoverable without a manual page refresh.
|
||||
- Use `.surface` for sections, `.section-heading` for ordinary section
|
||||
headers, and `.table-scroll` around tables. Keep horizontal overflow in
|
||||
the table wrapper and give empty or pending states an explicit label.
|
||||
|
||||
Reference in new issue
Block a user