Attachments are processed as they arrive. A reply to the sender waits in the Email queue for a person — unless an administrator deliberately switches automatic replies on.
Connect one mailbox, send it a PDF and see the attachment arrive as a document — then set up the outbound mail that alerts and replies depend on.
Before you begin
Connecting a mailbox and saving the outbound mail settings both need the Admin role.
- An account with the Admin role
- A mailbox kept for documents — Logley reads its inbox
- The mailbox’s IMAP server name, reachable on port 993 with TLS
- For Gmail, an app password; for Microsoft 365, the tenant ID, client ID and client secret of an application registered in Microsoft Entra ID; for any other server, the mailbox password
- The name, port and sign-in details of the server your outbound mail goes through
Logley refuses an IMAP or SMTP server whose name resolves to a private address — 10.x, 172.16–31.x or 192.168.x — until your organization’s administrator adds it on Settings → Integrations → Internal hosts. The change is saved at once and needs no restart; Supported document formats and sources says what an entry can be. Loopback, link-local and metadata addresses stay refused, listed or not. A server with a public name, such as outlook.office365.com or imap.gmail.com, needs nothing.
Connect the mailbox
Open Mailboxes
The tab is Mailboxes, under Document intake. Press Connect mailbox. A dialog of four steps opens (Provider, Sign in, Test and Senders), with the table of mailboxes still behind it. Nothing is stored until Logley has signed in to the mailbox.
Settings, then Document intake, then Mailboxes
Choose the provider
Where is the mailbox? offers Microsoft 365, Gmail and Another mail server (IMAP), each with a line saying what it signs in with. Choose one and press Continue.
The dialog opens on Microsoft 365. The provider decides which boxes the next step shows. Fill in the sign-in
- Name — optional. What the mailbox is called in Logley, for example Invoices. Without one it goes by its address.
- Email address — the mailbox Logley reads, and also the sign-in name. There is no separate username field.
- Mail server — filled in for Microsoft 365 (
outlook.office365.com) and Gmail (imap.gmail.com). For another mail server, your IMAP server’s host name, without a port. - For Microsoft 365, the Tenant ID, Client ID and Client secret of an application registered in Microsoft Entra ID. Logley signs in as that application rather than as a person, so the application must be allowed to open the mailbox over IMAP.
- For the other two, Password: for Gmail an app password made in the Google account, not the account’s own password; for another mail server, the mailbox’s password.
- Only the chosen provider’s boxes are shown, and only they are sent. Continue names any box the provider needs that is still empty; Back returns to the provider and keeps what you typed.
Microsoft 365 fills in the mail server and asks for the application’s details instead of a password. Press Test and connect
The third step repeats the provider, the address and the mail server. Test and connect signs in to the mailbox, and the mailbox is connected only if that works. A refusal stays on this step and says what is wrong in plain words, such as that the mail server refused the sign-in, with the server’s own message under What the mail server said. Press Back, correct what you typed, and the button reads Test again.
- Port 993 with TLS, and the INBOX folder, are fixed. There is no field for either.
- Each administrator can connect one mailbox per provider. Your table shows the mailboxes you connected; other administrators’ mailboxes are read as well, but appear only in their own tables.
Add statement senders, or finish
The last step says the mailbox is connected, and Logley reads it from then on. Bank statement senders are optional and can be added later; Done closes the dialog, and with a sender entered the button reads Save and close.
Change a connected mailbox
The pencil in a mailbox’s row opens Change mailbox. It holds the Name, the Mail server, the Password (for Microsoft 365, the Client secret) and the Bank statement senders, and Save changes stores what you changed.
- The stored password or client secret is never shown: it reads Stored. Leave it alone and it is kept; Replace opens an empty box for the new one.
- A new mail server, password or client secret is tried against the mail server first and stored only if that works. A refusal stays in the dialog, in plain words, with what you typed.
- The address and the provider cannot be changed: another address is another mailbox, so connect it as one.
- The bin in the row removes the mailbox, after asking. Logley stops reading it, and the documents it already took in stay.
What Logley takes from the mailbox
- On first connection, the messages delivered in the last seven days; after that, new mail. Logley listens for new messages and checks the inbox at least every two minutes.
- Only messages with at least one attachment in a supported format — PDF, PNG, JPG, TIFF, XLSX, CSV or DOCX, up to 50 MB each. Every such attachment becomes a document and is processed like an upload.
- Each document records where it came from: its Source is Email, and Email source shows the sender and the subject. The body of the message is not stored with it.
- Bank statements in MT940 or CAMT.053, alone or in a ZIP, are not read as documents. Each mailbox’s Bank statement senders decides whether one is imported or held, as Confirm it works shows.
- A message without a supported attachment is left alone — so an email rule never sees it either.
- Nothing is moved or deleted. Logley marks each message it has taken with a private IMAP keyword, so it is never read twice, and leaves it where it was.
- The Active switch in a mailbox’s row pauses it, at once: its state reads Paused, and a paused mailbox is not reported as failing. Switched back on, reading resumes from where it stopped.
Decide on automatic replies
Below the table of mailboxes sits the Automatic replies switch, stored the moment you flip it. It is off until an administrator turns it on, and it covers everything Logley would otherwise send to an inbound sender by itself.
- No receipt goes back to the sender.
- A rule with a “Send email reply” action only drafts the reply. The draft waits in the Email queue until a person sends or discards it.
- The sender of each email that produced a document gets a receipt, written from the “Ingestion Receipt” template.
- “Send email reply” rules send at once — never to no-reply or system addresses, and at most once per sender every 15 minutes. A reply that fails to send stays a draft.
How drafts are reviewed and sent is covered in the Email queue chapter.
When someone approves or rejects an invoice and SMTP is configured, the supplier is emailed from the Approval Notification or Rejection Notification template (at its contact address, or else the address the invoice came from), whatever the Automatic replies switch says.
Connect outbound mail (SMTP)
Open Outgoing mail
The tab is Outgoing mail, under Email. The band under the tabs reads Configured once a host and a From address are saved.
Settings, then Email, then Outgoing mail
Enter the server
- SMTP Host — for example
smtp.gmail.com, with an App Password, orsmtp.office365.comfor Outlook 365, as the hint under Password says. - Port — 587 unless you change it.
- SSL/TLS — StartTLS, the default, requires the server to upgrade the connection to TLS and fails if it cannot. Auto uses TLS from the first byte on port 465, and elsewhere upgrades only if the server offers to — otherwise it carries on unencrypted.
- Username and Password. Logley signs in only when both are filled, so for a relay that needs no sign-in, leave Username empty.
- From Address and From Name — what recipients see.
The tab before anything is saved. Port 587 and StartTLS are the defaults. - SMTP Host — for example
Press Save changes
A bar at the bottom of the tab counts what you changed, and Save changes stores it. A host with spaces in it, a port outside 1 to 65535 or a From Address that is not an email address is named under its row and nothing is saved. That check does not connect to the server: a host on a private address that has not been allowed is saved without complaint and refused only when mail is sent. Once the host and From Address are saved, Send test email sends one message through them to the address in the box beside it (yours, to begin with) and shows the server’s reason if it fails. With a change not yet saved the button reads Save and send test: it saves first, so the test never runs on settings other than the ones on screen.
Editing later: the saved password is never shown
The password row never shows the stored password: it reads Stored. Leave it alone and the stored password is kept. To change it, choose Replace, type the new one and press Save changes; Keep the stored one backs out.
To remove a stored SMTP password, use Remove saved password, shown while one is stored, and then Save changes. A mailbox’s password or client secret works the same way in Change mailbox: it reads Stored until you choose Replace, and the new one is tried against the mail server before it is stored, as Change a connected mailbox describes.
What goes out through SMTP
Everything Logley emails goes out through this server; without it, nothing is sent at all.
- Alert emails, once switched on under Alert emails, the tab beside this one. Choose a Minimum severity: Info (all alerts), Warning and critical or Critical only. Set the Recipients as well; left blank, alerts go to the organization’s first user account that is still active. At most one email goes out per alert type every 15 minutes.
- Supplier notifications when an invoice is approved or rejected.
- Replies from the Email queue, sent when a person presses Send Reply. Ingestion receipts and rule replies are sent only with automatic replies on.
- The invoices you issue, when you send them from Billing.
The wording of receipts and notifications is edited under Reply templates, in the same group.
How the credentials are stored
Logley encrypts the mailbox password, the Microsoft 365 client secret and the SMTP password before it stores them, with a key from the server’s configuration (EMAIL_ENCRYPTION_KEY). A stored password is never sent back to the browser: Outgoing mail and Change mailbox show only that one is stored.
The stored passwords can be read only with the key that encrypted them. Restored onto a server with a different key, they stop working and have to be entered again. A mailbox in that state reads Failing, and its row says to enter the password or secret again: Change mailbox, then Replace.
Confirm it works
The band under the tabs says how many mailboxes are connected, when one was last read and, under Problems, how many are failing. In the table each mailbox has its State: Reading, Failing, Paused or, before its first read, Not read yet; its Last fetch: when Logley last connected to it; and its Last email: when it last took a message in. A failing mailbox says what is wrong under its row in plain words, and What the mail server said opens the server’s own message.
Bank statement senders are in Change mailbox, and in the last step of connecting: the addresses or @domains your bank sends statements from. MT940 and CAMT.053 statements from them are imported and mark invoices paid. A statement from anyone else is not imported by itself, so while the box is empty, none is.
Then send the mailbox an email with a PDF attached. Within about two minutes it should appear under Documents, and its page should show Source as Email, with the sender and subject under Email source.
Attachments that arrive are processed like any upload, and each one keeps its sender. Outbound mail is ready when Outgoing mail reads Configured and the first send succeeds.