SMTP Configuration
Connect your application to NorthRelay via SMTP
SMTP Configuration
This guide covers NorthRelay's SMTP settings in detail, including authentication, TLS configuration, and connection testing.
SMTP Settings
| Setting | Value |
|---|---|
| Host | smtp.north-pipe.ca |
| Port (STARTTLS) | 587 (recommended) |
| Port (Implicit TLS) | 465 |
| Authentication | Required (LOGIN or PLAIN) |
| Username | Your NorthRelay account email |
| Password | Your API key (nr_live_xxxxxxxxxxxx) |
| Encryption | TLS 1.2 or later |
Use port 587 with STARTTLS unless your application only supports implicit TLS (port 465).
Authentication
NorthRelay requires authentication for all SMTP connections. Your credentials are:
- Username: The email address you used to create your NorthRelay account (e.g.,
you@example.com) - Password: An active API key from Dashboard → API Keys (e.g.,
nr_live_xxxxxxxxxxxx)
NorthRelay supports both LOGIN and PLAIN SASL mechanisms. Most SMTP clients will negotiate the mechanism automatically.
Creating an API Key
- Log in to app.northrelay.ca
- Go to Dashboard → API Keys
- Click Create API Key
- Copy the key immediately — it is shown only once
- Use this key as your SMTP password
You can create multiple API keys for different applications. Revoke any key instantly from the same page.
TLS/SSL
Port 587 — STARTTLS (Recommended)
The connection starts unencrypted, then upgrades to TLS via the STARTTLS command. This is the industry standard for SMTP submission.
Client connects to smtp.north-pipe.ca:587 (plaintext)
Server: 220 smtp.north-pipe.ca ESMTP
Client: EHLO client.example.com
Server: 250-STARTTLS
Client: STARTTLS
→ TLS handshake occurs
Client: AUTH LOGIN (over encrypted channel)Port 465 — Implicit TLS
The connection is TLS-encrypted from the start. Use this if your application does not support STARTTLS, or if port 587 is blocked on your network.
Client connects to smtp.north-pipe.ca:465 (TLS immediately)
→ TLS handshake occurs
Server: 220 smtp.north-pipe.ca ESMTP
Client: EHLO client.example.com
Client: AUTH LOGIN (already encrypted)TLS Requirements
- Minimum TLS version: 1.2
- TLS 1.0 and 1.1 are not supported
- Server Name Indication (SNI) is supported
Connection Testing
Test with telnet
Verify basic connectivity (does not test TLS):
telnet smtp.north-pipe.ca 587Expected output:
Trying X.X.X.X...
Connected to smtp.north-pipe.ca.
220 smtp.north-pipe.ca ESMTPType QUIT to disconnect.
Test with openssl
Verify STARTTLS on port 587:
openssl s_client -connect smtp.north-pipe.ca:587 -starttls smtpVerify implicit TLS on port 465:
openssl s_client -connect smtp.north-pipe.ca:465Both commands should display the TLS certificate chain and a 220 SMTP banner.
Test with swaks
Send a full test email with authentication:
swaks --to test@example.com \
--from you@yourdomain.com \
--server smtp.north-pipe.ca:587 \
--auth LOGIN \
--auth-user your-email@example.com \
--auth-password nr_live_xxxxxxxxxxxx \
--tls \
--header "Subject: SMTP Test" \
--body "Testing NorthRelay SMTP"Install swaks:
- Ubuntu/Debian:
sudo apt install swaks - macOS:
brew install swaks - RHEL/CentOS:
sudo yum install swaks
Framework Configuration Examples
Generic SMTP Settings Block
Use these values in any application that accepts SMTP configuration:
SMTP Host: smtp.north-pipe.ca
SMTP Port: 587
Encryption: TLS (STARTTLS)
Authentication: Yes
Username: your-email@example.com
Password: nr_live_xxxxxxxxxxxxEnvironment Variables
A common pattern for configuring SMTP in applications:
SMTP_HOST=smtp.north-pipe.ca
SMTP_PORT=587
SMTP_USER=your-email@example.com
SMTP_PASS=nr_live_xxxxxxxxxxxx
SMTP_SECURE=false
SMTP_TLS=trueThe distinction between SMTP_SECURE and SMTP_TLS varies by library. SMTP_SECURE=false with SMTP_TLS=true typically means STARTTLS on port 587. SMTP_SECURE=true typically means implicit TLS on port 465.
Sending relay
All users connect to the same smtp.north-pipe.ca host, on every plan. Your mail then leaves from NorthRelay's single sending relay:
| Setting | Value |
|---|---|
| Sending relay | sovereign.north-pipe.ca |
| EHLO hostname | sovereign.north-pipe.ca |
| SPF include | include:_spf.north-pipe.ca |
There is nothing to configure — the path is identical for every account and does not change when you upgrade. See Sending Infrastructure.
Troubleshooting
Connection timeout
- Verify your server can reach
smtp.north-pipe.caon port 587 or 465 - Some cloud providers (AWS EC2, GCP, Azure) block outbound SMTP by default — check your provider's documentation
- Try the alternate port (465 if 587 is blocked, or vice versa)
Authentication failure (535)
- Username must be your NorthRelay account email, not a custom sending domain address
- Password must be an active API key starting with
nr_live_ - Check for trailing whitespace when copying the API key
TLS errors
- Ensure your client supports TLS 1.2 or later
- On port 587, your client must send the STARTTLS command before authenticating
- On port 465, your client must initiate TLS immediately upon connection
- Update your system's CA certificate bundle if you see certificate verification errors
"Relay access denied" (554)
- Confirm you are authenticated before sending
- Ensure the
Fromaddress uses a domain you own or a NorthRelay subdomain