Provider setup

SparkPost SMTP test — SMTP_Injection username and API key

Test SparkPost SMTP at smtp.sparkpostmail.com on port 587 with STARTTLS. The username is SMTP_Injection and the password is a SparkPost API key with SMTP permission.

3 min read Credentials redacted No signup

Connection settings

Host
smtp.sparkpostmail.com
Port
587
Security
STARTTLS

SparkPost provides SMTP injection at smtp.sparkpostmail.com on port 587 with STARTTLS (or port 2525 as a fallback). The SMTP username is the fixed string SMTP_Injection and the password is a SparkPost API key that has the "Send via SMTP" permission enabled.

Recommended settings

Creating an API key with SMTP permission

  1. Log in to the SparkPost dashboard.
  2. Go to Configuration → API Keys.
  3. Click "Create API Key."
  4. Enable the "Send via SMTP" permission (this is separate from the "Transmissions: Read/Write" REST API permission).
  5. Copy the key immediately — SparkPost shows it only once.

If the key does not have "Send via SMTP" enabled, authentication will fail over SMTP even though the key works for the REST API.

Testing with SMTP Tester

  1. Host: smtp.sparkpostmail.com, port 587, security STARTTLS.
  2. Username: SMTP_Injection. Password: your API key.
  3. From: an address on a verified sending domain.
  4. To: any recipient.
  5. Click Run. A 235 2.7.0 Authenticated confirms login.

A 250 OK after DATA means SparkPost accepted the message for delivery.

Common errors

535 "Authentication failed" / "Invalid credentials"

550 "Sender domain not verified"

The From address uses a domain not configured as a sending domain in SparkPost. Go to Configuration → Sending Domains and add + verify your domain (DKIM + bounce domain DNS records).

421 "Try again later" / rate limit

SparkPost is throttling injection. Sending rate depends on your plan and account warm-up status. Retry after a brief pause or reduce injection rate.

Connection timeout on port 587

If port 587 is blocked by your network, try port 2525 — SparkPost supports it as an alternative STARTTLS endpoint.

US vs EU regions

SparkPost separates infrastructure by region:

Region SMTP host Dashboard
US smtp.sparkpostmail.com app.sparkpost.com
EU smtp.eu.sparkpostmail.com app.eu.sparkpost.com

API keys and sending domains are region-specific. An API key from the US account will not authenticate against the EU SMTP endpoint.

Sending domain verification

SparkPost requires verified sending domains before relaying mail:

Until the domain is verified and compliance-approved, sends will fail after AUTH with a domain error.

X-MSYS-API header

SparkPost supports an X-MSYS-API header in the email that controls delivery options (open/click tracking, metadata, campaign ID, IP pool). This is optional — without it, SparkPost applies account defaults.

Sending limits

Limits depend on your plan:

Security notes

Try it on your own server

Run these settings against your SMTP server and watch the live, credential-redacted protocol transcript.

Open SMTP Tester