Troubleshooting

SMTP connection failed: how to fix it

Short answer

Use host smtp.mailcandor.com, port 465 with TLS (SSL) on from the start, or port 587 with STARTTLS. The username is always mailcandor and the password is a Mailcandor API key. Most failures are a mismatched port and TLS setting, a blocked outbound port on your host, or the wrong username. Ports 25 and 2525 are not offered. Error replies such as 535 or 550 include a message saying what to fix.

Last checked 16 November 2026

The settings

Setting Value
Host smtp.mailcandor.com
Port 465 (TLS from the start, often called SSL) or 587 (STARTTLS)
Username mailcandor
Password A Mailcandor API key (mc_live_...). A sending-only key is enough.
Authentication Required. On 587, log in only after STARTTLS.

Match the port to the TLS mode

This is the most common mistake.

Port Setting in your software Wrong setting gives
465 “SSL/TLS”, secure: true, smtps Hangs or “greeting never received” if TLS is off
587 “STARTTLS”, secure: false with TLS required “wrong version number” or handshake errors if SSL is on

Nodemailer example:

import nodemailer from 'nodemailer';

const transport = nodemailer.createTransport({
  host: 'smtp.mailcandor.com',
  port: 465,
  secure: true, // for port 587 use secure: false and requireTLS: true
  auth: { user: 'mailcandor', pass: process.env.MAILCANDOR_KEY },
});

await transport.verify(); // throws with the server's reply if something is wrong

Test the connection yourself

From the machine that sends:

# Port 465, TLS from the start
openssl s_client -connect smtp.mailcandor.com:465 -quiet

# Port 587, STARTTLS
openssl s_client -starttls smtp -connect smtp.mailcandor.com:587 -quiet

You should see a 220 greeting. If the command hangs or says connection refused or timed out, the connection is blocked before it reaches us: see the next section.

Connection timed out or refused

  • Your host blocks outbound SMTP. Some cloud and hosting providers block mail ports on new accounts. Try the other port, ask your provider to open it, or use the HTTP API on port 443 instead.
  • A firewall or corporate network blocks the port. Test from another network.
  • Wrong host. Check for typos; it is smtp.mailcandor.com, not mail. or smtp.mailcandor.io.
  • We are down. Check the SMTP relay on the status page.

What the replies mean

Reply Meaning Fix
535 5.7.8 Use the username "mailcandor" and an API key as the password. Wrong username or empty password. Username mailcandor, password the full key.
535 5.7.8 That API key is not valid. It may have been revoked. Bad or revoked key. See 401 invalid API key.
454 4.7.0 We could not check the key just now. Temporary problem on our side. Retry shortly.
452 4.5.3 Send to at most 50 recipients per message. Too many recipients. Split the message.
552 5.3.4 The message is over 40 MB. Too large. Link to large files.
550 5.7.1 ... Refused: unverified domain, sandbox, restricted key or paused sending. The text is the API’s message. See 403 errors.
554 5.6.0 ... The message failed validation. The text says what. See 422 validation errors.
451 4.7.1 ... Rate limit or Starter quota. See 429 errors.
451 4.3.0 Mailcandor could not take the message just now. Temporary. Your software should retry.

Other things to check

  • From address: must be on a domain verified on your team, exactly (mail.acme.com is not acme.com).
  • Locked keys: a key locked to one domain can only send from that domain over SMTP too.
  • Rate limit: the SMTP relay shares your team’s requests per second with the API.
  • Headers: your own X- headers are passed through.

If it does not work

  • Login works, mail never arrives. Find it under Emails and see Emails not arriving.
  • An app has no TLS option. It cannot use Mailcandor SMTP; logins are only accepted over TLS. Use the API or a newer client.
  • A device such as a printer only supports port 25. Not supported. Relay through a local mail server that can use 587.

More in the SMTP ports guide and the API reference.

Questions

Which port should I use?

465 with implicit TLS if your software offers SSL/TLS, or 587 with STARTTLS. Both work the same once connected.

Is port 25 or 2525 supported?

No. Only 465 and 587.

Can I use my email address as the username?

No. The username is always the word mailcandor. The API key goes in the password field.

Do SMTP emails show in the dashboard?

Yes. They follow the same rules, limits and log as the API.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.