Hoppa till innehållet

Apps

Auth0

Send the mail that Auth0 writes to your users, such as verification emails, password resets and passwordless codes, through Sendora’s SMTP. Auth0’s built-in email provider is meant for testing only, and sends at most 10 emails a minute.

Before you start

  • A Sendora account. A test server works from the moment the account exists. A live server sends once your account is approved. The account starts on Free, within the limits that Account › Usage in the dashboard shows.
  • Access to the DNS of the domain that Auth0’s mail comes from.
  • Access to your tenant’s settings in Auth0’s dashboard.

Set up Auth0

  1. Add the domain that Auth0’s mail comes from under Domains, and add the two DNS records it shows, as Domains explains.
  2. Create a test server under Servers › New server, with Testserver ticked, and create a key on its API keys tab. The key starts with sk_test_. A test server takes mail as a live server does and delivers none of it.
  3. In Auth0’s dashboard, open Branding, then Email Provider. Switch on Use my own email provider, choose SMTP, and enter Sendora’s values:
FieldValue
FromAn address on your verified domain, such as no-reply@example.se
Hostsmtp.sendora.se
Port465
UsernameThe server key
PasswordThe server key

Port 465 encrypts the connection from the first byte. Port 587 works too, with STARTTLS. Sendora needs no list of Auth0’s IP addresses, since it takes connections from any address.

  1. Click Save.
  2. Click Send Test Email.
  3. Find the message on the server’s Messages tab under Servers.
  4. Once your account is approved, create a key on your live server’s API keys tab, such as the default server that signup made. Put it in Username and Password in place of the test key, and click Save.

The From address of each email

An email template under Branding › Email Templates may set its own From Address, in place of the provider’s From. Leave it empty, or use an address on your verified domain. Passwordless email has a From of its own, under Authentication › Passwordless › Email, which needs an address on your verified domain too.

If a message is refused

When Sendora refuses a message, Auth0 logs a Failed Sending Notification event under Monitoring › Logs, with Sendora’s reply. 535 5.7.8 means the key is wrong or revoked. 550 5.7.1 means the From domain is not verified, or that a live server’s account is not yet approved. 451 4.7.0 means that a limit is reached, such as Free’s daily limit. 550 5.1.1 means the recipient’s address is on the suppression list, for example after a hard bounce. SMTP replies lists every reply.

Test the setup

On the server’s API keys tab under Servers, Test the setup shows each valid key’s latest sign-in and accepted message over SMTP. It also shows the key’s latest refusals, each with what to do. After Auth0 sends a message, click Check now.