Skip to main content

Email

Alert email is sent through your own SMTP server, from your own domain. xScaler does not relay it, so your deliverability, spam filtering and rate limits stay yours.

What you need

An SMTP server that accepts mail from the internet, and a set of credentials for it. Any transactional mail provider works: Amazon SES, SendGrid, Postmark, Mailgun, or your own Postfix.

Create a dedicated sending user rather than reusing a person's mailbox credentials.

Create the contact point

Insights → Alerting → Contact points → New contact point, type Email.

FieldNotes
AddressesRecipients, comma-separated: [email protected], [email protected]
SMTP hostYour mail server, for example email-smtp.eu-west-1.amazonaws.com
SMTP port587 for STARTTLS, 465 for implicit TLS, 25 for an unauthenticated relay
From addressThe envelope sender. Use an address on a domain you control
SMTP usernameLeave blank for an unauthenticated relay
SMTP passwordRequired when a username is set
Send a single email to all recipientsOne message addressed to everyone, instead of one message each
SubjectOptional. Takes a template
Message bodyOptional. Takes a template

Then Test.

Provider settings

ProviderHostPortUsername
Amazon SESemail-smtp.<region>.amazonaws.com587The SMTP credential, which differs from your AWS access key
SendGridsmtp.sendgrid.net587apikey, literally
Postmarksmtp.postmarkapp.com587Your server API token, as both username and password
Mailgunsmtp.mailgun.org587postmaster@<your-domain>

Whichever you use, verify the sending domain with the provider first. An unverified From address is the most common cause of alert email that leaves xScaler and never arrives.

Deliverability

Alert mail is transactional and bursty, which is exactly the shape spam filters dislike.

  • Set SPF and DKIM on the sending domain.
  • Send from a subdomain such as alerts.acme.io, so an alerting burst cannot affect your main domain's reputation.
  • Group alerts so an incident is one message rather than forty. See Notification policies.
  • Check your provider's rate limit against your busiest incident.
Email is a poor paging channel

Mail is queued, filtered and batched by systems you do not control, so it arrives minutes late often enough to matter. Use email for warnings and records, and page through PagerDuty, Opsgenie or Slack.

Common failures

Delivery attempt saysCause
535, authentication failedWrong username or password. SES and Postmark both use credentials that differ from the ones you log in with
530 must issue a STARTTLS commandPort mismatch. Try 587
connection refused, timeoutThe host or port is wrong, or the server does not accept connections from the internet
550 not authorized, rejectedThe From address or its domain is not verified with the provider
A private or internal addressThe SMTP host resolves to a private, loopback or metadata address. Delivery there is refused
re-enter the contact point secretsThe save changed the SMTP host and left the password untouched. Re-enter it
Sent, nothing receivedYour mail server's logs are next. The message left xScaler

Changing the SMTP host later

The stored password is bound to the host it was saved against. Change the host and you have to re-enter the password in the same save. See Contact points.