All docs

Service desk

Email requests and outgoing email

Turn emails into tickets from Microsoft 365, Google Workspace or any IMAP mailbox, and send acknowledgements, replies and notifications by email.

How email requests work

Fettledesk can read a mailbox and turn each new email into a ticket. Replies in the same thread become comments on it.

  • Each project can have one mailbox, set up in Project settings → Email requests (project admins).
  • Fettledesk checks it about once a minute, reads unread messages oldest first (up to 50 at a time), and marks each one read after handling it. Use a mailbox just for this: anything unread in it is processed.
  • A new email becomes a ticket. The subject is the title, the body the description, and attachments are added if their type is allowed and they fit the size limit.
  • The sender becomes the reporter. If they have no account, a customer account is made for them, with no password. Turn off Accept email from anyone to accept mail only from people who already have accounts.
  • A reply becomes a comment on its ticket, found from the email thread or from a key in brackets in the subject, such as [IT-42]. The quoted text below the reply is left out.
  • Only the reporter, people watching the ticket, and staff can comment by email. Anyone else who puts a key in the subject starts a new ticket instead, so guessing [IT-42] doesn't let a stranger post on someone else's ticket.
  • Automatic replies, bounces, read receipts, bulk mail and mail from the mailbox's own address are ignored, so Fettledesk never loops.
  • Recent emails, in the settings, lists every email read, what happened to it, and why if it was ignored.

With outgoing email set up, the sender gets an acknowledgement with the ticket's key, the team's public replies (never internal notes), and a note when it's resolved. Replies to those emails go back into the same ticket.

Microsoft 365

Microsoft 365 no longer accepts passwords over IMAP, so Fettledesk signs in with an app registration. A Microsoft 365 administrator does this once:

  1. Create the app registration. In the Microsoft Entra admin centre, go to App registrations → New registration. Name it "Fettledesk", single tenant, with no redirect URI.
  2. Give it IMAP access. Under API permissions → Add a permission → APIs my organization uses, search for Office 365 Exchange Online, choose Application permissions, tick IMAP.AccessAsApp, then Grant admin consent.
  3. Create a client secret under Certificates & secrets. Copy the secret's value (not its ID), and note when it expires: Fettledesk reports a sign-in failure after that date.

Then allow the app to open the mailbox, in Exchange Online PowerShell (Connect-ExchangeOnline). Use the application's client ID from the app's Overview, and its Object ID from Enterprise applications (not the app registration's):

New-ServicePrincipal -AppId <application-client-id> -ObjectId <enterprise-app-object-id>
Add-MailboxPermission -Identity [email protected] -User <enterprise-app-object-id> -AccessRights FullAccess

The permission can take up to an hour to apply. Finally, in Fettledesk, choose Microsoft 365 / Outlook and enter the mailbox address, the Directory (tenant) ID, the Application (client) ID and the client secret. Choose Test connection, then Save.

If the test says the mail server refused the sign-in, check the mailbox permission and give it a little longer to apply.

Google Workspace or Gmail

  1. Turn on 2-Step Verification for the mailbox's Google account.
  2. Make an app password (Google Account → Security → App passwords). In Google Workspace, an administrator may need to allow app passwords and IMAP for the organisation.
  3. Make sure IMAP is on for the mailbox (Gmail settings → Forwarding and POP/IMAP).
  4. In Fettledesk, choose Google Workspace / Gmail, enter the address, and paste the app password. Test, then save.

Any other mail server

Choose Another mail server (IMAP) and enter the server, port, security and sign-in details your mail provider gives for IMAP. TLS on port 993 is the usual choice. None sends the password unencrypted, and is only for a test server on your own network.

Outgoing email

Fettledesk sends acknowledgements, replies to customers, notifications, password reset links and invitations. Admins set it up once, in the avatar menu → Organisation settings → Outgoing email, then choose Send a test email.

  • Microsoft 365 / Outlook: the same kind of app registration as for incoming email (the same one works). Add the SMTP.SendAsApp application permission (Office 365 Exchange Online) and grant admin consent, give the app access to the sending mailbox as above, and allow SMTP sign-in for that mailbox: Set-CASMailbox -Identity [email protected] -SmtpClientAuthenticationDisabled $false. Then enter the sender address, tenant ID, client ID and client secret.
  • Google Workspace / Gmail: smtp.gmail.com, port 587, STARTTLS, with an app password for the sending account.
  • Another mail server: its host, port, security (STARTTLS, usually port 587, or TLS, usually port 465) and, if it needs them, a user name and password.

Emails wait in a queue and are retried for most of a day if the mail server is unavailable. Recently sent, below the settings, shows what went out and lets you retry anything that failed.

Each person chooses which notifications they get by email in Profile and preferences. In-app notifications are always on. Fettledesk marks its emails as automatic, so well-behaved auto-replies don't answer them.

Keeping mail passwords safe

  • Passwords and client secrets are encrypted (AES-256-GCM) with a key kept outside the database: SECRET_KEY if you set it, or /data/secret.key in the app's data volume. Back the key up with your database: without it, saved mail passwords can't be read and must be entered again.
  • A saved secret is never sent back to the browser; the settings only show that one is saved.
  • Only project admins can see or change a project's email settings.

When it doesn't work

What you seeWhat to check
"refused the user name or password"For Google, use an app password. For Microsoft 365, the mailbox permission and the secret.
"can't find that mail server"The server name, and that the Fettledesk server can look it up (DNS).
"refused the connection" or "didn't answer"The port and security setting, and firewalls between Fettledesk and the mail server.
"That folder doesn't exist"The folder under Advanced: it's case-sensitive on some servers.
An email is listed as IgnoredThe reason beside it: an automatic reply, or an unknown sender with new customers turned off.
Nothing arrivesThat the email is unread in the mailbox, and that Create work items from email is ticked.