Skip to content
SIHub Guides
Select language
Guides/Inbox, mailboxes and portals
SIHub · Guides

Your team: Work on customer inquiries together with your assistants

Under /app/team you will find requests from contact agents, forms and connected email mailboxes in your own workspace. Under /app/inbox you will find the inbox with the request list and the email history. In the team area, you select the customer inquiry on the left, your selected assistants work in the middle, and you review the result on the right. The shared history shows how the request and the work are connected. The inbox shows the conversation history, customer data, appointment requests, unread messages and the processing statuses “Open”, “Waiting” and “Done”. Search and filters are limited to the signed-in workspace. Email replies are stored in a persistent send queue via a selected sender mailbox.

Via Inbox → All inboxes you can show all requests or select a specific mailbox. The selection takes into account both the assigned mailbox and the mailboxes of individual messages in the history. Portal, intake type, processing status and search can be combined; the counters refer to the filtered selection and are independent of the selected status.

In the email area, you change the Folder via a compact selection list, for example between Inbox, Sent and Trash. The search icon opens the search with mailbox selection in a separate window above the view. The list updates as you type; Search closes the window. Active search terms and filters remain visible in compact form and can be removed using the Reset button. Folder and mailbox can be combined with the search. This compact navigation applies to the inbox at /app/inbox; the team view keeps its request filters.

Show images in emails

HTML emails show formatting and embedded images directly. With Load images above the email, you also allow external images, such as logos and background images. The sender may be able to tell that you opened the email. This permission applies only to this message and is kept when the view refreshes, until you leave the inbox or team view or reload the page. Other messages remain blocked. Scripts, forms and external style sheets remain blocked even after images are allowed. SIHub cannot restore image addresses that are no longer reachable.

The normal Deploy action for SIHub in AppHub or Sync with deployment also delivers this change for HTML emails that have already been saved. No data migration or additional settings are required. Plain builds and sync without deployment activate the change only at the next deploy.

Use existing agents for a request

Select a request and one of your existing agents. Enter a specific work order, for example preparing a reply or listing missing documents. You can also assign a team member as the responsible person. The assignment does not grant any additional access rights. Several assistants can take on their own tasks for the same request one after another; they are not started automatically just by being selected.

Start work order creates a real work order for the selected agent. Its status, results and required approvals appear in the team area. The work order uses the published agent configuration, the central AI access and the approved actions. Without a running agent worker, a work order remains queued. You can stop running work orders.

Your own approved tools and specialist assistants remain bound to the existing agent permissions. Write actions require the existing human approval. A result is not sent to the customer automatically: review it, add it to the draft reply if needed and then send it explicitly via the selected mailbox. New customer messages received since the work order started are flagged when the result is applied. You still confirm calendar bookings in the appointment agent.

Select a tax agent

Select your configured tax agent and explicitly the matching client of this workspace. The selected client is bound to this single work order; the agent's general client assignment is not changed. Cash-basis and balance sheet agents use the matching profit determination method. If the assignment is missing or does not match, no professional analysis starts.

The tax agent receives this client's existing server-side report data as a basis. Customer texts do not replace this data. Results remain subject to professional review; the team selection does not trigger a submission. The tax area remains available for receipts, reports and existing approvals.

Private agent tasks

The customer details, work instructions, model messages, tool arguments and results of the associated agent work orders are also stored encrypted. Encryption is passed on to delegated sub-orders. General API keys and users with read-only permissions have no access to these private team work orders.

Their content is not copied into general chat histories or new unencrypted memories. No automatic write access is available for new memories from private requests.

Inboxes and portals

By default, the inbox shows all imported messages by time received, newest first. Newsletters and advertising remain visible there. The optional Inbox agent rates importance and urgency without hiding messages or moving them in the original mailbox. When owners or administrators open the inbox, a check runs to see whether the one-time six-month import has been completed for each active IMAP mailbox. For existing mailboxes without a completion marker, the import starts automatically and continues in several small batches until it is finished. Search also covers the text of saved messages. For replies, a valid Reply-To-address of the most recent incoming email is used. Messages that have already been moved successfully appear under Trash and remain under All emails for reference.

Changes made on a phone or in other email programs are also applied during the regular IMAP sync: if an email that has already been assigned no longer exists in the original inbox or is marked as deleted there, it disappears from the SIHub inbox and its open rating counters. This also applies to messages imported before the update that have a unique IMAP mapping. A message restored at the provider reappears after the next sync. Under All emails and in the team history, the saved copy is kept; it is marked as removed or moved at the provider. Moving a message to an archive is therefore not confirmed as moving it to the trash.

Failed or incomplete listing queries do not hide any messages. If IMAP identifiers have changed or the original mapping is missing, no deletion is assumed. The existing inbox worker and the automatic refresh of the open view perform the sync; no agent subscription or additional provider authorizations are required for this. The normal Deploy action for SIHub in AppHub or Sync & deploy also sets up the sync, including its status table, for existing installations. Repeated upgrades preserve messages, credentials, approvals and subscriptions. Sync without deployment and plain builds activate it only at the next full deploy.

Delete also moves a received email that is mapped via IMAP to the trash in the connected original mailbox, for example at GMX. Other email programs see this change the next time they sync the same mailbox. Restore will also retrieve them from the provider, provided the trash entry can be clearly assigned. The persistent queue processes both actions at the next regular inbox matching. The status displayed distinguishes between marked and confirmed changes; A connection error or unclear output appears as a note for testing. No agent subscription is required for these explicitly clicked actions.

In SIHub, a deleted email is immediately and always in the trash, even if the mailbox is deactivated, the IMAP assignment is still missing or the provider refuses to move it (e.g. because the trash folder is not clearly recognized). If the provider refuses, the inbox worker repeats the move every day at 11:00 p.m. (Europe/Vienna), a maximum of seven times per email; the email shows the next attempt and the counter in the trash. Try again starts the next attempt immediately, Restore from trash takes back an order that has not yet been executed. After the seventh unsuccessful attempt, the email remains deleted in SIHub, but remains in the provider's inbox; the note states the last error, and Try again a new round begins. An unclear outcome (connection lost during moving) is not automatically repeated.

Unsubscribe from newsletter stands next to Move to trashas soon as a received email has a way to unsubscribe: the header List-Unsubscribe or alternatively an unsubscribe link in the HTML content. A DKIM-signed one-click logout (List-Unsubscribe-Post) sends SIHub directly to the provider, only to public HTTPS addresses and without redirects. Names the header one mailto:address, a short unsubscribe email is sent from the receiving mailbox; it appears below Sent. If there is only one unsubscribe page or if the automatic route fails, the button opens the sender's page in a new tab. A successful unsubscription is noted in the message (Unsubscribed from newsletter); a second click doesn't resend anything. The action needs editing rights and a private workspace; the email itself remains there until it is moved to the trash.

Sent emails without a mapping to the original mailbox are only moved within SIHub. For received messages without a reliable IMAP mapping, the mapping must be added first; SIHub reports the missing mapping instead of showing a successful deletion at the provider. Emails with a pending send cannot be deleted. Messages that were previously deleted only locally are not retroactively deleted at the provider during the update.

The normal Deploy action for SIHub in AppHub and Sync & deploy roll out the interface, the queue extension and the inbox worker together. Existing credentials, messages and helper actions that have already been approved are preserved across repeated upgrades. A sync or build alone only activates the change with the next full deploy; no additional maintenance command is required.

The Inbox agent is purchased in the shop and used directly at /app/inbox (the inbox). It rates importance and urgency and gives a reason. The classification can be corrected and, if you wish, remembered personally for future emails from the same sender. Priority filters and the Done status help you work through your emails. An existing valid inbox agent subscription remains valid; old links to /app/postfach-helper open the inbox. Data taken over from AppHub also remains available without re-entering credentials. For original-mailbox actions, the IMAP retrieval gradually adds missing header/UID data for imported messages.

An administrator sets up multiple mailboxes with SMTP and optionally IMAP. Both connections require SSL or STARTTLS. The form uses name, address, smtp_host, smtp_port, smtp_tls, smtp_user, smtp_password, imap_host, imap_port, imap_tls, imap_user, imap_password, imap_folder and enabled. An empty password when editing keeps the existing password. The API returns only smtp_password_set and imap_password_set, never the saved passwords.

With Add inbox World4You is preselected as the provider. The template sets smtp.world4you.com:587 with STARTTLS and imap.world4you.com:993 with SSL/TLS according to the World4You guide. Check the specific server details for your inbox in the World4You customer area and change them directly in the form if needed. Further templates are available for Gmail, GMX, WEB.DE, Yahoo, iCloud, AOL, Fastmail, Zoho, IONOS and T-Online; alternatively, you can enter all connection details manually. For known address domains, the form suggests the matching provider. An explicitly selected template stays selected when the address is changed later. The templates only affect new or explicitly switched mailboxes: when editing, saved server data is kept. They do not change passwords or existing accounts automatically. If additional steps are required, a step-by-step guide with official help links appears directly below the provider selection. This guide is also shown when editing existing accounts and for known SMTP/IMAP servers entered manually. If sending and receiving use different providers, both guides appear. Save the credentials after setup and test both connections.

The instructions distinguish between the following requirements (sources checked on October 29, 2026):

Provider Additional setup
Gmail / Google Workspace Two-step verification and Google app password; for Google Workspace, also check the account policies and IMAP access. For private Gmail accounts, IMAP is already enabled.
GMX / WEB.DE Enable IMAP in webmail and create an app password: GMX, WEB.DE. GMX.com has its own English menu items and links to enabling IMAP and to app passwords.
Yahoo / AOL Generate your own app password for SIHub: Yahoo, AOL.
iCloud Two-factor authentication and App-specific password.
Fastmail App password with email access; the Basic plan does not support external email programs.
Zoho Enable IMAP, check your plan and the server for your own data center; with 2FA/SAML, generate an app password.
IONOS Mail Basic / Business When using Webmail 2FA you need to create an app password; otherwise use the mailbox password.
Telekom / T-Online Separate password for email programs.
World4You With regular mail hosting, the mailbox password is sufficient; no additional special instructions are needed.

For Outlook.com, the Microsoft documentation requires OAuth2/Modern Auth for IMAP and SMTP. SIHub's current password sign-in does not support this. The selectable option Outlook.com / Microsoft 365 (OAuth required) explains this limitation and disables saving this selection. It does not change any existing server data or passwords. For IMAP access to Exchange Online, too, an app password is no substitute for OAuth. The guide links to the separate Microsoft connection for agents for reading messages and creating draft replies. This connection does not import emails into this inbox and does not handle SMTP sending here. Using Outlook as an email program for another provider requires selecting the actual email provider.

The usual Deploy actions for SIHub in AppHub and Sync with deployment deliver the guides automatically. No data migration, additional provider configuration or manual activation is required. Existing mailboxes and credentials are preserved even with repeated deployments. Sync without deployment and plain builds stage the change for the next deploy.

Every signed-in user can view the saved mailbox passwords of their own workspace. When editing an inbox, owners and administrators select View saved passwords; members with edit or read permissions use the button of the same name in the inbox. The current SIHub password must be entered again before each display. The passwords are removed from the view after 30 seconds and when hidden or closed. API keys and operator access to other workspaces cannot retrieve them.

Under Mailboxes & portals → Mailboxes each saved inbox offers Test SMTP and, if receiving is set up, Test IMAP. Änderungen zuerst speichern: Die Tests verwenden die gespeicherten Zugangsdaten, auch bei einem deaktivierten Postfach. SMTP prüft die verschlüsselte Verbindung und gegebenenfalls die Anmeldung; IMAP prüft zusätzlich den eingerichteten Ordner im Nur-Lese-Modus. Die Ergebnisse erscheinen getrennt direkt beim Postfach. Es wird keine Testmail versendet und keine Nachricht übernommen. Im eigenen Nicht-Demo-Arbeitsbereich brauchen diese Verbindungstests keine Betreiber- oder Workspace-Livefreigabe. Ein erfolgreicher SMTP-Test bestätigt noch keine Zustellung oder Absenderfreigabe beim tatsächlichen Versand.

For a private Gmail mailbox, this form uses password sign-in. In your Google Account, turn on 2-Step Verification and create a Google app password. Enter it as the SMTP and IMAP password, save the inbox and run both tests again. The normal Google account password is not sufficient for this connection. When editing, empty password fields keep the values already saved. If SMTP still reports a connection error afterwards, check that you can reach smtp.gmail.com:587 from the SIHub server; the SMTP error alone does not prove a sign-in failure.

A configured mailbox and the respective user permissions are required for mailbox retrieval and sending in your own non-demo workspace. Operator or workspace live approval for AI agents is not required for this. The first SMTP attempt starts immediately when sending: new emails, replies, manual retries, approved helper replies, portal transaction emails and automatic receipt confirmations. The contact and the send job are saved permanently beforehand. There are no sending windows or time-of-day restrictions. Replies must still be explicitly confirmed for sending. The inbox worker handles retries after temporary errors and other scheduled inbox actions; without a running sihub-inbox.timer they are not retried or processed automatically.

Portals have an identifier, a name, an HTTPS address and a confirmation mailbox. Their access key is shown once when it is created or explicitly renewed. A disabled portal and a replaced key cannot save any further requests. The automatic confirmation acknowledges receipt of the request; a requested appointment is only confirmed personally.

The native SIHub contact agent uses the source sihub-native. Anfragen bleiben auch ohne eingerichtetes E-Mail-Postfach erhalten. Bei Kontakten mit ausschließlich einer Telefonnummer wird keine E-Mail-Bestätigung erzeugt; zum Antworten per E-Mail muss eine Kundenadresse vorliegen. Der native Kontakt und sein Posteingangseintrag werden in derselben Datenbanktransaktion gespeichert. Die Einwilligung zur Kontaktaufnahme bleibt Voraussetzung des Kontaktagenten.

Encryption and workspaces

Mailbox configuration, including addresses, user names and passwords, portal names and access keys, customer data, appointment requests, messages, email headers and conversation histories, is stored encrypted in MariaDB. Previews are created from the encrypted messages after the permission check. There is no additional unencrypted preview or sending copy.

Encryption binds each record to its workspace, its type and its ID. Ciphertexts copied from other records are rejected. The persistent master configuration uses SIHUB_DATA_ENCRYPTION_KEY, alternatively the existing provider or calendar key. Without explicit configuration, SIHub creates a private persistent key file in the instance directory; SIHUB_DATA_ENCRYPTION_KEY_FILE can set its path. The file requires permissions 0600. The master key and database must remain available together for restores from backups.

Operational IDs, statuses, timestamps and non-personal portal identifiers remain visible for mapping and queues. Access keys are additionally hashed; request and message identifiers are compared using workspace-specific hashes. No names, messages or sign-in secrets are output in sending errors. Deleting a workspace removes its mailboxes, sources, threads, messages and IMAP tracking lists via cascades.

Inbox operation and sending

Requests are first saved locally. In your own non-demo workspace, SMTP sending and IMAP retrieval require a configured, enabled mailbox with valid credentials. Operator and workspace live approval for AI agents is not required for these standalone inbox functions. The worker checks the mailbox configuration; directly triggered actions also check the respective user permissions. IMAP uses UID, UIDVALIDITY and BODY.PEEK; the read status in the original mailbox is preserved. Replies are only assigned to the existing case if the message reference, customer address and inbox assignment match. Normal new emails do not receive an automatic acknowledgment.

A message explicitly rejected by the mail server is marked as failed or, if the rejection is temporary, rescheduled with a limited waiting time. If the connection is lost during DATA or a worker hangs after sending, the status is “Unclear”. Such messages are not resent automatically. Before retrying manually, a possible duplicate email must be confirmed. After a positive DATA response, a failed QUIT-connection does not undo the successful send.

The bundled units apache2/sihub-inbox.service and apache2/sihub-inbox.timer start a limited run: 90 seconds after system startup, then 10 seconds after the end of the previous run. After the run, the worker waits (--watch 50) up to 50 seconds via IMAP IDLE for new emails and takes over reported mailboxes immediately including push notifications; Providers without IDLE will continue to be queried for each run. The opened inbox asks every 5 seconds GET /api/inbox/changes and only reloads the list if there is a change. After a transient SMTP error, 60, 120, 240, and 480 second wait times remain until the next possible retry; after five unsuccessful attempts, the job is marked as failed. A later timer run can further postpone the actual repetition time. you use /etc/sihub/sihub.env and the same private key as SIHub. A file lock prevents overlapping workers; atomic database claims additionally protect against simultaneous manual sending. The normal server installer and Update SIHub in AppHub install and enable the timer automatically after successful preparation, even for installations that were previously stopped. The log files are prepared with suitable write permissions. prepare --no-start prepares these steps without starting the service.

API contract

Signed-in users can use /api/inbox/config, /threads, /threads/<id>, /threads/<id>/read, /threads/<id>/status, /threads/<id>/reply and /messages/<id>/retry. Administrators manage /mailboxes and /sources as well as the explicitly triggered live operations /process and /sync. Mutations use the existing session protection and CSRF tokens. The portal endpoint /api/inbox/inquiries uses its own Authorization: Bearer <ingest_token> and can only write to the workspace determined by this access key.

/compose, /threads/<id>/reply, /messages/<id>/retry and /send run the targeted SMTP attempt before responding. HTTP 200 with state=sent confirms acceptance by the mail server, HTTP 202 with queued or sending a send that is still pending; failed returns HTTP 502, uncertain HTTP 409. The interface displays this status and classifies successfully sent new messages under “Sent”. /inquiries confirms the saved request and returns the current confirmation sending status separately in the confirmation field.

Email notifications from live conversations are sent within the triggering HTTP call once the respective transaction has been completed. Existing access checks, tenant separation and deduplication are preserved. Webhook jobs continue to run through the notification worker. Contact, registration, contract and withdrawal emails already use an immediate first sending attempt.

The normal SIHub deploy action or Sync with deployment activates this change, including the service restart and the updated interface. No migration, new credentials or manual maintenance commands are needed. A plain sync and build-only runs activate it only at the next deploy.

GET /api/inbox/threads also accepts mailbox_id; all filters are combined within your own workspace. Selecting an inbox is optional. POST /api/inbox/mailboxes/<id>/test expects {"protocol":"smtp"} or {"protocol":"imap"} and is reserved for owners and administrators. A completed test returns test with mailbox_id, protocol, success, code, message and authenticated. Connection errors appear in the test result without exposing raw server responses or credentials. Invalid input or missing access rights are returned as API errors.

POST /api/inbox/mailboxes/<id>/credentials expects the current current_password and is only allowed in the browser session of a signed-in user in their own workspace. The endpoint is rate-limited, logs only the access and returns Cache-Control: no-store.

An external request contains request_id, name, email, message and optionally subject, phone, page_url, appointment, origin_kind (bot or form) and messages with role/content. Repeats of the same request ID within the same portal reuse the existing case. A response contains body, mailbox_id and its own request_id; resubmitting does not create a second queue message.

Isolated testing

tests/test_inbox_service.py and tests/test_inbox_worker.py use temporary SQLite and fully simulated SMTP/IMAP connections to check encryption, workspace and record binding, outer transactions, cascades, deduplication, search, sending states, read status and worker access rules. They do not send real emails and do not access a real mailbox. MariaDB schema translation is also checked; acceptance by real mail servers remains a separate live check.

Transactional emails via a portal key

POST /api/inbox/send uses Authorization: Bearer <ingest_token> and does not require a browser session. The portal key may only send via the active mailbox assigned to the portal; sender, mailbox and workspace cannot be chosen freely. Demo workspaces and disabled portals are blocked.

{"request_id":"wavelink-example-0001","to":"[email protected]","subject":"E-Mail bestätigen","body":"Dein Bestätigungslink …"}

Exactly these four fields are allowed, with one recipient, a subject of up to 300 characters and a message of up to 24,000 characters. Request IDs require 8–128 characters from A-Z, a-z, 0-9, ., _, :, -. SIHub stores the job persistently and encrypted and starts sending via SMTP immediately within the same API call. Only the requested message is sent, without waiting for the next timer run or other messages in the queue.

The response contains ok, message_id, state and duplicate. The HTTP status describes the result of the sending attempt:

HTTP state Meaning
200 sent The SMTP server accepted the message.
202 queued Sending has been rescheduled after a temporary error.
202 sending Another call or worker is already sending the same message.
502 failed Sending failed; ok is false.
409 uncertain SMTP acceptance is unclear; ok is false.

sent confirms SMTP acceptance, not receipt in the recipient's inbox. Error responses contain a sanitized message without SMTP credentials or raw server responses. The same job with the same ID in the same portal reuses the existing message and returns duplicate: true and its current status. Messages that have already been sent, are in progress or are unclear are not sent again; for scheduled retries, the waiting time is kept. Different content under the same ID returns HTTP 409. The limit is 60 calls per minute per IP and additionally per portal.

The existing encrypted queue and the sihub-inbox.timer safeguard retries after temporary errors. No additional contact receipt confirmation is generated. The portal key still grants no read access to the inbox or credentials. The normal Deploy action for SIHub in AppHub or Sync with deployment activates immediate API sending through the included service restart. Existing mailboxes, portal keys and waiting messages are preserved; no additional migrations or configuration steps are required.

GET /api/inbox/send/health uses the same portal bearer and checks locally the active sender mailbox, the saved SMTP configuration and only the messages of the associated portal and workspace. The check does not send a test email, does not open an SMTP connection and does not change any messages. HTTP 200 means status: "ok", HTTP 503 means status: "degraded"; invalid or deactivated portal credentials return HTTP 401. The response contains ok, status, configured, transport: "smtp", a fixed reason-code and queue with the counters queued, sending, stalled, failed, uncertain. Addresses, content, credentials and statistics of other portals are not returned.

stalled counts messages waiting longer than five minutes and expired sending leases. failed and uncertain cover the last 24 hours based on the creation time or the last attempt/backoff time; open queues remain visible regardless of age. Reasons are smtp_ready, mailbox_missing, mailbox_disabled, smtp_not_configured, queue_stalled, delivery_failed, delivery_uncertain or, if no check is possible, inbox_unavailable. A healthy local result does not confirm delivery to the recipient's inbox.

The inbox worker logs the start, completion and summarized sending problems in the configured SIHUB_LOG_FILE and the service journal, without recipients or email content. Failed, unclear, rescheduled or stuck deliveries result in ok: false and an error exit code. An interrupted send is recorded as unclear and is not resent automatically. The usual SIHub deployment covers the check and the worker via the existing inbox timer; no additional migrations are required.