Deliverability

Failed to authenticate on SMTP server with Mailjet: fix

This error means thirty bees could not log in to Mailjet's SMTP server. Use your Mailjet API key as the username and the secret key as the password, not your account email and password. Set the server to in-v3.mailjet.com and pair port 587 with TLS or port 465 with SSL.

Sohail HussainSohail Hussain8 min read

Short answer

  • Mailjet SMTP does not accept your account email and password. Put the API Key in the SMTP user field and the Secret Key in the SMTP password field.
  • Set the server to in-v3.mailjet.com, then pair port 587 with TLS or port 465 with SSL, and send a test email.
  • If it still fails, check for stray spaces, a regenerated secret, a blocked outbound port and the status of your Mailjet account.

You set up Mailjet as your SMTP server in thirty bees, pressed the test button, and got this:

Error: Please check your configuration Failed to authenticate on SMTP server

It means thirty bees reached a mail server, tried to log in, and the login did not complete. thirty bees users have reported this message with Mailjet for years, and the causes below still apply. This is a Mailjet and thirty bees problem, not something Mailneo's product is involved in. Settings can change, so confirm every value against your Mailjet account as of November 2026.

Why it happens

The message comes from thirty bees' test function, not from Mailjet. The PHP mailer opened a connection, started the SMTP conversation and sent an AUTH command, and the login did not succeed. thirty bees shows this generic text, so you usually can't see the server's exact reply.

If the server answered at all, the network path probably works. A blocked connection more often ends in a timeout or a "could not connect" message. Causes, most common first:

  1. Wrong credentials. The account email and password were entered instead of the API Key and Secret Key.
  2. Copy and paste damage. Leading or trailing spaces, the two values swapped, or the secret pasted into both fields.
  3. Encryption and port mismatch. For example, SSL selected with port 587.
  4. A regenerated or inactive key. An old secret stops working once it is replaced.
  5. Outbound SMTP blocked by your host. Less typical for this exact message, but easy to rule out.
  6. Account state. The Mailjet account is suspended or not yet activated. I can't confirm how Mailjet reports this over SMTP, so check it in your dashboard.

Step-by-step fixes

Fix 1: Use the API Key and Secret Key

Mailjet SMTP uses your API Key as the username and your Secret Key as the password. Your website login is a different credential.

  1. In your Mailjet account, open the API key management page (search the dashboard for "API key" or "SMTP").
  2. Copy the API Key. Copy the Secret Key separately.
  3. In thirty bees, open Advanced Parameters > E-mail.
  4. Choose the option to set your own SMTP parameters.
  5. Paste the API Key into SMTP user and the Secret Key into SMTP password.
  6. Save, then use the test email box on the same page.

Retype the values by hand if you suspect hidden whitespace. Triple-click selection in some browsers and password managers picks up a trailing space.

Fix 2: Set the server, port and encryption together

Mailjet's SMTP host is in-v3.mailjet.com. Check the SMTP settings page in your Mailjet account for the current host and port list, then use one of these pairings in thirty bees:

FieldValue
SMTP serverin-v3.mailjet.com
SMTP userMailjet API Key
SMTP passwordMailjet Secret Key
Port 587Encryption TLS (STARTTLS)
Port 465Encryption SSL (implicit TLS)

Mixing the pairs breaks the handshake before login completes. Port 465 with TLS, or 587 with SSL, tends to hang or fail. I'd skip port 25, since many hosts block it. Choosing no encryption can also get the login refused.

Change one thing at a time

Change either the port or the encryption, save, and test. Changing three fields at once makes it impossible to tell which one fixed it.

Fix 3: Rule out a regenerated key

If this setup worked before and stopped, someone may have regenerated the secret in Mailjet. Copy the current pair from Mailjet, paste it into thirty bees, and test. Also make sure the API Key and Secret Key come from the same Mailjet account; a key from one account paired with a secret from another will fail.

Fix 4: Test the connection from your server

If the credentials and port are right, test from the machine that runs thirty bees:

openssl s_client -starttls smtp -connect in-v3.mailjet.com:587

A working connection prints the server certificate and a 250 response. If the command hangs or is refused, your host is probably blocking outbound SMTP. Ask them to open port 587 or 465, or try the other port. Many shared hosts and cloud providers restrict outbound mail ports by default.

Also confirm the PHP OpenSSL extension is enabled. Without it, TLS and SSL cannot work.

Fix 5: Check the Mailjet side

  1. Confirm the Mailjet account is active, not suspended and not waiting for activation.
  2. Confirm the API key pair is active and was not regenerated.
  3. Validate your sender address or domain in Mailjet. This should not cause the authentication error itself, but an unvalidated sender can block sending once login works, usually with a different message.

Which cause you have

SymptomLikely causeFix
Fails immediatelyAccount login used, or wrong key or secretFix 1
Hangs, then failsPort blocked, or encryption does not match the portFix 2 or 4
Works on 587, fails on 465 (or the reverse)Encryption setting does not match the portFix 2
Worked before, stopped suddenlySecret regenerated or account suspendedFix 3 or 5
Login works, mail is rejectedSender or domain not validatedFix 5

Checklist before you try again

  • SMTP server is exactly in-v3.mailjet.com.
  • SMTP user is the API Key, with no spaces before or after.
  • SMTP password is the Secret Key, not the API Key and not your account password.
  • Port 587 is paired with TLS, or port 465 with SSL.
  • The key pair is the current one from the same Mailjet account.
  • Your host allows outbound connections on the port you chose.
  • You saved the settings before pressing the test button.

Prevent it from coming back

  • Store the API Key and Secret Key together in a password manager, labeled with the account name.
  • When you regenerate a secret in Mailjet, update thirty bees immediately and send a test email.
  • Once mail flows, publish SPF and DKIM for your sending domain so delivered mail is not filtered.

If nothing works

Contact Mailjet support if the openssl test connects and the login is still refused. Contact your host if the openssl test hangs. For thirty bees behavior, ask on the thirty bees forum and include your thirty bees and PHP versions.

Include:

  • The exact error text and the time you saw it, with your timezone.
  • The API Key (never the Secret Key), the server, the port and the encryption you used.
  • The output of the openssl s_client test.
  • What you already tried from this article.
Subject: SMTP authentication fails with API key (in-v3.mailjet.com)

Hello,

I cannot authenticate to Mailjet SMTP from thirty bees.
Error shown: "Error: Please check your configuration Failed to authenticate on SMTP server"
Time of last attempt: {date, time, timezone}
Server: in-v3.mailjet.com
Port and encryption: {587 / TLS or 465 / SSL}
API Key (username): {your API key}

I retyped both values, confirmed the key pair is current, and ran
openssl s_client against the server (output attached).
Could you check whether the key is active and whether the login is
being rejected on your side?

Thank you

Common questions

Can I use my Mailjet email and password for SMTP?

No. The SMTP login is the API Key and Secret Key pair. Your account login is for the Mailjet website.

Is the error caused by Mailjet being down?

Unlikely. An outage more often shows as a timeout or connection failure than a refused login. If the openssl test also fails, check Mailjet's own status information.

Why does the test email work but customer emails do not arrive?

Login and delivery are separate steps. If authentication passes, look at sender or domain validation in Mailjet, and at SPF and DKIM for your domain.

Should I use port 25 or 2525?

Start with 587 and TLS. Port 25 is often blocked by hosts, and the 587 or 465 pairings above are the ones to try first.

deliverabilitymailjeterror-codes
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Deliverability

Mailjet SMTP "Failed to authenticate on SMTP server" fix

This Swift Mailer error means your shop reached Mailjet's server but the login was rejected. Use the API key as the SMTP username and the secret key as the password, match the port to the encryption setting (587 with TLS, 465 with SSL), and rule out a host firewall.

Sohail Hussain|9 min read
Deliverability

Mailjet "Spam Preblocked": why a new domain gets blocked

"Spam Preblocked" means Mailjet stopped the message on its own side, before the recipient's server saw it. On a new domain the likely causes are missing authentication, a root-domain sender, a sudden volume jump, or a shared IP. Fix those, ramp slowly, then send support the message IDs.

Sohail Hussain|9 min read
Deliverability

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.

Sohail Hussain|10 min read
Deliverability

SocketLabs "421 4.5.1 Too many errors" blacklist: how to fix it

`421 4.5.1 Too many errors, you have been temporarily blacklisted` means a SocketLabs server saw repeated auth or bad-address errors from your IP and paused it. Stop whatever is retrying, fix credentials and invalid recipients, clear the queue, and wait. The block usually lifts within minutes, but returns if retries resume.

Sohail Hussain|9 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free