Skip to content

Flowplan is now available hostedServers in Germany, backups and updates included – nothing for you to look after. Self-hosting stays free and complete.

See plans
flowplanDocumentationCommunityMarketplaceStart page

Configuration

Configuration: e-mail, integrations and workflows

The environment variables for sending mail and inbound e-mail, integrations such as GitHub and calendars, chat apps and workflows.

11 min read

On this page
  1. E-mail (SMTP)
  2. When e-mail does not go out
  3. Inbound e-mail (IMAP)
  4. Integrations
  5. Image library (Pexels)
  6. Calendar sync
  7. Chat apps
  8. Workflows

E-mail (SMTP)

VariableDefaultMeaning
SMTP_HOSTemptyTurns on sending e-mail: invitations, address confirmations, password resets and digests of unread notifications.
SMTP_PORT587Port. With 465 Flowplan speaks TLS directly, STARTTLS otherwise.
SMTP_SECUREby porttrue/false forces TLS from the start of the connection.
SMTP_USER / SMTP_PASSWORDemptySign-in at the mail server.
SMTP_FROMFlowplan <SMTP_USER>Sender, e.g. Flowplan <[email protected]>.
SMTP_TLS_CAemptyCA certificate of a mail server with a private or self-signed certificate (file path or PEM text, also on one line with \n). It is trusted in addition to the public CAs.
SMTP_TLS_SERVERNAMEemptyThe name the certificate is checked against when SMTP_HOST is an IP address or another name (e.g. mail.internal).
SMTP_TLS_REJECT_UNAUTHORIZEDempty (verify)false turns certificate verification off – only this value (case and surrounding spaces ignored); any other keeps verifying. Flowplan then warns at startup and in the instance settings.

Check delivery under Settings → Instance → E-mail → Send test email.

Internal servers with their own certificates: Flowplan verifies certificates by default. For a mail or directory server with a private or self-signed certificate, give its CA: SMTP_TLS_CA for e-mail, LDAP_TLS_CA for LDAP. In Docker, mount the CA file into the container (for example ./ca.pem:/certs/ca.pem:ro) and set SMTP_TLS_CA=/certs/ca.pem. If you reach the server by its IP address or by a name that is not in its certificate (such as 192.168.1.10 or pve.local), set the name from the certificate in SMTP_TLS_SERVERNAME or LDAP_TLS_SERVERNAME – verification stays on. For every connection Flowplan makes – also webhooks or AI providers inside your network – Node's NODE_EXTRA_CA_CERTS=/certs/ca.pem adds the CA to all of them; it is read at startup. If the test e-mail fails with "unable to verify the first certificate", the CA is missing; with "Hostname/IP does not match certificate's altnames", the name is. Only if neither is possible (for example a Proxmox relay with an auto-generated certificate), turn verification off with SMTP_TLS_REJECT_UNAUTHORIZED=false or LDAP_TLS_REJECT_UNAUTHORIZED=false. Then anyone on the network can pose as the server and read the SMTP or LDAP password – so Flowplan warns in the server log at startup, in Settings → Instance → E-mail or → Sign-in & SSO, and in the security overview.

When e-mail does not go out Since 0.12.4

Send test email shows the mail server's answer and, for the usual causes, what to do.

Answer (excerpt)CauseFix
504 5.7.4 Unrecognized authentication typeThe server does not offer the login method on this connection: the connection is not encrypted yet, or SMTP AUTH is switched off.Port 587 with STARTTLS: SMTP_PORT=587, SMTP_SECURE empty or false. With Microsoft 365 turn on SMTP AUTH (below). A relay that takes mail without login: leave SMTP_USER empty.
535 5.7.139 … SmtpClientAuthentication is disabledMicrosoft 365: SMTP AUTH is off for the tenant or the mailbox.Turn it on (below).
535 5.7.3 Authentication unsuccessful, 535 5.7.8, Invalid loginUser name or password refused.SMTP_USER is usually the full address. Check SMTP_PASSWORD; with two-factor sign-in at the provider you need an app password. Microsoft 365 answers this too when SMTP AUTH is off.
Greeting never received, wrong version numberPort and TLS mode do not match.Port 465: TLS from the start (SMTP_SECURE=true, the default there). Ports 587 and 25: SMTP_SECURE empty or false (STARTTLS).
ECONNREFUSED, ETIMEDOUT, Connection timeoutWrong host or port, or a firewall or the hosting provider blocks outgoing mail (often port 25).Check SMTP_HOST and SMTP_PORT, prefer 587, ask the provider to open the port.
unable to verify the first certificate, self-signed certificateThe server's certificate comes from a private CA.SMTP_TLS_CA (above).
Hostname/IP does not match certificate's altnamesThe server is addressed by another name than the one in its certificate.SMTP_TLS_SERVERNAME (above).
550 5.7.60 SendAsDenied, 553 … not owned by userSMTP_FROM is an address the account may not send as.Use the account's own address in SMTP_FROM or allow it to send as that address.

Microsoft 365 (Exchange Online): SMTP_HOST=smtp.office365.com, SMTP_PORT=587, SMTP_SECURE empty, SMTP_USER and SMTP_FROM the mailbox's address, SMTP_PASSWORD its password. SMTP AUTH is off by default: turn it on for the mailbox in the Microsoft 365 admin center (Users → Active users → the mailbox → Mail → Manage email apps → Authenticated SMTP). It must not be disabled for the whole organisation either (Set-TransportConfig -SmtpClientAuthenticationDisabled $false), and the security defaults of Entra ID block it. Microsoft is phasing out password sign-in for SMTP AUTH; where your tenant no longer allows it, send through a connector instead: SMTP_HOST is your MX endpoint (for example example-com.mail.protection.outlook.com), port 25, SMTP_USER empty, and the connector accepts the server's public IP address.

Inbound e-mail (IMAP)

For inbound e-mail via webhook (Mailgun, Postmark, SendGrid, Cloudflare) nothing needs to be set. A mailbox of your own is polled over IMAP every two minutes:

VariableDefaultMeaning
INBOUND_MAIL_DOMAINemptyDomain of the inbound addresses, e.g. mail.example.com. The settings then show inbox+<token>@mail.example.com for each address.
INBOUND_IMAP_HOSTemptyTurns on IMAP polling (together with INBOUND_IMAP_USER).
INBOUND_IMAP_PORT993Port (143 when INBOUND_IMAP_TLS=false).
INBOUND_IMAP_USER / INBOUND_IMAP_PASSWORDemptySign-in at the mailbox. The part before @ is also the part before + in the addresses.
INBOUND_IMAP_FOLDERINBOXFolder that is polled.
INBOUND_IMAP_TLStruefalse only for a mail server on the same host or network (unencrypted).
INBOUND_MAIL_AUTHSERV_IDemptyThe id (authserv-id) your own receiving mail server or provider starts its Authentication-Results header with, e.g. mx.example.com. Also applies to inbound e-mail via webhook.

The mail server must support plus addressing (inbox+anything@… is delivered to inbox@…); Dovecot, Postfix, Gmail/Google Workspace and Microsoft 365 (switch it on there) do. Flowplan marks processed e-mails as read and deletes nothing.

Sender check: whether a sender counts as verified (SPF/DKIM/DMARC passed for the From domain) is read from the Authentication-Results header. The sender can put one in the message too – so only the topmost header with the id from INBOUND_MAIL_AUTHSERV_ID counts. Without the variable no sender counts as verified: workflows set to Verified senders only then never start, the default (all but failed ones) keeps running. The id is at the start of the header your server writes into received e-mails (Authentication-Results: mx.example.com; spf=pass …).

Integrations

VariableDefaultMeaning
FLOWPLAN_WEBHOOK_ALLOW_PRIVATEemptytrue allows webhooks to internal addresses and http:// – such as Home Assistant or n8n in the same network. Without this variable only public HTTPS addresses are allowed.
SPACE_GIT_EXPORTemptytrue turns on the Git export of spaces: space owners push their space into a repository of their own, daily or weekly.
SPACE_GIT_ALLOWED_HOSTSemptyAllowed Git servers for it, comma-separated (e.g. git.example.org). Without it any public https:// server is allowed; internal addresses never.
SPACE_GIT_ALLOW_PRIVATEemptytrue also allows internal addresses for the servers listed in SPACE_GIT_ALLOWED_HOSTS – for example a Forgejo on the same host that the container reaches via --add-host git.example.org:host-gateway. Only works together with the list; every other server stays limited to public addresses.
ISSUE_SYNC_ALLOWED_HOSTSemptyOwn servers for the GitHub, GitLab and Forgejo issue sync, comma-separated (e.g. gitlab.example.org). github.com, gitlab.com and codeberg.org are always allowed; other servers only when listed here.
ISSUE_SYNC_ALLOW_PRIVATEemptytrue also allows internal addresses for the servers listed in ISSUE_SYNC_ALLOWED_HOSTS – for example a GitLab in the same network. Only works together with the list.
NETBOX_ALLOW_PRIVATEemptytrue also allows internal addresses and http:// for the NetBox import on whiteboards – for example a NetBox in the same network. Without it, only public HTTPS addresses. The address and token are never stored on the server.
PLUGIN_ALLOWED_ORIGINSemptyHTTPS origins owners may register block extensions from, comma-separated (e.g. https://plugins.example.org). Without it only when the administration switches on Block extensions from any HTTPS address. The origins are also added to the frame-src of the Content Security Policy.
GIPHY_API_KEY / TENOR_API_KEYemptyKey for the GIF search on whiteboards at GIPHY or Tenor (if both are set, GIPHY wins). Without a key the GIFs tab is hidden. Searches run through the server; chosen GIFs up to 8 MB are stored on the server.
PEXELS_API_KEYemptyAPI key for the covers' image library. A key saved under Settings → Instance → Extensions & domains takes precedence. Since 0.13.0
EXPORT_GIT_*emptyDeprecated: the Git export of the whole instance, see Push into a Git repository. Keeps working; the Git export of spaces is the better choice.

Image library (Pexels) Since 0.13.0

With the image library people pick photos from Pexels (opens in a new tab) as covers for pages and records. Get a free API key at pexels.com/api (opens in a new tab) and enter it under Settings → Instance → Extensions & domains → Image library (stored encrypted like the AI providers' keys, never sent to a browser), or set PEXELS_API_KEY. The switch Image library in the cover dialog turns it off; off or without a key, the tab is gone and the API answers 404.

  • Outbound connections: only to api.pexels.com and images.pexels.com, with fixed address patterns, no redirects, time and size limits, through the same check as link previews. Allow HTTPS to these two hosts.
  • Privacy: browsers load even the thumbnails from Flowplan, never from Pexels, which only learns the search words and the instance's key.
  • Storage: a chosen photo (about 1920 pixels wide) becomes a file of the page like an upload – quota, the person's upload limit (at most 15 MB), type check, no metadata – with its photographer and Pexels links, as Pexels' guidelines (opens in a new tab) require.
  • Limits: per person 30 searches a minute (300 an hour), 400 thumbnails and 20 photos in 10 minutes; results are cached for 10 minutes.

Calendar sync

Two-way sync of database views with Google Calendar and Microsoft Outlook / 365. Each person connects their own account; without a client ID that provider stays hidden. Flowplan asks for changes every ten minutes (the providers' push notifications are not used – they would need a publicly reachable HTTPS address verified with the provider).

VariableDefaultMeaning
GOOGLE_CALENDAR_CLIENT_ID / GOOGLE_CALENDAR_CLIENT_SECRETemptyOAuth client (type “Web application”) from the Google Cloud Console, with the Google Calendar API enabled and the scope …/auth/calendar. Redirect URI: <APP_URL>/api/calendar-sync/callback/google.
MS_CALENDAR_CLIENT_ID / MS_CALENDAR_CLIENT_SECRETemptyApp registration in Microsoft Entra ID (web platform) with the delegated permissions Calendars.ReadWrite and offline_access. Redirect URI: <APP_URL>/api/calendar-sync/callback/microsoft.
FLOWPLAN_CALDAV_SYNConoff hides calendar sync with CalDAV servers (it needs no app registration). Since 0.11.5
FLOWPLAN_CALDAV_ALLOW_PRIVATEemptytrue allows CalDAV servers in your own network, and http:// to them; empty follows FLOWPLAN_WEBHOOK_ALLOW_PRIVATE. Since 0.11.5
FLOWPLAN_CALDAV_ALLOWED_HOSTSemptyOnly these CalDAV servers may be connected, comma-separated; *.example.org allows all subdomains (for iCloud *.icloud.com). Empty: every public server. Applies to existing connections too. Since 0.11.5
MS_CALENDAR_TENANTcommoncommon (work and personal accounts), organizations or a tenant ID.

People's refresh tokens are stored sealed in the database (like all stored secrets).

Chat apps

Notifications to Telegram, Gotify, ntfy and Matrix. Everything can also be set under Settings → Instance → Chat apps; values saved there take precedence.

VariableDefaultMeaning
FLOWPLAN_MESSENGERSallServices people may connect, comma-separated: telegram, gotify, ntfy, matrix; off for none.
FLOWPLAN_TELEGRAM_BOT_TOKENemptyToken of the instance's Telegram bot (from @BotFather). With it people connect Telegram through a link with a one-time code, without an own bot.
FLOWPLAN_TELEGRAM_API_URLhttps://api.telegram.orgAddress of the Bot API for the instance's bot – a self-hosted Telegram Bot API server (opens in a new tab) or a relay/proxy. May be in the own network and http://.
FLOWPLAN_MESSENGER_ALLOW_PRIVATEas FLOWPLAN_WEBHOOK_ALLOW_PRIVATEtrue: people may name servers in the own network (internal addresses, http://) – e.g. Gotify or ntfy at home. Otherwise internal addresses are blocked, also when a name is later pointed at one.

The instance's bot without a public address: Flowplan uses no webhook but reads the bot's messages with getUpdates – only while a connection code waits (at most 15 minutes). Outgoing HTTPS to the Bot API is enough. The bot must therefore not have a webhook at the same time or be polled by another program (Telegram then reports a conflict, Settings → Instance → Chat apps shows it) – use a separate bot just for Flowplan.

Outgoing connections: to api.telegram.org (or the own API address), ntfy.sh and the servers people name. They go through the same check as link previews and webhooks: resolve the address, refuse internal addresses, use exactly the checked address, no redirects. Refused attempts appear as the security event “Internal address refused (SSRF)”.

The tokens of people and of the bot are stored encrypted like other stored secrets. If the key is missing after a restore, the administration enters the bot token again; connections with an own token are switched off after three failed attempts, and their owners learn it in the inbox.

Workflows

Defaults for workflows; admins can override them under Settings → Instance → Limits & retention.

VariableDefaultMeaning
FLOWPLAN_WORKFLOWSonMain switch; off: no new workflow pages, all paused
FLOWPLAN_WORKFLOW_RUNS_PER_MINUTE60Runs per minute and workflow
FLOWPLAN_WORKFLOW_WORKSPACE_RUNS_PER_MINUTE600Runs per minute and workspace
FLOWPLAN_WORKFLOW_STEPS_PER_RUN200Steps per run
FLOWPLAN_WORKFLOW_CASCADE_DEPTH5Depth of workflows triggering each other
FLOWPLAN_WORKFLOW_FOREACH_MAX100Items per “For each”
FLOWPLAN_WORKFLOW_AI_TOKENS_PER_DAY100000AI tokens per workflow and day (0 = AI nodes off)
FLOWPLAN_WORKFLOW_MAILS_PER_DAY100E-mails per workflow and day
FLOWPLAN_WORKFLOW_RUN_DAYS30Days runs are kept
FLOWPLAN_WORKFLOW_MAX_WAIT_DAYS365Longest wait or approval deadline
FLOWPLAN_WORKFLOW_ACTIVE_PER_WORKSPACE100Active workflows per workspace
FLOWPLAN_WORKFLOW_WORKERS4Steps at once per instance
FLOWPLAN_WORKFLOW_HTTPonHTTP node allowed
FLOWPLAN_WORKFLOW_HTTP_HOSTSemptyOnly these hosts (comma-separated)
FLOWPLAN_WORKFLOW_HTTP_ALLOW_PRIVATEfalseAllow internal addresses (home network, n8n)
FLOWPLAN_WORKFLOW_EXTERNAL_MAILonE-mails to addresses outside the members
FLOWPLAN_WORKFLOW_EXTERNAL_MAIL_DYNAMICoffSince 0.10.0 such e-mail also to addresses from placeholders (form answer, inbound e-mail, AI answer); instances whose workflows already use it keep it on the update
FLOWPLAN_WORKFLOW_TEST_RUNS_PER_MINUTE10Test and dry runs per person and minute
FLOWPLAN_WORKFLOW_PARALLEL_RUNS10Runs of one workflow running at the same time (1–100); further ones wait in the queue
FLOWPLAN_WORKFLOW_RUNS_KEPT10000Keep at most this many runs per workflow (100–1,000,000); older finished ones are deleted daily, open ones never
Note

Development and tests only: FLOWPLAN_WORKFLOW_LEASE_MS (default 120000, a step's lease), FLOWPLAN_WORKFLOW_POLL_MS (5000, how often each instance looks for due steps) and FLOWPLAN_WORKFLOW_SWEEP_MS (60000, how often expired leases go back to the queue) shorten the queue's timings, in milliseconds. Do not set them in production.

Was this helpful?
YesThanks!
No – tell us what's missing

Found a mistake or something missing?Edit on GitHub