Configuring email delivery for authentik: why it matters before users need recovery
Email delivery should be configured and tested before your first user needs it. In a self-hosted authentik deployment, password recovery, invitations and email codes all depend on SMTP working, and none of them can be fixed by logging in, because the user who is locked out cannot receive the message that would let them back in. Configure SMTP as part of go-live, not after the first lockout. The email authenticator stage is the component most teams first meet. It can use the global email connection settings for the whole instance or stage-specific SMTP settings (host, port, credentials, TLS or SSL, and timeout), so the decision is whether one mail relay serves every stage or whether a particular stage needs its own sender. Other flows that send messages, such as invitations and recovery, rely on the same mail path, so a broken connection surfaces first as a user who cannot reset a password on a Monday morning. Confirm with your own identity team which flows in your deployment send email and which user populations depend on them.
Before go-live, check three things in your environment: that the authentik server and worker containers can reach your SMTP relay on the intended port, that the sending address is one your mail platform accepts for your domain, and that a test message reaches an external mailbox, not only an internal one. The authentik troubleshooting guide for email sending is the reference to work through when a test fails, and it is worth reading before you need it under pressure. Record which settings are global and which are per stage, because a change made in one place can silently leave another flow pointing at an old relay. Ask your team to document the recovery path for the case where email itself is down, such as who can reset a privileged account and how that action is logged. A recovery route that depends only on email is a single point of failure, so decide the fallback while the system is calm.
Global email settings or per-stage SMTP: which option fits your setup
This table compares using the global email connection settings with configuring SMTP directly on the email authenticator stage. Read each row against your mail relay layout, sender policy and how many teams will maintain credentials. The main takeaway is that a shared relay keeps one credential set to rotate, while a per-stage path isolates a single flow at the cost of more places to update.
| Decision point | Global email settings | Per-stage SMTP on the email authenticator stage |
|---|---|---|
| Where SMTP details live | One shared connection definition used by flows that send email | Host, port, credentials, TLS or SSL and timeout entered on the stage itself |
| Fits when | All authentik mail (recovery, invitations, codes, notifications) goes through one relay | The email authenticator stage must send through a different relay or sender identity |
| Credential rotation | Rotate the secret in one place and every dependent flow picks it up | Rotate the secret in each stage that holds a copy, so a missed stage keeps failing |
| Sender identity | One From address and domain policy for most messages | Can separate the sending path for MFA codes from other mail if your relay policy requires it |
| TLS or SSL settings | Set once and verified against the relay you operate | Set per stage, so a mismatch can affect only that stage's messages |
| Troubleshooting scope | A failing relay usually breaks several message types at once | A failure may affect only the email authenticator, which can hide a broader outage |
| What to confirm with your mail team | Relay accepts connections from the authentik server and worker addresses | Whether a second relay or sender is approved by your mail and security policy |
Setting up SMTP in authentik step by step
This sequence takes you from an agreed mail relay to a verified email authenticator stage that delivers codes and messages from authentik, with a check at each point so failures surface early.
Confirm the relay and sending address
Before touching authentik, agree with your mail team which SMTP relay authentik may use, the sending address it will present, and whether the relay accepts connections from the authentik server's network address. Ask them to confirm the supported port, the TLS or SSL mode, and whether the account requires authentication. Record these answers in your change ticket. The step is done when the mail team confirms the relay in writing and you have a mailbox you control that you can use for testing.
Choose global or stage-level email settings
Decide whether every email-sending stage should share one set of SMTP connection settings or whether a specific stage needs its own host, credentials and TLS mode. Global settings suit a single relay used across flows. Stage-level settings suit cases where one flow must send through a different relay or account. Write down the decision and the reason, since it determines where you make changes later. The step is done when the choice is recorded and the team agrees who maintains those settings.
Enter host, port, credentials and TLS mode
In the chosen location, enter the SMTP host, port, username and password, then select TLS or SSL according to what the relay requires. Store the password in the secret handling your team uses for other credentials rather than in a shared document. Do not disable certificate verification to get a connection working; if the relay uses an internal certificate authority, add that trust to the authentik server instead. The step is done when the settings are saved without validation errors.
Set the connection timeout
Set a timeout for the SMTP connection so that a slow or unreachable relay does not hold a login or recovery request open indefinitely. Choose a value your mail team considers reasonable for the relay, and confirm it in the stage configuration if you set it per stage. Note the value in your runbook so that a future change to the relay is reviewed alongside it. The step is done when the timeout field holds a value you can explain to an auditor or a colleague.
Create or update the email authenticator stage
Create an email authenticator setup stage, or update the existing one, so that it uses the global connection or the stage-specific settings you chose. Name the stage clearly so that administrators can identify which relay it uses. Confirm that the stage is saved and visible in the list of stages. The step is done when the stage shows the connection mode you selected and no configuration warnings remain.
Bind the stage to the relevant flow
Add the email authenticator stage to the flow that needs it, such as the flow used for recovery, enrollment or email-based verification, and place it in the stage order where the user should receive the message. Check the binding conditions so the stage runs only for the intended users. Save the flow and confirm the stage appears in the correct position. The step is done when the flow diagram or binding list shows the stage in the expected order.
Send a test message and review the logs
Trigger the flow with a test account whose email address is a mailbox you control, and confirm that the message arrives with the expected sender and content. If nothing arrives, review the authentik server and worker logs for the send attempt and the relay response, then check the mail relay logs. Repeat the test after any change to credentials, TLS mode or the sending address. The step is done when the test message arrives and the logs show a successful send, or when a failure is identified and recorded for correction.
Choosing TLS, SSL and credentials for the mail connection
The TLS or SSL setting is a decision your team confirms with its mail provider, not a default to copy from a tutorial or another deployment. authentik's email authenticator stage accepts TLS or SSL options alongside host, port, credentials and timeout, so the choice has to match what your provider's submission endpoint actually expects. Ask the provider which encryption mode its SMTP service requires for the hostname and port you plan to use, and whether it enforces certificate validation. Record the answer in the change request so that a later edit to the mail settings does not quietly downgrade the connection. Confirm the same details for each sending path if you use global email settings and stage-specific settings side by side, because they can point at different relays.
Credentials for the SMTP account deserve the same handling as database passwords and signing keys. Store them in your secret management system or in the environment file or secret store your deployment already uses, rather than typing them into the admin interface and leaving them in exports or screenshots. Limit who can read or change the mail settings in authentik to the administrators who operate the identity service, and review that group when people change roles. Use a dedicated sending account with the narrowest rights your provider offers, rotate its password on a schedule your security policy sets, and make sure configuration changes for mail go through the same review as other authentik deployment settings. Confirm with your provider how it handles credential rotation and whether it supports app-specific passwords or API keys for SMTP.
Why authentik email never arrives and how to find the cause
Why does authentik email never arrive after a recovery request?
The most common cause is that the SMTP connection never reaches the mail server, so start by confirming the host and port. Check which settings the stage uses. The email authenticator stage can use the global email connection settings or its own SMTP host, port, credentials, TLS or SSL option and timeout, so a stage configured separately can behave differently from the connection you tested globally. Next, confirm that the authentik server and worker containers can resolve the host and open the port. Test from inside the container network, not only from your workstation, because firewalls and security groups often allow a mail relay from one subnet and block the container network. Work through authentik's email troubleshooting guide for the checks that match your version.
How do I know if SMTP authentication is failing in authentik?
A rejected login usually shows up as an authentication error in the server or worker logs, and the mail provider's own logs will confirm it. Check these items in order:
- The username format matches what your relay expects, which is often a full address rather than a short account name.
- The password or API key is current, and it was rotated in every place it is stored, including global settings and any stage-specific override.
- The relay accepts authenticated submission from the source address authentik uses.
- Your provider does not require an app-specific credential or a separate sending permission for this account.
If the credentials are correct but the relay still refuses the session, the problem is usually the relay's allow list or sending policy, which your mail administrator can confirm.
Can a TLS mismatch stop authentik from sending email?
Yes. A TLS mismatch makes the SMTP handshake fail before any message is sent, and the logs typically show a connection or handshake error rather than a rejected recipient. Compare the TLS or SSL option in authentik with what the mail server expects on that port. Implicit TLS and STARTTLS are different modes, and selecting the wrong one causes the handshake to fail even when the host and port are correct. If the mail server uses a certificate from an internal certificate authority, confirm that the CA is trusted by the authentik containers, because an untrusted chain looks like a TLS failure. Change one setting at a time and retest after each change so you can see which change fixed the problem.
What causes authentik email timeouts and how do I fix them?
A timeout means authentik opened a connection or waited for a response and the mail server did not answer within the configured limit. Common causes include slow or failing DNS lookups for the mail host, egress rules or proxies that hold connections open, and a mail server that is overloaded or unreachable from that network segment. Confirm the path to the server first, then review the timeout value on the stage or in global settings. Raising the timeout without fixing connectivity usually delays the failure rather than removing it, so treat a larger timeout as a last step after the network path is confirmed healthy.
Why do authentik emails land in spam or get filtered?
Filtering happens on the receiving side, so authentik may have sent the message successfully while the recipient's provider held or moved it. Start by checking the message headers in the recipient's mailbox and the quarantine or spam logs of the receiving provider. The sender side matters as well. Confirm with your mail administrator that the sending domain publishes SPF and DKIM records that cover the relay authentik uses, that a DMARC policy is in place, and that the From address belongs to a domain your relay is authorized to send for. Reverse DNS for the sending IP and the sending domain's reputation also influence filtering decisions. Test with a few recipients on the major providers your users rely on before you roll out a change.
Why do users not get email when their account has no address?
authentik sends recovery, invitation and code messages to the email address stored on the user record, so a user without that attribute receives nothing, even when the SMTP configuration is correct. Open the affected user in the admin interface and confirm the email field is populated. For users created by a directory sync or an upstream identity provider, check the attribute mapping, because the source may use a different attribute name or may not supply email at all. Test with a user whose address you know is set, which separates a per-user data problem from a delivery problem.
Can a stopped worker container stop authentik email sending?
Yes. Background tasks, including sending email, run in the worker container, so a worker that is down, restarting or unable to reach PostgreSQL will leave messages unsent even when the server container is healthy. Check the worker's status and recent logs first, and look for restart loops or database connection errors. PostgreSQL stores all configuration and data except uploaded files, and since the 2025.10 release authentik no longer uses Redis, so the worker depends on PostgreSQL for its queue. Confirm that the worker can reach the database and that its connection count is within what your PostgreSQL setup allows. Once the worker recovers, check that the queued messages are processed.
How much does fixing authentik email delivery usually cost?
The cost depends mainly on who performs the diagnosis and how many systems are involved. Internal costs come from the time your identity, network and mail administrators spend on connectivity, relay policy and DNS records, which are often owned by different teams. External costs appear when a mail provider charges for a sending plan or when a partner is engaged on a fixed scope. Ask any partner for a written scope that lists the mail systems, DNS zones and authentik environments included, since that scope drives the quote. Also ask whether the work is a one-time fix or includes ongoing monitoring of delivery, because monitoring is a recurring cost.
Security risks in authentik email configuration
Email is one of the few places where authentik sends sensitive material outside the platform: recovery links, invitations and one-time codes. The cards below cover the controls that keep that channel from becoming an account takeover path. Confirm each specific setting with your security and mail teams before you change production.
Protect SMTP credentials
The SMTP username and password, whether set globally or on an email authenticator stage, let anyone who reads them send mail as your domain. Store them in your secret management process rather than in exported blueprints or shared notes, and rotate them on a schedule your security team sets. Ask whether the relay account can send only from the addresses authentik uses.
Restrict who edits email settings
Changing the SMTP host or sender address can redirect every recovery and verification email to a server you do not control. Limit edit rights for global email settings and for email authenticator stages to a small administrator group, and log changes. Confirm which roles in your deployment can reach these settings, including any path that applies blueprints automatically.
Avoid open relays
An authentik instance should hand mail only to your own relay or your provider's authenticated submission endpoint. An unauthenticated or internet-reachable relay can be abused to send spam or spoofed messages under your domain. Ask your mail team which hosts and ports are allowed, and block outbound SMTP from the authentik network to anywhere else.
Treat email codes as sensitive
Email one-time codes work only as long as they are unused and unexpired, and anyone who sees the message can complete the factor. Confirm the code lifetime and the number of attempts your flows allow, and keep mail retention and forwarding rules from exposing codes to shared mailboxes. Where stronger factors are available, weigh them against email for admin accounts.
Monitor recovery email abuse
Repeated recovery or invitation emails to the same address, or to many addresses from one source, can signal an attack on your users or an attempt to abuse your mail quota. Review authentik event logs and your relay logs for spikes, and set alerts with your operations team. Confirm who receives those alerts and how quickly they respond.
Keep sender domain records current
Sender authentication records such as SPF, DKIM and DMARC decide whether receiving servers trust messages from your authentik instance. Changes to the sending host or relay usually need updates to these records, owned by your mail team. Ask them to confirm the policy they expect for authentik before you go live, and to review it after every relay change.
Questions teams ask before configuring authentik email
What actually drives the effort of configuring authentik email?
The effort is driven mostly by how many flows and stages send email and how many distinct mail paths you need. A single global SMTP connection used for recovery and notifications is a small job. Separate sending identities for invitations, email one-time codes and administrative notices, or stage-level SMTP settings that differ from the global ones, add configuration, testing and review work. Your existing mail relay also matters: an internal relay that already allows the authentik server's address is quicker to validate than a relay that needs new allow-listing, a sending domain, SPF, DKIM or DMARC alignment, or approval from another team. Finally, a security review of where SMTP credentials are stored and who can read them adds time, especially if you keep them in a secrets store rather than in plain configuration.
Can our own team configure authentik email without outside help?
Yes, if you have someone comfortable with authentik flows and stages and someone who controls the mail relay. The core steps are to set the global email connection, confirm the server can reach the relay on the port and TLS mode the relay expects, attach the email authenticator stage where needed, and test each flow end to end. The parts teams most often underestimate are the mail-side settings: sender domain authentication, relay allow-lists, and whether messages land in spam at the receiving provider. If those owners are reachable and the number of flows is small, an internal team can usually finish this alone. If several flows need separate senders, or the mail team is slow to respond, a fixed-scope engagement can take that coordination off your plate.
What do we need from our mail and identity teams before the work starts?
Plan for a short list of inputs from each team before any configuration begins. From the mail team, you need the relay hostname, the supported ports, whether the relay requires STARTTLS, implicit TLS or neither, the authentication method, and the sending addresses that are permitted. You also need confirmation of which domain messages will come from and whether SPF, DKIM and DMARC are already published for it. From the identity team, you need the list of flows that send email, the users who will receive recovery or invitation messages, the expected volume, and who approves changes to stored credentials. Written answers to these points usually prevent most of the rework later.
How long does authentik email setup take?
The duration depends on your environment, not on authentik alone. A single relay that already accepts messages from the authentik host and a short list of flows can be configured and tested within a short working session. Timelines grow when the mail team must open a new relay path, when a sending domain has to be verified, or when several stages need their own sender and credentials. Ask any provider to base its timeline on a written list of flows, the relay details and the approvals required, and to state which of those steps it expects you to complete.
What does a fixed-scope engagement for authentik email cover?
A fixed-scope engagement covers the work listed in an agreed statement of scope before it starts. For email, that normally includes reviewing the flows and stages that send messages, configuring the global connection or per-stage connections as agreed, setting TLS and timeout options, testing delivery for each message type, and documenting the settings and the owners of each mail path. It should also state what is excluded, such as changes to your mail provider, DNS records owned by another team, or mailbox troubleshooting at the recipient end. Ask for the deliverables and acceptance tests in writing so both sides know when the work is complete.
Which email costs are one-time and which recur?
The one-time costs are the design, configuration, testing and documentation of the email paths. Recurring costs are the mail relay itself, any sending service your organization already pays for, and the time spent when a password reset or code fails and someone must investigate. The relay cost is usually already part of your mail budget and is not created by authentik. When you request a quote, ask the provider to separate the one-time configuration work from any ongoing support, and to state what changes, such as a new flow or a new sender domain, would be charged as additional scope.
What should we check when recovery emails never arrive?
Start with the authentik side, then the relay, then the recipient. On the authentik side, confirm that the email connection is enabled for the flow that sends the message, that the host, port and TLS mode match what the relay expects, and that the server can reach the relay on the network. Check the worker and server logs for SMTP errors, since sending happens through background tasks. On the relay side, confirm the sender address is permitted and that the relay accepts the authentication you configured. On the recipient side, check spam folders and whether the receiving provider rejected the message for authentication failures. The authentik email troubleshooting guide lists the common causes and is the best next read before you open a support request.
Who owns email delivery after go-live
Email delivery needs a named owner for each recurring duty, because the failures that matter most rarely show up as an outage. The identity operations team should own delivery monitoring: watching authentik's logs and the mail provider's bounce and rejection reports for failed recovery, invitation and email code messages, and treating a spike in password reset requests as a signal to check the relay. Assign this duty to a person or on-call rotation, not to whoever happened to configure SMTP. Ask the mail provider which delivery logs it retains and for how long, since that determines how far back you can investigate a user who says a code never arrived.
SMTP credentials are the second duty. The team that owns the mail relay or transactional email account should rotate the username and password on a schedule, then update either the global email settings or each email authenticator stage that carries its own credentials, depending on where you placed them. Keep a list of every place the credential is stored, including any stage-level overrides, because a rotation that updates only one location fails silently for the others. Confirm with your security team whether credentials belong in a secrets manager and how your organization records the rotation as evidence.
Upgrades and template changes are the third duty, and they belong to the platform team that runs authentik. After each upgrade, re-test email delivery from the stages that send mail, since configuration fields and defaults can change between releases. Review the message templates and the flows that trigger email whenever a flow is edited, because a new invitation or recovery step may send mail that nobody on the identity team expected. Record the owner of each flow in your change process so that a stage added by an application team does not start sending messages from an address your security team never approved.
How DeployOpen configures and supports authentik email
DeployOpen plans, implements, tests and documents authentik email delivery inside your own infrastructure, so recovery, invitation and code messages reach users from a sender you control. Work starts from a written scope, with the SMTP path, TLS settings and the stages that send mail agreed before any configuration changes.
How we scope
- Inventory every flow and stage that sends email, including recovery, invitations, email codes and notifications.
- Confirm the SMTP relay, sending domain, TLS or SSL mode and credentials your organization already operates.
- Agree in writing whether global connection settings or per-stage settings will apply, and which stages inherit them.
How we build
- Configure the global email connection and override it only in stages that need a different sender or relay.
- Keep SMTP credentials out of plaintext configuration and load them through your secrets process.
- Test each message type end to end, including delivery, headers, links and timeouts, and record the results.
How we hand over
- Deliver a written configuration record listing each sender, relay, stage and the owner of each setting.
- Document the delivery test procedure so your team can repeat it after upgrades or relay changes.
- Provide a troubleshooting runbook covering messages that never arrive, rejected relays and TLS mismatches.
How we support
- Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as a retainer.
- Re-run delivery tests after authentik upgrades and after any change to your mail relay or DNS records.
- Confirm with your relay provider and your own environment any sender authentication settings that the scope depends on.

