Why Langfuse transactional email needs its own setup
A self-hosted Langfuse instance depends on outbound email for people to get in and get back in. Invitations to join an organization or project, password reset links and export notifications all leave the Langfuse Web container as email. If the mail path is broken, a new user cannot accept an invitation, a locked-out user cannot reset a password, and a person waiting on a large export never hears that it is ready. None of these failures produces an error in the trace data itself, so they tend to surface as a support request from a user rather than as an alert from the platform.
Because these messages are part of onboarding and account recovery, the mail configuration belongs in the same review as your identity and access setup. Self-hosted Langfuse does not expose email settings in its UI. The connection, the sender address and the choice between an SMTP server and AWS SES are set through environment variables on the Langfuse containers, so changes go through your deployment pipeline like any other configuration change. Plan who owns the sender domain, who can rotate the credentials, and how a change is tested before it reaches production.
Confirm the exact variable names, accepted formats and any AWS SES prerequisites in the current Langfuse self-hosting documentation before you write configuration, because these settings change between releases. Also confirm which container reads each setting in your deployment method, since Langfuse Web sends the invitation and reset messages and the worker may handle other asynchronous work. Record the values you chose and the version they were tested against, so a later upgrade does not silently break delivery.
Choosing between SMTP and AWS SES
An SMTP connection URL points Langfuse at a mail relay that your organization already operates or buys from a provider. Langfuse builds its connection from that URL, so the same setting works wherever the containers can reach the relay over the network. The relay handles sender authentication, retries and bounce handling, and your mail team keeps control of the domain, the sending policy and the delivery logs.
- Ownership: the mail team or your provider owns the relay, its TLS settings and any sending limits, so confirm those terms in writing.
- Credentials: a username and password or equivalent secret usually sits inside the connection URL, so keep it in your secrets manager, outside any values file committed to source control.
- Network path: the Langfuse containers need outbound access to the relay's port, which default egress rules in private networks often block.
- Sender domain: SPF, DKIM and DMARC records are set in DNS by your DNS team, and the relay must be permitted to send for that domain.
- Portability: the same URL works on a VM, in Kubernetes or in AWS, which makes SMTP the path with the fewest cloud-specific dependencies.
Before go-live, confirm the relay's TLS mode, the sending identities it accepts and who receives its bounce reports.
AWS SES sends mail from the AWS account and region where Langfuse runs. Langfuse picks up AWS credentials through the default credential chain, so no SMTP password has to be stored in the application configuration. The sender address or domain must be a verified SES identity in the region the application calls, and the workload needs permission to send through SES.
- Ownership: your cloud team owns the SES identity, the account's sending status and any request to move out of the sandbox that AWS applies to new accounts.
- Credentials: the runtime identity, such as an instance profile, pod identity or workload role, needs permission to send email. Confirm the exact actions in the SES documentation rather than copying a policy from another project.
- Verification: the sender identity must be verified in the same region the application uses, and a sandboxed account only sends to verified recipients.
- Network path: traffic goes to the regional SES endpoint over HTTPS, so private subnets need a route to it, through a NAT gateway or an endpoint your network team manages.
- Cloud coupling: the setting only works where the AWS credential chain resolves, so a VM outside AWS needs another identity source or should use SMTP.
Before the first invitation goes out, check the region, the verified identity and the sandbox status of the account.
Email delivery involves four groups: the application team that sets the configuration, the platform team that provides runtime identity, the mail or cloud team that owns the sending domain, and the security team that reviews where credentials live. Assigning each piece early prevents a common failure, where invitations work in testing and fail in production because a different team holds the missing part.
- Application configuration: sets the transport choice, the sender address and the base URL that appears in invitation and reset links.
- Runtime identity: for SES, the workload role that the platform grants; for SMTP, the relay credential held in your secrets system.
- DNS and domain: SPF, DKIM and DMARC records live in a DNS zone that the mail team controls, so changes there need their approval.
- Rotation: SMTP passwords need a documented rotation procedure, while SES workload roles rotate through the cloud platform's own mechanisms.
- Audit: record who can read the SMTP secret or assume the SES role, because those permissions decide who can send mail as your organization.
Write each owner, and the person who approves changes to their piece, into the runbook before deployment.
The right path often follows from where Langfuse runs. On a single VM with Docker Compose, SMTP is usually the simpler choice because the VM has no workload identity to resolve AWS credentials. On Kubernetes, either path works if the pods can reach the relay or the SES endpoint, and the decision depends on whether your cluster already has a workload identity mechanism you operate. In an AWS deployment, SES with an attached role avoids storing a mail password, provided the account and region are ready for sending.
- Single VM: SMTP through an existing relay, with the secret kept in an environment file readable only by the operator account.
- Kubernetes: SMTP with the secret supplied through a Kubernetes Secret, or SES if the cluster has a supported workload identity path to AWS.
- AWS-hosted: SES with an attached role. The official AWS Terraform module covers SES configuration, so confirm what it creates before you reuse it.
- Private or air-gapped networks: SES is usually unreachable, so an internal relay is the likely path. Confirm this with your network team.
- Mixed estates: using different paths across environments increases what you must test, so choose one per environment and test it there.
Test delivery from inside the same network segment as the Langfuse containers, because a test from a laptop says little about the production route.
Which email options fit which environment
This table compares four ways to send Langfuse invitations, password resets and export notifications, based on whether your network can reach the provider and who runs the mail infrastructure. Read each row against your own network and mail ownership to find the path that needs the fewest exceptions. The main takeaway is that reachability and ownership decide the choice before any feature comparison does.
| Configuration path | When it fits | Trade-off to accept | Who manages it |
|---|---|---|---|
| SMTP relay | Your organization already has a relay that Langfuse containers can reach, with a sender domain your mail team approves | Relay credentials sit in the Langfuse environment, and deliverability depends on the relay's sender authentication setup | Your mail or messaging team |
| Internal mail server | Mail must stay inside your network, for example in an air-gapped or on-premises environment with no outside egress | You own TLS, relay rules, SPF, DKIM and bounce handling, so delivery problems land on your team | Your infrastructure team |
| AWS SES with instance or role-based credentials | Langfuse runs in AWS and the workload can assume an IAM role, so no long-lived keys are stored | Requires SES to be set up in the right region with a verified sender, and the network must reach the SES endpoint | Your cloud team, with SES configured in your AWS account |
| AWS SES with static access keys | Platform restrictions prevent role assignment, and you accept storing a key pair in configuration | Keys must be rotated and protected, and a leaked key grants send rights until it is revoked | Your cloud and security teams share ownership |
| Any path with no outbound route to the provider | Cloud email APIs or SMTP ports are blocked from the Langfuse network | Requires an internal relay or an approved egress exception, which must be confirmed with your network team before rollout | Your network security team |
How to configure SMTP or SES and verify delivery
This sequence takes mail from a verified sender to a confirmed delivery for invitations, password resets and export notifications. It ends with a test invitation that arrives, a provider log that shows the message was delivered, and a rollback path if delivery still fails.
Verify the sender domain with the provider
The platform team, with whoever administers the mail provider account, confirms that the sender domain or address is verified before any Langfuse setting changes. For Amazon SES, check in the console that the identity shows as verified in the region you plan to use, and confirm whether the account still restricts sending to verified recipients, since that restriction blocks invitations to new users. For SMTP, confirm that the relay accepts mail from your sender address and from the network where Langfuse runs. Done when the provider shows the identity as verified and you have written down the exact sender address to configure.
Set the SMTP URL or SES region
Open the environment configuration for your deployment and set the email values for your chosen transport: an SMTP connection URL that includes host, port, credentials and TLS mode, or the SES region together with the sender address. Use the exact variable names from the Langfuse self-hosting configuration reference for your version, because a misspelled or outdated name is ignored and may not produce an obvious error. Keep SMTP passwords in your secrets store and out of version control. Done when the same values appear in the environment of both the web and worker containers and the sender address matches the verified identity from the previous step.
Confirm the SES credential source
For SES, Langfuse uses the AWS default credential chain, so the question is which identity the running container resolves, not whether a static key is present. Using the cloud CLI from inside the web container or a debug pod, the platform engineer checks which role or identity is returned and confirms that it can send email through SES in the chosen region. Prefer a role-based source such as an instance profile, pod identity or workload identity where your platform provides one. Skip this step for SMTP. Done when the identity lookup returns the role you expect and that role's policy allows sending from the verified identity.
Restart the web and worker containers
Restart both Langfuse Web and Langfuse Worker so that each container runs with the same mail settings. The worker handles asynchronous work, including export notifications, so it needs the new values as much as the web container does. Restart them together and watch the startup logs for configuration errors until both containers report running. Done when both containers are healthy, the logs show no email configuration errors, and the web container's health check passes.
Send a test invitation
An organization owner or admin sends an invitation to a test address that your team controls. Use a mailbox on a different domain from the sender so the message travels to an external recipient, which exercises the path that matters most. If your SMTP relay is private, also test from a host inside the same network, because that route can behave differently. Open the message, confirm the sender name and address, and follow the link to confirm it resolves to your Langfuse URL. Done when the invitation arrives and the link opens the correct host.
Check the provider delivery log
Compare the message in the provider's delivery log with what the test inbox shows. For SES, look for the send event and its final status, whether delivered, bounced or suppressed. For SMTP, check the relay log for an accepted message and a final status from the receiving server. A bounce, complaint or suppression points to the provider or the recipient, so fix the identity or recipient status before changing Langfuse settings again. Also review the web container logs around the invitation time for mail errors. Done when the provider reports delivery and the Langfuse logs contain no error for that send.
Roll back if invitations still fail
If the test invitation still does not arrive after the delivery log check, return the mail variables to the last values that worked and restart both containers as described earlier. Record which variables changed, the error in the logs and the provider status, so the team or the provider's support can review the cause. Confirm that existing users can still sign in with their current method, because invitations and password resets are separate from login. Done when a known working configuration is back in place and the failure is documented for the next attempt.
How a Langfuse email leaves your network
Langfuse Web and Langfuse Worker both send mail, so the path starts in either container when an invitation, password reset or export notice is generated. Each container reads its mail settings and credentials from your configuration: SMTP connection details for a relay you run, or AWS credentials resolved through the default credential chain for SES. The first hand-off to check is the boundary between your network and the mail transport. The second is the final hop from the relay or SES to the recipient mailbox, which only succeeds if sender domain and identity checks are in place.
Mail paths from Langfuse containers through SMTP or SES to the mailbox.
Sender addresses, domain verification and testing from private networks
The sender address is the first thing to get right. Langfuse uses the configured sender for invitations, password resets and export notifications, and most email providers will only deliver mail that claims a domain or identity you have verified with them. Before you set the sender, confirm with your provider whether the verified identity is a full domain or a single address, and use an address that falls within it. If you use AWS SES, the identity must be verified in the same region where your Langfuse instance sends mail, and a new SES account may start in a sandbox that only delivers to verified recipients. Confirm the current SES sending limits and sandbox status in your own account rather than assuming them.
Domain verification and mail authentication are records that the domain owner publishes in DNS, so plan who holds that change. SPF lists the servers allowed to send for the domain, DKIM publishes a public key that signs outgoing messages, and DMARC states what receivers should do when those checks fail and where aggregate reports should go. Your provider will supply the exact DNS values, which you should copy from its console rather than retype. Ask the team that controls DNS to add them before testing, and plan a monitoring step for DMARC reports, since a DMARC policy that is tightened too early can block legitimate mail from Langfuse.
Private networks often have no direct route to SMTP or SES endpoints, so the first test should confirm egress rather than the Langfuse configuration. Check whether the Langfuse web and worker containers can open a connection to the mail endpoint through your firewall, proxy or NAT gateway, and confirm the required ports and endpoint names with your provider and your network team. If outbound access is blocked by policy, route mail through an approved internal relay that holds the provider credentials and is allowed to send for your domain. Then send a test message to a mailbox you control, check the headers for SPF, DKIM and DMARC results, and record the outcome so the same test can be repeated after any network or DNS change.
Security considerations for email credentials and reach
Transactional email carries invitations, password resets and export notifications, so the credentials that send it and the addresses it sends from both need controls. The cards below cover how to store, scope, rotate and log those credentials, and what the messages themselves reveal about the people receiving them.
Store SMTP passwords and AWS keys as secrets
Langfuse reads its mail settings from environment variables, so the SMTP password or AWS access values must come from your secrets store (a Kubernetes Secret, a cloud secrets manager or a vault), not from a values file committed to Git. Confirm how your deployment method injects those variables into the Web and Worker containers, and check that the same secret is not copied into unrelated configuration. Keep the secret out of version control and out of shared chat threads.
Scope SES send actions with least privilege
When Langfuse sends through AWS SES using the default credential chain, the identity it resolves (an instance profile, a workload identity or a static key) should allow only the SES send operations it needs, on the identities it needs. Avoid attaching broad SES or administrator policies to the role. Ask the team that owns your AWS account to confirm the policy in writing and to review it when the sending domain changes.
Restrict which senders can be used
The sender address decides how recipients judge a message and which domain your organization's reputation is tied to. Limit the From address to a monitored mailbox or no-reply address on a domain you control, and confirm that the SES identity or SMTP account is permitted to send for that domain. An unrestricted sending identity lets anyone who obtains the credential send mail that appears to come from your organization.
Keep credentials out of logs
Connection strings, debug output from mail libraries and container startup logs can echo SMTP passwords or key identifiers. Before enabling verbose logging, check how your log pipeline collects container output and who can read it. Search recent logs for the SMTP host, username and key ID after the first test send. If a secret appears in a log, treat it as exposed and rotate it.
Rotate credentials on a set schedule
Sending credentials should have a named owner, a rotation interval set by your security policy and a documented procedure. Rotation for SES means creating a new access key or changing the role trust, updating the secret, restarting Langfuse Web and Worker, then deleting the old key. Plan the change in a window where invitations and resets are unlikely to be in flight, and confirm one test email after the restart.
Treat invitation and reset emails as sensitive
Invitation and password reset messages contain links that grant access or change credentials, and export notifications reveal that a user requested data. Anyone who can read the mailbox, relay or logs can use an unexpired link, so keep link lifetimes short where the platform allows and restrict who can read the sending mailbox. Limit which email addresses can receive invitations to those in approved domains, and confirm the reset flow with your identity team if SSO enforcement is in use.
Questions teams ask about Langfuse email setup
How much effort does Langfuse SMTP or SES email setup take?
The configuration itself is small, but the work is spread across several external dependencies. Setup typically means choosing an SMTP connection URL or enabling AWS SES, verifying a sender domain, creating DNS records, confirming that the Langfuse network can reach the mail endpoint, and giving the workload an IAM identity that is allowed to send. Each step can sit with a different team, so calendar time often runs longer than hands-on time. No duration is set for this work on this page, so ask your partner or internal team to list every dependency and its owner before agreeing on a timeline. The cost is mostly staff time from those teams. It is one-time for the initial setup, with smaller recurring effort when credentials rotate or the sender address changes.
Can our own team set up Langfuse email without outside help?
Yes, if the team has access to the deployment configuration, DNS for the sender domain, and either an SMTP relay account or the AWS account that hosts SES. The work is mainly configuration and verification, so experienced platform engineers can handle it. The risk lies in the handoffs: a DNS change that a mail owner must approve, an SES sending identity that sits in a different account, or an egress rule that a network team controls. Teams that lack one of those access paths usually stall at that point rather than at the Langfuse settings. A useful test is whether one person can make every change without waiting on another team. If not, plan the approvals first. An outside partner can take over the configuration and testing once those paths are open.
What do our mail and cloud owners need to provide for Langfuse?
Mail and cloud owners supply the parts of the setup that Langfuse cannot create for itself. For SMTP, that means a relay or mail server that accepts connections from the Langfuse network, credentials for it, and TLS settings that match the server. For SES, the cloud owner must verify the sender identity in the correct region, confirm the account is out of the SES sandbox if it must send to arbitrary recipients, and attach an IAM role or policy that the Langfuse workloads can use through the default credential chain. The mail owner also needs to publish the sender domain's SPF, DKIM and DMARC records. Ask both owners for written confirmation of each item, the sender address to be used, and the expected test recipients.
Why do Langfuse invitations fail after a successful deployment?
A healthy deployment does not prove that email works, because the web and worker containers can run without sending any message until a user triggers one. The most common causes are an SMTP connection URL with the wrong host, port or TLS mode; outbound traffic blocked by a firewall, proxy or security group; an SES sender address that is not verified; an SES account still in the sandbox; and IAM permissions missing from the role that the workloads actually assume. Sender addresses that do not match the verified domain also fail silently for many recipients. Check the Langfuse logs for the send attempt, then test the mail path from the same network and identity the containers use. The Langfuse self-hosting documentation lists the relevant settings and is the next place to confirm exact names.
Can we turn off email entirely in an air-gapped Langfuse installation?
Email can be left unconfigured in an air-gapped network, but the features that depend on it must then be handled another way. Invitations, password resets and export notifications all rely on outbound mail. If the organization signs users in through an internal identity provider with SSO and disables password sign-in, the password reset path matters less, but invitations and exports may still need a route. Decide which of these features your users need before turning email off, then confirm in the Langfuse self-hosting documentation how each one behaves without an SMTP or SES target. An internal relay that stays inside the network is often a simpler choice than removing the feature entirely.
How do we test Langfuse email delivery from a private network?
Test from inside the same network segment, using the same runtime identity and egress path that the Langfuse containers use. Start with a connectivity check to the SMTP host or SES endpoint, then send one invitation to an internal test mailbox and one to an external address you control. Record the sender address, the message headers and any bounce or rejection. For SES, confirm the identity status, sending quota and sandbox status before testing. If the network has no route to any mail service, use an internal relay that can deliver to your mail system, and confirm that it passes messages on. Keep the test results with the configuration record so auditors and operators can see how delivery was verified.
How does an outside partner scope a Langfuse email engagement?
A partner scopes the work by mapping the mail path before quoting it. That includes the Langfuse deployment model, the SMTP or SES option chosen, the sender domain and DNS access, the network egress rules, the IAM roles used by the workloads, and the test recipients. The written scope should list each deliverable, such as the configuration values set, the records published, the test evidence and the handover notes, and it should name which steps the client's mail, cloud and network owners must complete. DeployOpen plans, implements, documents and supports self-hosted open-source platforms in your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not publish a price list, so a quote follows from that written scope.
Keeping email working after the first deployment
Email delivery for a self-hosted Langfuse is an ongoing responsibility, not a one-time setup. The first invitation or password reset proves the path works on the day you test it, but SMTP credentials expire or get rotated, sender domains change, and mail providers tighten their rules over time. Assign a named owner for the mail path, and decide where delivery failures will show up: your provider's bounce and complaint notifications, your SMTP relay logs, or the Langfuse application logs. Without that decision, the first sign of trouble is usually a user who never received an invitation.
Plan credential rotation as a scheduled task. For SMTP, that means the username and password referenced by the connection URL in your deployment secrets. For AWS SES, prefer the default credential chain so that rotation happens on the role or identity the workload assumes, and confirm which identity Langfuse picks up in each environment. Changing the sender address is a separate change: the new domain or address must be verified with your provider before you update the sender setting, and the old sender should stay verified until the cutover is complete. Record each change in your change log so that a missing email can be traced to a specific edit.
Re-test email after every Langfuse upgrade and after infrastructure changes such as moving to a new cluster, changing egress rules, replacing a NAT gateway, or switching the network path to the mail relay. Upgrade guidance is documented in the Langfuse upgrade guide, and the same test should run after minor updates as well as major ones, since a configuration key can change between releases. Confirm which Langfuse version you are running with the release notes first, then send a test invitation and a password reset from each environment. Ask your platform team to confirm that your operations runbook includes this test, and that the result is recorded in the same place as your other upgrade checks.
How DeployOpen scopes and delivers Langfuse email setup
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including the email path that Langfuse uses for invitations, password resets and export notifications. For this topic, we treat SMTP or AWS SES as one scoped piece of the Langfuse deployment, tested from the networks where Langfuse actually runs.
How we scope
- Confirm which email path you need, SMTP relay or AWS SES, and who owns the sending domain and DNS records.
- Record the sender address, reply handling and which Langfuse notifications must be delivered in your environment.
- Agree the written scope, deliverables and timeline before work starts, since most engagements are fixed-scope.
How we build
- Configure the SMTP connection URL or the AWS SES settings and the credential chain used by your Langfuse containers.
- Verify outbound paths from the private network, including egress rules, proxies and the relay or SES endpoint your VPC can reach.
- Test invitation, password reset and export notification messages end to end, and record the results for your security team.
How we hand over
- Deliver a written configuration record covering environment variables, secret locations, sender identities and IAM permissions.
- Document the test cases, expected results and troubleshooting steps for delivery failures from private networks.
- Walk your platform and security teams through the setup so they can review, rotate credentials and make changes.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for Langfuse and its email path.
- Retest email delivery after Langfuse upgrades, since changes to mail handling or configuration can affect sending.
- Ask any support provider to confirm response terms in writing, because DeployOpen publishes no SLA for this topic.

