This guide will help you set up email integration with Twikey so you can send emails from your own email address. We'll explain everything step-by-step, including some important email security concepts.
We strongly recommend sharing this guide with your IT department or mail domain administrator before starting the configuration. DNS changes can affect your email delivery and website functionality, so having your IT team review and implement these settings ensures everything is configured correctly and safely. They can also help troubleshoot any issues that may arise during setup.
Before we dive into the setup, let's understand two important email security technologies. These help ensure your emails actually reach your customers' inboxes instead of their spam folders.
SPF (Sender Policy Framework) is like a guest list for your email domain. It tells other email servers: "These are the servers allowed to send email on behalf of my domain."
Why it matters:
Simple analogy: Think of SPF as a bouncer at a club with a list of approved people. If someone tries to enter (send an email) claiming they're from your company, the bouncer (receiving email server) checks the list (SPF record) to verify they're actually allowed.
DKIM (DomainKeys Identified Mail) adds a digital signature to your emails, like a wax seal on an official letter. This proves the email hasn't been tampered with and really came from your organization.
Why it matters:
Simple analogy: DKIM is like sending a sealed envelope with your company's official stamp. The recipient can verify the seal is intact and confirms it came from you.
SPF is required to send emails through Twikey.
DKIM is strongly recommended because:

With this setup, Twikey handles the email sending for you.
When you use Twikey's SMTP server, emails are added to a queue and sent in order. Think of it like a line at a coffee shop - first come, first served.
Things to know:
SPF setup requires adding a record to your domain's DNS settings. This tells email servers that Twikey is allowed to send emails on your behalf.
Add this text to your existing SPF record: include:_spf.twikey.com
Example:
If your current SPF record is:
v=spf1 include:_spf.google.com ~all
Update it to:
v=spf1 include:_spf.google.com include:_spf.twikey.com ~all
Add a new TXT record to your DNS with these details:
Example: (replace example.com with your actual domain)
| Field | Value |
|---|---|
| Name/Host | example.com. |
| Type | TXT |
| Value | v=spf1 include:_spf.twikey.com ~all |
If you're experiencing DNS lookup limits, you can use one of these alternative configurations:
Option A: Use the 'a' mechanism
This points directly to Twikey's mail server and automatically adjusts if our IP changes.
| Field | Value |
|---|---|
| Name/Host | example.com. |
| Type | TXT |
| Value | v=spf1 a:mail.twikey.com ~all |
Option B: Use the direct IP address
This authorizes Twikey's specific IP address. Note: This IP is currently static but may occasionally change.
| Field | Value |
|---|---|
| Name/Host | example.com. |
| Type | TXT |
| Value | v=spf1 ip4:52.29.184.146 ~all |
DKIM requires adding two DNS records - one for the live environment and one for testing.
Why two records?
app selector: Used for your live/production environmenttest selector: Used for Twikey's beta/testing environmentAdd these two CNAME records to your DNS (replace example.com with your domain):
| Name/Host | Type | Value |
|---|---|---|
| app._domainkey.example.com. | CNAME | app._domainkey.twikey.com. |
| test._domainkey.example.com. | CNAME | test._domainkey.twikey.com. |
Now that your DNS is set up, configure the integration in Twikey:


Test failed?
Common issues:
If problems persist, contact your IT support or Twikey support.
Choose this option if you want to use your own email provider (like SendGrid, Combell, etc.) or have specific requirements that Twikey's SMTP server doesn't meet.
Why use a custom SMTP server?
Note: Even with a custom SMTP server, we strongly recommend configuring DKIM for better deliverability.

Follow the same DKIM setup steps as described above.
Use the same format as described in above.
You'll need to get these details from your email provider.
Here's what each field means:
| Field | Required? | What It Is | Example |
|---|---|---|---|
| Host | Yes | The server address of your SMTP provider | smtp.yourprovider.com |
| Port | No | The connection port (usually 25, 587, or 465) | 587 |
| SSL Enabled | No | Encrypts the connection for security | Checked (recommended) |
| Username | No | Your SMTP account username | user@yourcompany.com |
| Password | No | Your SMTP account password | your_secure_password |
Default values if left empty :
25 (or 587 if SSL is enabled)Not Supported :
For these providers, we recommend using a dedicated email service like SendGrid instead.
Follow the same testing and saving steps as described above.
If you're setting up a custom SMTP server, here are pre-configured settings for popular providers:
Host: smtp-auth.mailprotect.be
Port: 587
SSL: Enabled
Host: smtp.sendgrid.net
Port: 587
SSL: Enabled
Most business email providers offer SMTP access. Check their documentation for connection details, or contact Twikey support for help.
After configuration, it's a good idea to verify everything is working correctly.
example.com)_spf.twikey.com appears in the results (or your specific IP if using advanced setup)What success looks like: You should see a green checkmark and your SPF record listed.
app as the selector and your domaintest as the selector and your domainWhat success looks like: Both selectors should return valid DKIM signatures without errors.
Cause: DNS records aren't set up correctly or haven't propagated yet.
Solutions:
Cause: DKIM CNAME records aren't configured properly.
Solutions:
app and test selectors are addedCause: Various possible issues with configuration or email delivery.
Solutions:
Cause: Your SPF record has too many includes (limit is 10).
Solutions:
a:mail.twikey.com mechanismip4:52.29.184.146Cause: Missing DKIM, poor email reputation, or content triggers.
Solutions:
✅ Do:
❌ Don't:
SPF Record:
Name: example.com.
Type: TXT
Value: v=spf1 include:_spf.twikey.com ~all
DKIM Records:
Name: app._domainkey.example.com.
Type: CNAME
Value: app._domainkey.twikey.com.
Name: test._domainkey.example.com.
Type: CNAME
Value: test._domainkey.twikey.com.
CNAME: Canonical Name record - a type of DNS record that creates an alias
DNS: Domain Name System - like a phone book for the internet
DKIM: DomainKeys Identified Mail - email authentication using digital signatures
FQDN: Fully Qualified Domain Name - complete domain name (e.g., mail.example.com)
Propagation: The time it takes for DNS changes to spread across the internet
SMTP: Simple Mail Transfer Protocol - the protocol used to send emails
SPF: Sender Policy Framework - email authentication that specifies who can send email for your domain
SSL/TLS: Secure Sockets Layer/Transport Layer Security - encryption protocols for secure connections
TXT Record: Text record - a type of DNS record used for various purposes, including SPF