Updated 2026-11-20

How to Send Zabbix Email Alerts Through an SMTP Relay

In Zabbix open Alerts > Media types > Email, set Email provider to Generic SMTP, SMTP server smtp.bulko.io, SMTP server port 587, Connection security STARTTLS and Authentication Username and password with your Bulko SMTP credentials, then press Test. Mail only goes out for real problems once a user has Email media with the right severities and an enabled trigger action sends to that user.

Zabbix emails problem and recovery notifications, acknowledgement updates and escalation reminders, all sent by the alerter processes of the Zabbix server through libcurl. The predefined Email media type starts with port 25 and no encryption, which most cloud providers block, so alerts either fail in the Action log or land in spam.

Email in Zabbix has three separate pieces, and the media type Test button only checks the first: the media type (how to reach the relay), the user media (address, hours, severities) and a trigger action (which problems go to whom). Labels below match Zabbix 7.0 LTS, 7.4 and 8.0 LTS (released November 2026).

Hostsmtp.bulko.io
Port587 · 465 · 2525
EncryptionSTARTTLS · SSL
Loginfrom dashboard

Zabbix SMTP settings

FieldValue
Email providerGeneric SMTP
SMTP serversmtp.bulko.io
SMTP server port587 (or 2525 with STARTTLS, 465 with SSL/TLS)
EmailZabbix <[email protected]> (a domain you control)
SMTP heloyourdomain.com
Connection securitySTARTTLS (SSL/TLS only with port 465)
SSL verify peer / SSL verify hostchecked (public Let's Encrypt certificate)
AuthenticationUsername and password
Usernamesmtp_xxxxxxxxxxxxxxxx (from Bulko dashboard -> SMTP Access)
PasswordYour Bulko SMTP password, or a macro such as {$EMAIL_SMTP_PASSWORD}

Generic SMTP vs the Gmail and Office365 presets

The Email provider list has five options: Generic SMTP, Gmail, Gmail relay, Office365 and Office365 relay. The four presets fill in server, port, helo and security themselves and hide those fields, so for Bulko use Generic SMTP.

  • Office365 logs in to Microsoft's submission service with a mailbox user and password (or OAuth in 7.4 and 8.0; 7.0 only offers None and Username and password). Exchange Online turns off SMTP AUTH with Basic authentication by default at the end of December 2026, so a working password-based Office365 media type can stop overnight; see Microsoft 365 SMTP Basic auth.
  • Office365 relay needs no password: Zabbix builds the server name from the sender's domain (example-com.mail.protection.outlook.com) and relies on a connector in your Microsoft 365 tenant that trusts the Zabbix server's IP. OAuth is not available for it, and it only delivers if that connector exists.

Bulko is send-only (no IMAP or POP3): replies stay with your mailbox provider.

Step-by-step setup

  1. Buy a Bulko SMTP Relay package, copy the username and password from Dashboard -> SMTP Access and verify your domain under Sending domains for DKIM.
  2. In the Zabbix frontend go to Alerts > Media types and open the predefined Email media type (or click Create media type and choose Type Email). Set Email provider to Generic SMTP; only this option shows the server, port and helo fields.
  3. Fill in SMTP server smtp.bulko.io, SMTP server port 587, Email (the From address) and SMTP helo (your domain; if empty Zabbix takes the domain after @ in Email). Set Connection security to STARTTLS and tick SSL verify peer and SSL verify host.
  4. Set Authentication to Username and password, enter the Bulko Username and Password, choose Message format HTML or Plain text, make sure Enabled is ticked and click Update. Check the Message templates tab: actions using a media type without templates can fail.
  5. Back in the media types list click Test in the Email row, enter your own address in Send to and send.
  6. Give a user an address: Users > Users > user > Media tab > Add (or User settings > Notifications for yourself). Choose Type Email, fill Send to, keep When active wide enough, tick the severities in Use if severity and leave the media Enabled.
  7. Go to Alerts > Actions > Trigger actions. Enable the shipped Report problems to Zabbix administrators action (it is disabled on a fresh install) or create your own: add conditions, then on Operations add Send message to your users or user groups and set Send to media type to Email (called Send only to before 7.0.7).
  8. Cause a harmless problem (stop an agent on a test host) and check Reports > Action log for Sent.

Same settings via the Zabbix API (mediatype.update, 8.0 property names) — id from mediatype.get

curl -s https://zabbix.example.com/zabbix/api_jsonrpc.php \
  -H 'Content-Type: application/json-rpc' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -d '{
  "jsonrpc": "2.0",
  "method": "mediatype.update",
  "params": {
    "mediatypeid": "MEDIATYPE_ID",
    "provider": "0",
    "smtp_server": "smtp.bulko.io",
    "smtp_port": "587",
    "smtp_helo": "yourdomain.com",
    "smtp_email": "Zabbix <[email protected]>",
    "smtp_security": "1",
    "smtp_verify_peer": "1",
    "smtp_verify_host": "1",
    "smtp_authentication": "1",
    "username": "smtp_xxxxxxxxxxxxxxxx",
    "passwd": "{$EMAIL_SMTP_PASSWORD}",
    "message_format": "1"
  },
  "id": 1
}'
# provider 0 = Generic SMTP; smtp_security 1 = STARTTLS (2 = SSL/TLS for port 465)
# smtp_authentication 1 = Username and password; message_format 1 = HTML, 0 = Plain text

Alert storms and the 2,000 emails per day limit

Bulko accepts 2,000 emails per day per SMTP access. In Zabbix every operation step, recipient and recovery or update message is a separate email: an action repeating five times to four users sends 20 emails per problem, and one dead switch can raise dozens of problems. Keep volume in check:

  • Action conditions: send email only for Trigger severity Average or higher, or only for the host groups that matter; leave the rest on the dashboard.
  • Escalation steps: one email at step 1, then a single reminder later (Steps 3-3), instead of repeating every Step duration.
  • Pause operations for symptom problems and Pause operations for suppressed problems on the Operations tab, so cause-and-symptom groups and hosts in maintenance do not mail.

Filter Reports > Action log by media type Email over a busy week to see your real daily peak.

Send a test email

The Test link next to the media type opens a dialog with Send to, Subject and Message; the server sends one message right away with the saved settings and shows success or the libcurl error in the same window. Save the media type first, the test uses what is stored.

A passing test proves relay, port, TLS mode and credentials, not user media, actions or permissions. The real proof is a problem event in Reports > Action log with status Sent. In progress means Zabbix is still retrying (3 Attempts, 10 s apart by default, on the media type's Options tab); Failed shows the reason in the Info column. No entry at all means no action matched the event.

Which machine sends the mail: server, proxies, Docker

Notifications are sent by the alerter processes of the Zabbix server. Proxies and agents never send email, so only the server host (in an HA cluster, whichever node is active) needs outbound access to smtp.bulko.io on 587, 2525 or 465. In Docker that is the zabbix-server container, not the web container.

  • SMTP authentication requires a server built with libcurl (--with-libcurl).
  • SSL verify peer uses the server's SSLCALocation parameter for the CA path. Bulko's certificate is a public Let's Encrypt one, so no custom CA is needed, but a minimal image without CA certificates or an SSLCALocation directory without public roots makes verification fail.
  • To see the SMTP conversation, raise logging for the alerters only: zabbix_server -R log_level_increase=alerter, run the test, read zabbix_server.log, then log_level_decrease=alerter.
  • The Password field accepts user macros. A literal password is exported in clear text with the media type, so define a global macro (Administration > Macros, type Secret text) such as {$EMAIL_SMTP_PASSWORD} and reference it instead.

Troubleshooting

ProblemFix
Login denied: Authentication failed: 535 (in Info or zabbix_server.log)Authentication must be Username and password, with the Bulko SMTP username and password from Dashboard -> SMTP Access, not a Gmail or Microsoft password. If the password sits in a macro, check that the macro resolves. More: https://bulko.io/en/smtp-errors/535/.
SSL connect error ... wrong version number, or the test hangs after you changed the portConnection security does not match the port. Use STARTTLS with 587 or 2525, SSL/TLS only with 465, and never None: the predefined Email media type starts with port 25 and None.
Couldn't connect to server or Timeout was reachedThe Zabbix server host (or the zabbix-server container) cannot reach the relay. Many cloud providers filter outbound SMTP; switch SMTP server port to 2525 with STARTTLS and check firewalls and DNS for smtp.bulko.io from that host.
SSL peer certificate or SSH remote key was not OKSSL verify peer is on but the server finds no public CA certificates: install the CA bundle in the server image or fix SSLCALocation. Keep SSL verify host on.
Test works, but no emails for real problems and nothing in Action logNo enabled trigger action matched. Check Alerts > Actions > Trigger actions, the user's Email media (Use if severity, When active) and that the user's group can read the host's host group.
Action log shows Failed with a sender rejectionThe Email (From) field uses a domain you do not control, or a free-mail address. Use an address on your own domain and verify that domain in the Bulko dashboard so alerts are DKIM-signed.

FAQ

Which Zabbix versions does this guide cover?

Zabbix 7.0 LTS, 7.4 and 8.0 LTS, which was released on 5 November 2026. The email media type fields are the same; 7.4 and 8.0 add OAuth as an Authentication option, which you do not need for Bulko.

Can I keep using the Office365 email provider?

It works as long as your tenant allows SMTP AUTH for that mailbox, which Microsoft disables by default for Basic auth at the end of December 2026. A Generic SMTP media type pointed at a relay avoids that dependency.

How many alerts can I send through Bulko?

2,000 emails per day per SMTP access, messages up to 32 MB. Use action conditions, escalation steps and severity filters so an outage does not burn through the daily cap.

How much does it cost?

Bulko SMTP Relay packages are one-time payments: 5K emails for $5, 20K for $15, 50K for $30 or 150K for $60, no subscription and unused emails never expire.

Get SMTP credentials for Zabbix

One-time payment by card or crypto, no subscription. Unused emails never expire. 2,000 emails per day per SMTP account.

SMTP Relay 5K: $5 · 5000SMTP Relay 20K: $15 · 20000SMTP Relay 50K: $30 · 50000SMTP Relay 150K: $60 · 150000
See SMTP relay plans

What you can send: Acceptable Use Policy.