How Alertmanager email notifications over SMTP reach the right inbox
A team that wants Prometheus alerts delivered by email answers its first question with one component: Alertmanager's email receiver sends notifications through an SMTP relay the organization already operates. The supported method is the built-in email_configs block in the Alertmanager configuration, not a plugin or a sidecar. Alertmanager does not store or relay mail itself. It groups incoming alerts, applies routing and inhibition, and then hands each notification to the SMTP server named in the receiver. Everything that happens to the message after that point, including queuing, spam scoring and delivery, belongs to the relay and the mail platform behind it. For the full list of keys, such as smarthost, from, to, auth_username, require_tls and tls_config, use the Alertmanager documentation as the configuration reference.
The decisions that matter sit before the send. Routes decide which receiver an alert reaches, and group_by decides how many alerts land in one email. A route that sends every alert to one shared mailbox produces a different inbox experience than routes split by team or severity, so the team should map its owners to labels before writing any email_configs. The relay side needs the same care: confirm with the mail team which host and port accept submissions from the Alertmanager network, whether the relay requires STARTTLS or implicit TLS, which account and credential store will hold the password, and whether the sender address is allowed to send on behalf of the domain. Those answers determine the authentication and TLS settings in the receiver, and they are easier to collect before the first test message than after.
This page covers configuration, testing and operations of the email path: the receiver settings, relay authentication and TLS, sender and recipient routing, readable templates, and the reasons email is a weak paging channel. Expect to test each step with a deliberately firing alert and to check the relay logs as well as the Alertmanager logs, because a rejected message often appears there first. Treat email as a notification channel for information that can wait, and confirm with your on-call policy which alerts also need a faster path. Your mail team, not Alertmanager, will own the answers to deliverability questions, so involve them before the receiver goes live.
Prerequisites for Alertmanager email notifications over SMTP
Email receivers depend on more than a YAML block. The cards below cover the running components, the relay and mailbox decisions, the DNS and trust material, and the secrets handling that need to be in place before anyone edits the Alertmanager configuration. Confirm each item with the owners named here, because most delays on this kind of work come from approvals and DNS changes rather than from the configuration itself.
Running Prometheus and Alertmanager
Email is sent by Alertmanager, so it has to be running and receiving alerts from Prometheus before any receiver is tested. Confirm that every Prometheus server points at the Alertmanager instances you intend to use, and that alerts already arrive there. Pick the Alertmanager version to target by checking the current release list and the configuration reference, since the field names and defaults in examples must match that exact version. Writing examples against an unconfirmed version is a common source of rework.
Alertmanager docsSMTP relay approved by security
Alertmanager needs a relay host it can reach over the network, usually an internal mail gateway or a managed transactional service your organization already approves. Ask the security team which relay is allowed for system mail, which ports are open from the Alertmanager network segment, and whether the relay accepts authenticated submission from a non-mail server. Record the host name, port and TLS mode in the requirements so the receiver can be written against facts rather than assumptions.
Sending address and mailbox policy
Decide which address the alerts come from and who owns it. A shared mailbox or a no-reply address is typical, but many organizations block unmonitored senders or require a named owner, retention rules and a rotation plan for the password. Confirm whether the mailbox can receive replies, since on-call staff often reply to alert mail and those replies need a destination. Agree the recipient distribution lists in the same conversation so routing rules have stable targets.
DNS records for the sender domain
Receiving mail servers judge alert messages by the sender domain's DNS. Ask the domain owner to confirm the SPF record authorizes the relay, that DKIM signing is in place where the relay supports it, and that a DMARC policy exists and is understood by the team. Missing records often cause alerts to land in spam or be rejected, and the failure can look like a broken Alertmanager. Check the records with the domain owner before the first test send.
CA bundle for internal relays
If the relay uses a certificate issued by an internal certificate authority, Alertmanager must trust that chain or the TLS handshake will fail. Obtain the CA bundle from the PKI or infrastructure team in PEM form, confirm the relay's certificate names match the host you will configure, and confirm whether the relay expects STARTTLS on a submission port or implicit TLS. Keep the bundle under configuration management so a CA rotation does not silently break alert delivery.
Secrets location for SMTP credentials
If the relay requires authentication, the SMTP username and password must live somewhere other than plain text in the main configuration file that is shared widely. Agree with the platform team where the secret will be stored, who can read it, how the file is mounted into the Alertmanager container or host, and how it is rotated. Confirm that configuration and logs will not echo the credential. The file path and ownership rules should be written down before the receiver block is drafted.
Alertmanager docsConfiguring the Alertmanager email receiver step by step
This sequence takes Alertmanager from an unconfigured email path to a verified notification, with each step closed by a check the reader can run. It is designed so the mail team, the monitoring owners and the on-call team each confirm their part before alerts reach a real mailbox.
Confirm the relay host and port with the mail team
Ask the mail team which SMTP relay Alertmanager should use, the port, whether STARTTLS or implicit TLS is required, and which source addresses the relay accepts. Confirm the relay will accept mail from the Alertmanager host and that it is allowed to send to the recipient domains. Record the answers in writing. This step is done when the mail team confirms the relay in writing and a basic connection test from the Alertmanager host reaches the relay on the agreed port.
Create a dedicated sending identity
Ask the mail team for a service account or sending mailbox used only by Alertmanager, with credentials stored in your secrets manager rather than in plain text in the repository. Confirm the sender address is permitted by the relay and that SPF, DKIM and DMARC are aligned for that domain, which the mail team owns. This step is done when the account can authenticate to the relay and the sender address is accepted for a test message.
Define global SMTP settings and the sender address
In the Alertmanager configuration, set the global SMTP block with the relay address, the sender address, the authentication fields and the TLS behavior, using key names verified against the Alertmanager configuration reference for your version. Keep the password in a file or secret reference supported by your version rather than inline where possible. This step is done when the configuration file parses and the sender field matches the identity the mail team approved.
Add the email receiver with recipient lists
Define a named email receiver with the recipient list for the controlled test first, then add the production team lists once delivery is proven. Use a distribution list owned by the team rather than individual addresses where possible, and set the TLS settings the receiver needs, checking the exact field names in the reference for your release. Consider whether resolved notifications should be sent, and confirm this with the team. This step is done when the receiver appears in the file with only the controlled mailbox as a recipient.
Attach the receiver to a route
Add a route that sends a single, clearly labeled test alert to the new receiver, matching on a label that no production alert uses, such as a test label your team defines. Keep the default route unchanged for now. Confirm the route tree is valid and that the test label does not match any production rule. This step is done when a route review confirms the test label cannot capture real production alerts.
Validate the file with amtool before reload
Run amtool check-config against the configuration file on the host where Alertmanager runs or in CI. Fix every error and warning it reports before reloading. Store the file in version control so the change can be reviewed and rolled back. This step is done when amtool check-config completes without errors on the exact file that will be deployed.
Send a test alert through a controlled route
Reload Alertmanager using the method your deployment allows, then send a test alert carrying the test label, for example with amtool alert add or a temporary test rule in Prometheus. Use a rule that fires and then clears so both states can be checked. Expect the alert to reach the controlled mailbox with a readable subject and body. This step is done when the firing message arrives in the controlled mailbox and the message headers show the approved sender address.
Confirm delivery and the resolved notification
Wait for the test alert to clear, or resolve it manually, and confirm the resolved notification arrives in the same mailbox. Check that the message content is readable without opening a dashboard and that no duplicate messages appeared. Then record the result, remove or disable the test route if needed, and schedule a review before adding production recipients. Email delivery depends on the relay, so treat this check as a sign-off gate and not as proof of reliable paging. This step is done when both messages are received and the team signs off the production change.
How an alert travels from Prometheus to an email inbox
The path starts when Prometheus evaluates an alert rule and pushes the firing alert to Alertmanager, which groups and routes it to an email receiver. Alertmanager then hands the message to an SMTP relay inside the mail boundary, which sends it on to the external mail system and the recipient's mailbox. Check each hand-off: the Alertmanager-to-relay connection needs TLS and authentication, and the relay is the point where delivery can fail silently.
Alert path from rule evaluation to the recipient mailbox, with trust boundaries marked.
Mapping alert labels to sender, recipient and message fields
This table shows where each piece of alert data lands in an email, and whether your team sets the mapping through its label conventions or Alertmanager fixes it. Read the second column for what you control and the third for what the template data gives you. The main takeaway is that routing and recipients depend on conventions you must write down, while status wording and the grouping key behave the same way for every alert.
| Alert data | Email field or behavior | Set by |
|---|---|---|
| team, severity and environment labels | Route matchers choose the email receiver and recipient list | Your team's label conventions |
| Recipient addresses for each team | The to field of the email_configs entry on each receiver | Your receiver configuration |
| group_by labels, such as alertname and cluster | Which alerts share one email and the grouping shown in the subject | Your routing choices, with Alertmanager applying them |
| status field (firing or resolved) | Firing or resolved wording in the subject and body template | Alertmanager template data, with wording set by your template |
| summary and description annotations | Short text in the subject line and first lines of the body | Your alerting rules, rendered by Alertmanager templates |
| runbook_url annotation | Link in the body for the on-call engineer to follow | Your alerting rules and their annotation naming |
| Sender address (from) and Reply-To | The sender identity presented by the SMTP relay | Your relay configuration and the mail domain policy |
| Labels not used in routing | Available to templates but not mapped to a field unless you add them | Your template design and the label set your rules emit |
Why email alone is a weak paging channel
Email should not be the only way an on-call engineer learns of a production outage. Alertmanager sends an email and considers its job done once the SMTP server accepts the message. The email_configs receiver gives it no acknowledgement, no escalation path and no delivery receipt it can read back. If the engineer is asleep, in a meeting, or has a mailbox rule that files alerts into a folder nobody opens, nothing in the alerting pipeline notices. A silent failure of the notification path looks identical to a quiet night.
Several links in the delivery chain sit outside the monitoring team's control. The relay may queue or throttle messages, the recipient's mail provider may delay or junk them, and corporate filtering may rewrite links or quarantine repeated subjects from the same sender. Alertmanager's grouping can also collapse many firing alerts into one message, so a single delayed email may stand in for a large incident. Confirm with your mail team what the relay's queue limits and retry behavior are, and whether alert senders are exempt from bulk-mail filtering. Then test the path end to end rather than assuming it works.
The practical position is to use email for what it does well: notifications for teams that watch a shared inbox, daily or weekly reports, and tracked follow-up for issues that do not need a page. Anything that must wake someone up belongs on a paging or incident tool with acknowledgement and escalation, configured as a separate receiver with its own routing. The sibling pages on PagerDuty and incident.io receivers and Jira or webhook receivers cover those paths in detail. Keep the email receiver as a secondary channel, and check the paging route on a schedule with a test alert.
Securing SMTP credentials and transport for Alertmanager email
Alertmanager email receivers hold SMTP credentials, send alert content across your network, and can be changed by anyone who reaches its configuration. The decisions below cover where secrets live, how the connection to the relay is protected, who may send and what the messages reveal, and who may change the configuration. Alertmanager's own HTTP API and web access need separate protection, which the security hardening page covers.
Keep SMTP passwords out of plain configuration
The smtp_auth_password key in the Alertmanager configuration file is a plain-text secret, and anyone who can read the file or its backups can use it. Prefer smtp_auth_password_file, pointing at a file readable only by the Alertmanager service account, or inject the value from a secrets manager at deploy time. Check that the configuration file is not committed to version control, that it is not printed in CI logs, and that the mailbox password is unique to this relay and rotated under your normal policy. Confirm the exact key names against your Alertmanager version's configuration reference before you write them.
Require TLS and verify the relay certificate
Alert text can include hostnames, service names and error messages, and basic authentication sent without encryption exposes the mailbox password. Require TLS on the connection to the relay, and verify the relay certificate against your internal certificate authority rather than disabling verification to get a connection working. Check that require_tls is enabled on every receiver, that the CA bundle used by the Alertmanager host includes your internal root, and that the certificate name matches the relay hostname in smarthost. Test the connection after each certificate renewal.
Restrict which hosts can send through the relay
Mail relays often accept submissions from any address in an allowed network range, so a compromised host elsewhere on that range could send mail as your alerting identity. Limit relay access to the Alertmanager hosts by source address and, where the relay supports it, by authenticated account. Ask the mail team to confirm that the relay does not act as an open relay for internal networks and that outbound alert mail cannot reach external domains unless that is intended.
Limit the alert mailbox to send-only access
The account Alertmanager uses only needs to submit messages. It should not be able to read the mailbox, log in to webmail, or manage other accounts. Create a dedicated sender account or a relay-side submission credential, grant it no read permissions, and keep it separate from any human mailbox. If an operator needs to read alert mail, they should use their own account. Ask the mail administrator to confirm which permissions the account has, because some mail platforms grant read access by default to shared mailboxes.
Keep customer identifiers out of subjects
Email subjects are often stored in unencrypted mail queues, archived by the relay, and shown on lock screens. Keep subject templates generic, for example naming the alert and environment, and move detail such as customer identifiers, account numbers or personal data into the body, which should still be limited to what responders need. Review the templates in html and text fields, and remember that annotations copied from Prometheus rules can carry label values you did not intend to send. Where data handling rules apply, confirm the retention set by your relay and mail archive.
Control who changes and reloads the configuration
Whoever edits the receiver configuration controls where alerts go, so an unreviewed change can silently send alerts to the wrong recipients or to an external address. Put the configuration under version control with peer review, restrict write access to the deployment pipeline, and limit who can trigger a reload. Confirm whether the reload path is enabled on your instance and who can reach it, and check the Prometheus security model before enabling any lifecycle endpoints. Keep a record of each change so you can trace a recipient list to its approval.
Prometheus security modelTroubleshooting failed Alertmanager email delivery
This table pairs each common email failure with its likely cause and a check you can run in your own environment. Work down the rows in order, since relay and TLS problems hide the later ones. The main takeaway is that most email failures are visible in Alertmanager's own logs and in the configuration you already wrote, so confirm those first before changing the relay.
| Failure | Likely cause | Check and fix |
|---|---|---|
| Relay rejects authentication | Wrong username, password or auth mechanism in the email_configs block, or a secret that was not loaded into the container | Look for authentication errors in Alertmanager logs at startup and on the first notification. Confirm the auth_username and auth_password_file values, then test the same credentials with your relay's own client outside Alertmanager. |
| TLS handshake fails with an internal CA | The relay certificate is signed by an internal authority that Alertmanager does not trust | Check the error for certificate verification text. Set tls_config.ca_file to the internal root or intermediate certificate, and confirm the certificate name matches the smarthost host. Do not disable verification as a fix. |
| Sender rejected by DNS or SPF policy | The from address domain does not authorize the relay's sending IP, or the domain lacks matching DNS records | Ask the receiving provider or your relay for the rejection code. Confirm the SPF record includes the relay and check that the from address is a domain your organization controls. Confirm DKIM and DMARC records with your mail team. |
| Recipients get no mail because the route does not match | A route matcher, receiver name or continue setting sends the alert somewhere else, or the default receiver is missing the email channel | Run amtool config routes test with the alert labels to see which receiver matches. Compare the receiver name in the route with the receiver name under receivers, and check that the email receiver has a to field. |
| Duplicate emails from several replicas | Each Alertmanager replica in a cluster sends its own notification, and the cluster deduplication is not in effect | Count notifications per alert in the inbox and compare them with the number of replicas. Confirm the cluster flags are set on every instance and that every Prometheus lists every Alertmanager. Confirm this with your team's HA setup before changing receivers. |
| Empty or unreadable bodies after a template change | A template references a field that does not exist, renders to nothing, or produces markup that the mail client cannot show | Check Alertmanager logs for template execution errors and reload the configuration. Render the template against a sample alert payload before deploying. Send a test alert to a mailbox you control and check the plain text and HTML parts. |
| Resolved notifications missing | The receiver is set to skip resolved messages, or the matching alert never reached the resolved state in the same group | Check send_resolved on the email receiver. Confirm the alert actually cleared in the Alertmanager interface, since grouping can delay a resolved message until the group interval passes. Inspect notification logs for the resolved event. |
Questions buyers ask about Alertmanager email over SMTP
How much does an Alertmanager email integration cost?
The software itself is free, since Prometheus and Alertmanager are open source under Apache-2.0, so the cost is the work to connect them to your mail system. Most of it is labor: a mail administrator or relay owner to approve a sending identity, template and routing work, and testing across the recipients who will receive alerts. Ask any partner for a quote that lists each of these items separately, and note whether relay access or a new mailbox is charged as a one-time cost or as a recurring one.
How long does SMTP alerting setup usually take?
The configuration itself is short, but the calendar is usually set by people outside the monitoring team. Lead times for relay credentials, a sending mailbox, firewall rules and mail policy approvals often exceed the technical work, and identity decisions such as whether alerts go from a shared service account or a named mailbox can stall the project. Confirm these lead times with your mail team before agreeing a schedule, since no general duration applies across organizations.
What does the work need from our team?
You need to provide the SMTP relay host and port, the authentication method and credentials for a sending account, and the sender address your mail policy allows. You also need DNS access so the sending domain can publish SPF, DKIM and DMARC records as your mail team requires, plus a test window where alerts can fire on purpose without paging anyone. Ask for these inputs in writing at scoping so they are not discovered during the build.
Can our in-house team set up email alerts without a partner?
A basic receiver is within reach of an in-house team that already runs Prometheus, since it is a single email_configs block in the Alertmanager configuration. The harder parts are TLS policy, certificate trust with your relay, credential storage and deliverability, which depend on how your mail system treats automated senders. If your team lacks recent mail administration experience, a scoped engagement can cover those areas while your staff keep ownership of the result.
Can email replace a pager for critical alerts?
No. Email is delivered asynchronously, may sit in a filtered folder, and depends on mail systems and mobile sync that have no acknowledgment or escalation model. Alertmanager can send email, but it cannot confirm that a person has read a message or escalate if nobody responds. Use email for tracked, non-urgent notifications and pair critical alerts with a paging receiver that supports acknowledgment and escalation.
Does an email alerting engagement include ongoing support?
A fixed-scope engagement covers the agreed build, which is usually the receiver, routing, templates, testing and handover, and those deliverables are defined in writing before work starts. Ongoing support, such as updating templates, reviewing routing when teams change, and handling Prometheus or Alertmanager upgrades, is available as a retainer rather than being included by default. Ask for the support scope and response expectations in the quote so you know what happens after handover.
Does Alertmanager email support TLS and authenticated relays?
Alertmanager's email receiver can be configured to authenticate to an SMTP relay and to use TLS, and the exact settings for your relay should be confirmed against the Alertmanager documentation for the version you run. Plan for the relay's certificate chain to be trusted by the Alertmanager host and for credentials to be kept in a secret store rather than in plain configuration files. Your mail team should confirm which TLS modes and authentication methods the relay accepts before the build starts.
What should we check before turning on email alerts in production?
Check that a test alert reaches every intended recipient, that the message renders correctly in common mail clients, and that resolved notifications arrive when an alert clears. Confirm that the sending domain passes the authentication checks your mail system enforces and that bounced or rejected messages are visible to someone who will act on them. Keep an end-to-end test alert on a schedule so a silent failure in the relay is noticed before a real incident.
How DeployOpen scopes and delivers Alertmanager email notifications
DeployOpen treats Alertmanager email as one part of a paging design, not a standalone feature. We scope the SMTP relay, routing and templates in writing, build them in your infrastructure, test them against real alerts, and hand over the configuration with the runbooks your team needs to operate it.
How we scope
- Inventory which teams, alert severities and recipients will receive email, and which must use a different channel.
- Confirm the SMTP relay, its authentication method, TLS requirements and who owns the mail domain.
- Agree in writing which receivers, routes, templates and test cases the fixed scope includes.
How we build
- Configure the email receivers with credentials kept out of plain text and TLS settings checked against your relay.
- Write route matchers and readable templates, then test routing with sample alerts before rollout.
- Run failure tests for the relay and Alertmanager cluster so you know what happens when mail is refused.
How we hand over
- Deliver the versioned Alertmanager configuration, template files and a record of every test run.
- Document the email path, sender and recipient ownership, and how to add or remove a recipient.
- Provide a runbook that states clearly where email should not be relied on for urgent paging.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Re-test routes and templates when teams, relays or Alertmanager versions change.
- Ask any DeployOpen quote to separate one-time build effort from recurring support effort.

