Please check your configuration: Mastodon ZeptoMail SMTP fix
Mastodon's "Please check your configuration" error with ZeptoMail usually points to a port and encryption mismatch. Use port 587 with STARTTLS or port 465 with SMTP_TLS=true, emailapikey as the login and your Send Mail token as the password, then restart Mastodon, including Sidekiq, so the new settings load.
Sohail Hussain8 min readShort answer
- Match the port to the encryption setting in .env.production: port 587 with SMTP_ENABLE_STARTTLS=always, or port 465 with SMTP_TLS=true. Leave SMTP_AUTH_METHOD=plain.
- Use the username and Send Mail token shown in your ZeptoMail Mail Agent, then restart web, Sidekiq and streaming.
- If it still fails, check the token and region host, the from address, and whether your host blocks the port.
You set up ZeptoMail as Mastodon's mail relay, triggered a confirmation or password-reset email, and the logs show Please check your configuration. People on community forums report this as an SMTP authentication error with ZeptoMail, and the fix they describe is to use port 465 with SSL or port 587 with TLS. Below is why that works and how to check each part.
What the error means
Please check your configuration is Mastodon's wrapper, not ZeptoMail's reply. It says the SMTP conversation failed at some step: connecting, encrypting, logging in or the first send. The wording doesn't tell you which step.
The forum explanation is that ZeptoMail "rejects plain auth". I can't confirm that from ZeptoMail's side, and I wouldn't change the auth method on that basis. The standard explains the symptom better. RFC 4954 says a server must be able to run without permitting plaintext password mechanisms unless STARTTLS has been negotiated, and that clients and servers must implement PLAIN running over TLS. So a plain login on an unencrypted session can be refused, while the same login inside TLS is the normal, expected combination.
Why it happens
Most common first:
- Port and TLS settings don't match. Mastodon's sample environment file defaults to
SMTP_AUTH_METHOD=plainandSMTP_ENABLE_STARTTLS=auto. Withauto, Mastodon upgrades with STARTTLS only if the server offers it, and it uses implicit TLS only when you setSMTP_TLS=true. Pointing it at port 465 without that flag is the classic mismatch. - Wrong credentials. ZeptoMail SMTP doesn't use your Zoho login. It uses the username and token listed in the Mail Agent's SMTP setup.
- Wrong regional host. Use the SMTP host your Mail Agent shows, not one copied from a guide.
- Settings not reloaded. Mastodon sends mail from Sidekiq, so restarting only the web process leaves the old settings in place.
- Network block. Your host or firewall drops outbound traffic on the SMTP port.
- From address problem. This usually shows up as a rejection after login, not as an authentication error.
Fix 1: use a matching port and TLS pair
Pick exactly one block for .env.production. Port 587 uses STARTTLS, an upgrade after the connection opens. Port 465 uses implicit TLS, encrypted from the first byte.
Port 587 with STARTTLS:
SMTP_SERVER=smtp.zeptomail.com
SMTP_PORT=587
SMTP_LOGIN=emailapikey
SMTP_PASSWORD=your-send-mail-token
SMTP_FROM_ADDRESS=notifications@example.com
SMTP_AUTH_METHOD=plain
SMTP_ENABLE_STARTTLS=always
Port 465 with implicit TLS:
SMTP_SERVER=smtp.zeptomail.com
SMTP_PORT=465
SMTP_LOGIN=emailapikey
SMTP_PASSWORD=your-send-mail-token
SMTP_FROM_ADDRESS=notifications@example.com
SMTP_AUTH_METHOD=plain
SMTP_TLS=true
Replace the host, login and token with the values from your own Mail Agent. Variable names come from Mastodon's .env.production.sample; compare against the copy in your installed version if something is rejected.
- Open
.env.productionin your Mastodon directory (or the environment block of your Docker setup). - Remove any older
SMTP_*lines so nothing is defined twice. - Paste one block only.
- Save the file.
- Restart every Mastodon process. On a systemd install, restart
mastodon-web,mastodon-sidekiqandmastodon-streaming. With Docker, recreate the containers so they re-read the environment. - Trigger a real email, such as a password reset for a test account, and watch the Sidekiq log.
Don't mix the two modes
Never combine SMTP_TLS=true with port 587, and never set SMTP_TLS=true together with SMTP_ENABLE_STARTTLS=always. One side then speaks TLS while the other waits for plain text, and the connection fails before login.
Fix 2: check the credentials ZeptoMail expects
Open your Mail Agent in ZeptoMail and find its SMTP setup details. They list the host, username and password.
- The username is typically the literal string
emailapikey, not your email address. - The password is the Send Mail token for that specific Mail Agent. A token from another agent, or one you regenerated since, will fail.
- Use the host shown in your own Mail Agent. An account created in one region may not authenticate against another region's host.
- Paste the token with no trailing spaces. Avoid wrapping it in quotes in
.env.production, because some loaders keep the quotes as part of the value.
Fix 3: check the from address
Set SMTP_FROM_ADDRESS to an address on the domain you configured in your Mail Agent, such as notifications@example.com. If the Mail Agent shows that domain as unverified, finish the verification steps ZeptoMail lists there. A bad from address normally fails after login, so treat it as the next thing to check once authentication works.
Fix 4: test the connection from the Mastodon server
Run these on the Mastodon host itself, not your laptop:
openssl s_client -starttls smtp -connect smtp.zeptomail.com:587
openssl s_client -connect smtp.zeptomail.com:465
A certificate chain in the output means the network path and TLS work. On port 587, after the connection opens, type EHLO example.com. The AUTH keyword carries a list of the available authentication mechanisms, so a 250 reply that lists AUTH means the server is ready for login and the problem is in Mastodon's variables or credentials. The STARTTLS keyword tells the client the server can negotiate TLS, so on an unencrypted session you should see it in the reply. Per RFC 4954, the mechanism list may change after a successful STARTTLS, so PLAIN may only appear after the upgrade.
A timeout or "connection refused" points to a firewall or a host blocking the port. Try the other port, using the matching block from Fix 1, and ask your hosting provider whether outbound SMTP ports are filtered.
For the specifications behind this, see RFC 4954 (SMTP authentication) and RFC 3207 (STARTTLS).
Which cause do you have
| Symptom | Likely cause | Fix |
|---|---|---|
| Error right away, no TLS handshake | Port and TLS pair don't match | Fix 1 |
535 or similar authentication failure | Wrong username, token or region host | Fix 2 |
| Login works, message rejected | From address or domain problem | Fix 3 |
| Timeout or connection refused | Firewall or host blocks the port | Fix 4 |
| Old behavior after editing the file | Sidekiq not restarted | Fix 1, step 5 |
Read Sidekiq, not the web log
Mastodon sends mail from background jobs, so the useful error text is in the Sidekiq log. The web log usually shows nothing for a failed send.
Checklist before you try again
- Only one block of
SMTP_*variables exists in.env.production. - Port 587 goes with
SMTP_ENABLE_STARTTLS=always; port 465 goes withSMTP_TLS=true. SMTP_LOGINand the token match the SMTP details of the right Mail Agent.- The host matches the one shown in your Mail Agent.
SMTP_FROM_ADDRESSis on the domain set up in your Mail Agent.- web, Sidekiq and streaming were all restarted.
- The
openssltest connects from the Mastodon server.
For background on encryption modes, see our explainer on SSL/TLS for SMTP and the SMTP glossary entry.
If nothing works
Contact ZeptoMail support for credential, region or domain questions. If the openssl test can't connect at all, ask your hosting provider. Include:
- the Mail Agent name and its region
- the timestamp (with time zone) of a failed attempt
- the exact SMTP response from the
openssltest or the Sidekiq log - the port and TLS settings you used
- what you already tried
Subject: SMTP login fails from Mastodon (Mail Agent: {agent-name})
Hello,
Mastodon (self-hosted) fails to send mail through ZeptoMail SMTP and logs
"Please check your configuration".
Mail Agent: {agent-name}
Host: {host shown in the Mail Agent}
Port and TLS: 587 with STARTTLS (also tried 465 with SSL/TLS)
Username: emailapikey
Failed attempt: {date, time, time zone}
SMTP response: {paste the response from the Sidekiq log or openssl test}
I confirmed the token belongs to this Mail Agent. Can you check your logs
for this attempt?
Thanks
Common questions
Do I need to change SMTP_AUTH_METHOD to something other than plain?
Usually not. plain over an encrypted connection is the combination the standard requires servers and clients to support. Change the method only if the SMTP details in your Mail Agent say otherwise.
Should I use port 587 or 465?
Either works if the TLS setting matches. I'd start with 587 and SMTP_ENABLE_STARTTLS=always, and try 465 with SMTP_TLS=true if your network blocks 587.
Why does the error mention configuration instead of a password problem?
Mastodon wraps several SMTP failures in the same message. A bad token, a TLS mismatch and a blocked port can all end up there, which is why the Sidekiq log and the openssl test matter.
Do I need to restart anything after changing .env.production?
Yes. Mastodon reads the file at startup, and Sidekiq does the sending. Restart all three services, or recreate the Docker containers.
Explore: Email Deliverability
Related Articles
ZeptoMail review taking too long or form "unsatisfactory"
If ZeptoMail's Customer Validation form comes back "deemed unsatisfactory" or the account review drags past two weeks, rewrite your answers with specifics (what you send, where addresses come from, your sending domain) and contact Zoho support with your account details. Keep a fallback provider ready.
ZeptoMail S3140: Microsoft blocked IP on Hotmail, Outlook bounces
S3140 means Microsoft is refusing mail from a sending IP, here a shared ZeptoMail address, to its consumer domains (Outlook.com, Hotmail, Live). You can't clear it from your account. Ask Zoho to escalate, file a Microsoft sender support request, and route critical mail through a second provider meanwhile.
ZeptoMail "Relaying issues - Mail sending blocked": Causes and Fix
The ZeptoMail error "Relaying issues - Mail sending blocked" means ZeptoMail refused to relay the message for your account. Check that the From address uses a verified domain, that your SMTP credentials belong to the right Mail Agent, and that your account isn't under review. If all three are fine, send support the request ID.
0x800ccc0e: Outlook Unable to Connect to SMTP Server, Fixed
Outlook error 0x800ccc0e means the app could not open a connection to your outgoing (SMTP) server. Usually the port, encryption setting or password is wrong, or antivirus, a firewall or your ISP is blocking it. Set port 587 with STARTTLS, turn on SMTP authentication, and test again.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free