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, notmail.orsmtp.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.comis notacme.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.