Machine-translated – improvements welcome. Suggest an improvement
Mailboxes¶
Ablago can fetch one or more email mailboxes via IMAP and take over every email as new post. Invoices, notices and scans ("Scan to email") that arrive by email thus land in Ablago without downloading and uploading.
Area not in the sidebar?
This area is not in every level of the workbench – in the level Beginner, the default for private use, it is hidden. The table under Customise the workbench shows from which level it is there. You can show it under Customise the workbench, for everyone or just for you. Hidden does not mean switched off: the area keeps working, and its notices always appear in the overview.
A separate mailbox
Use a separate mailbox (e.g. dms@…) or a forwarding – not your private main mailbox. Ablago moves or deletes emails it has taken over.
Setting up a mailbox¶
Workbench → Mailboxes → + Mailbox. On the right, the mailbox is organised like a folder type: the jump bar with Expand all / Collapse all at the top, below it the areas Basic details (fetch automatically, name, for) → Connection (server to password, with Test connection) → Sign-in via OAuth 2.0 (only with OAuth, right after the choice in Connection) → Fetching (folder to original email) → Status → Versions (both after creating; versions without the password). Collapsed, each area shows a summary, such as "Folder INBOX · every 5 minutes"; your device remembers what you expand per mailbox. Save mailbox at the bottom saves basic details, connection and fetching at once; if Ablago rejects a detail, its area is marked red and expanded.
| Detail | Meaning |
|---|---|
| Fetch | ticked: Ablago fetches the mailbox regularly (default). Unticked: the mailbox stays set up but isn't fetched |
| Name | e.g. "Invoices"; appears in the post's history |
| Server, encryption, port | usually SSL/TLS and port 993; STARTTLS usually port 143. Without encryption only after explicit confirmation |
| Sign-in | Password (or app password) – default, as with all older mailboxes – or OAuth 2.0 with the provider Microsoft 365 / Outlook.com, Gmail / Google Workspace or other provider, see Sign-in with OAuth |
| Username, password | the password is stored encrypted with the key and never shown again; leaving it empty keeps it. With OAuth there is no password; the username is the account's email address |
| Folder | default INBOX |
| Fetch interval | in minutes, 1 to 1440 (one day), default 5 |
| For | optional: this user appears on every post and has it under "To do" |
| Only from these senders | optional: addresses (rechnung@stadtwerke.example) or domains (bank.example, including subdomains) |
| After taking over | move to a folder (default DMS, created), only mark as read or delete |
| Only emails with attachments | others stay unchanged in the mailbox |
| Original email as .eml | default on: the whole email is added at the very end of the post as a document marked “Original email” |
Test connection signs in, names the number of emails in the folder and says in case of errors what the cause is: sign-in refused, server unreachable, certificate invalid. A stored password (or the OAuth sign-in) only goes to the stored server, port and encryption: if you change one of them, enter the password anew (or save and sign in anew). Fetch now (area Status) fetches immediately. Remove mailbox (bottom left) deletes the mailbox from Ablago after a confirmation; the emails in the mailbox stay as they are.
Status¶
At the top of Status, one sentence says whether fetching works:
- Running – "Running – last fetched 15/11/2026, 10:41, next fetch 15/11/2026, 10:56." in normal text.
- Failing – in red: "Failing since 09/11/2026, 14:02 – 3 attempts failed: …" with the reason for the last error and the next attempt. Next to it, Check connection leads to the area Connection (with an expired OAuth sign-in, Go to sign-in leads to the area Sign-in via OAuth 2.0). Collapsed, Status then shows "failing since …".
- Not fetched yet, or Off if the checkbox Fetch is off.
Below are Fetch now and the emails taken over most recently with a link to the post. Errors after which fetching worked again are not red: they are collapsed under Earlier problems, each with "resolved on …" (the time of the next successful fetch; for errors from older versions "resolved since"). If fetching fails several times in a row, Ablago waits longer and longer between attempts (up to 6 hours) and writes an email to everyone who administers Ablago after the third error.
App passwords¶
Many providers don't let programs like Ablago into the mailbox with the normal password but require a separate app password – often only once two-factor sign-in is on.
| Provider | Server | Note |
|---|---|---|
| Gmail | imap.gmail.com, 993 |
Google account → Security → switch on 2-Step Verification → App passwords |
| GMX | imap.gmx.net, 993 |
allow access in the settings under POP3/IMAP retrieval; with two-factor an app password |
| WEB.DE | imap.web.de, 993 |
allow POP3/IMAP retrieval in the settings; with two-factor an app password |
| T-Online | secureimap.t-online.de, 993 |
create a separate Email password in the customer centre (not the login password) |
| iCloud | imap.mail.me.com, 993 |
create an app-specific password at account.apple.com; the username is the iCloud email address |
| Outlook.com / Hotmail, Microsoft 365 | outlook.office365.com, 993 |
Microsoft no longer accepts username and password for IMAP – use sign-in with OAuth |
Sign-in with OAuth¶
With Microsoft 365, Outlook.com and, if you wish, with Gmail, Ablago signs in with OAuth 2.0 (IMAP with XOAUTH2): you sign in once at the provider and allow Ablago access to the mailbox. Ablago gets tokens for this instead of a password and renews them itself.
For this you need your own app registration at the provider – the Ablago project doesn't run a shared service. The app applies to all mailboxes of this provider in your Ablago.
How it works¶
- Under Email and address, enter Ablago's address (e.g.
https://dms.example.org). From it the redirect URIhttps://dms.example.org/api/oauth/postfach/rueckrufresults; the workbench shows it. Signing in in the browser needs an https address (http only vialocalhost); without one, the device code works with Microsoft (see below). - Create the app at the provider (guides below).
- Workbench → Mailboxes → + Mailbox: Sign-in OAuth 2.0, choose the provider – server, port and encryption are prefilled (
outlook.office365.comorimap.gmail.com, 993, SSL/TLS). The username is the mailbox's email address. Save. - In the area Sign-in via OAuth 2.0 under App at the provider, enter client ID and client secret, for Microsoft the tenant, Save app. The app has a save of its own because it applies to all mailboxes of this provider (and to email sending).
- Sign in in the browser: Ablago redirects you to the provider; after signing in and consenting you come back to the workbench. Or Sign in with device code: Ablago shows a code and an address; there you sign in on any device, and the workbench waits meanwhile.
- Test connection.
The State shows when and by whom the sign-in happened. Sign out deletes the stored tokens (with Google, Ablago additionally revokes them at the provider); after that Ablago fetches nothing more there. If you change the mailbox's server, port or encryption, or the app's tenant or token endpoint, Ablago signs the affected mailboxes out too – sign them in anew afterwards. OAuth only works with encryption (SSL/TLS or STARTTLS).
Security
Ablago only stores tokens and client secret encrypted with the key. They never appear in the interface, not in the full export and not in the log; in the backup only encrypted. Signing in in the browser is protected with PKCE and a one-time value valid for 10 minutes and only applies to whoever administers Ablago and the browser that started it.
Expired sign-in¶
Ablago renews the sign-in itself before it expires. If the provider refuses – the sign-in has expired, was revoked at the provider or the account's password was changed –, then
- the mailbox shows expired or revoked with the reason,
- the overview and the workbench sidebar warn (Mailboxes with "!"),
- everyone who administers Ablago gets one email (not again with every attempt),
- fetching this mailbox rests until you sign in anew.
Microsoft Entra (Microsoft 365, Outlook.com)¶
- In the Microsoft Entra admin center → Applications → App registrations → New registration.
- Name e.g. "Ablago mailboxes". Supported account types: only your directory (Microsoft 365), or Accounts in any organizational directory and personal Microsoft accounts if Outlook.com mailboxes belong to it too.
- Redirect URI: platform Web, address from the workbench (
https://<dms>/api/oauth/postfach/rueckruf). Without a public address leave it empty and use the device code. - After creating it: take over the Application (client) ID from the Overview into the workbench; the Directory (tenant) ID as tenant – or
common(any accounts),consumers(Outlook.com only),organizations. - Certificates & secrets → New client secret → enter the value (not the ID) as the client secret. If the secret expires, create a new one here and replace it in the workbench.
- API permissions → Add a permission → APIs my organization uses → Office 365 Exchange Online (or under Microsoft Graph) → Delegated permissions → IMAP.AccessAsUser.All; plus offline_access. In Microsoft 365, Grant admin consent.
- For the device code: Authentication → Advanced settings → Allow public client flows to Yes.
- In Microsoft 365, IMAP must be switched on for the mailbox (Microsoft 365 admin center → Users → Mail → Manage email apps → IMAP).
Google Cloud (Gmail, Google Workspace)¶
Private Gmail account: better an app password
For Gmail, OAuth needs the restricted scope https://mail.google.com/. A self-created app with the status "Testing" gets sign-ins that expire after 7 days – you would have to sign in anew every week. Without this limit it only works with an app of type "Internal" in Google Workspace or after Google's verification (hardly feasible for private individuals). For private accounts an app password is therefore the better choice.
- In the Google Cloud Console create a project; under APIs & Services → Library, enable the Gmail API.
- OAuth consent screen: user type Internal (Workspace) or External; with External in status Testing, add yourself as a test user. Add the scope
https://mail.google.com/. - Credentials → Create credentials → OAuth client ID, type Web application; Authorized redirect URIs: the address from the workbench.
- Enter client ID and client secret in the workbench.
Google doesn't offer a device code for Gmail; Ablago therefore needs an address your browser reaches (https).
Other provider¶
For other providers with IMAP and OAuth 2.0 you enter the authorization endpoint, token endpoint, optionally the device code endpoint and the scope (usually with offline_access) yourself – they are in the provider's documentation. There is one such setting per Ablago. The endpoints need https://; http:// only works on your own network – which addresses count as such (e.g. .lan or .home.arpa) is described under Sign-in via a provider.
What happens when taking over¶
- Every email becomes a post: channel Email, direction incoming, status New; subject, date and sender (name and address, under From) from the email; To from the mailbox. It was created by the mailbox, not by a user. The history names mailbox, sender and time.
- One email, one post: every attachment becomes a document of its own with its file name, in the order of the email (MIME structure) – no sorting, no naming rule; only an equal name in the tab gets "(2)" as when uploading. Small embedded images (logos, signatures: embedded or
inlineunder 100 KB) are skipped; attached emails stay an.emldocument. - The original email (
.eml, if switched on) comes at the very end: as the last enclosure on the last attachment, without attachments as the post's document. It is marked "Original email", goes along when assigning and is never read by recognition, classifying or AI. A package for the archive version makes a PDF/A of it next to it, as for every document. - No splitting: separator sheets do not apply to the inbox. Ablago lets no package split a post with channel E-Mail (409); packages like Trennblatt leave the channel out anyway. Users split it themselves – Split post from here or Pages → split.
- Post from older versions stays as it is: its
.emlhas no mark (it cannot be told apart safely from attached emails); its documents stand in the order of arrival. - Duplicate attachments: if an attachment is already in Ablago (same checksum), it is taken over anyway; the post's history says "Duplicate: "Invoice.pdf" is already in Ablago – check before assigning." Where, Assign shows to everyone who may read the other folder.
- The Email's text appears as plain text on the post. HTML is converted into text; Ablago never loads images or other content from the internet.
- The same limits as for uploading apply. A too-large attachment is recorded with the reason in the history; the others are taken over. If the storage space limit is reached, the email stays in the mailbox.
- No double takeover – not even after a restart, a crash in the middle of fetching or if the server starts its numbering anew (UIDVALIDITY). The email is only moved, marked or deleted once the post is saved.
- In maintenance mode and during a restore, fetching rests. If several instances run, only one fetches. The settings are part of the backup; password and tokens stay encrypted.

