After the whitelabel account is set up and all DNS records are in place, we have a fully working setup which allows us to send your system emails like password reset emails or login details to your users using ElasticEmail. This is done by us, on our charge.
In Company Profile setup we have support@yourdomain.com this is the sender email, and you might also use this email address as Help & Support link in "mailto:support@yourdomain.com" format in your branding settings.
This email address has to be created and managed somewhere.
The easiest way to set this up is using cPanel. This can be any server you own with any domain added to it which uses cPanel in this example it is cpaneldomain.com and your whitelabel domain is yourdomain.com. In this tutorial we are using CloudFlare for the whitelabel domain setup which is already done and working.
Step 1: Add yourdomain.com
to cPanel
Log in to the cPanel account associated with
cpaneldomain.com
.Go to Domains > Addon Domains (or just Domains in newer cPanel versions).
Add
yourdomain.com
as an addon domainGo to Email Routing > select
yourdomain.com
> set to Local Mail Exchanger.Go to Email > Email Accounts.
Create the email address:
support@yourdomain.com
, and set a secure password.
Step 2: Update Cloudflare DNS Records for yourdomain.com
Login to Cloudflare, open the DNS settings for yourdomain.com
, and update/add the following records.
2.1 MX Record
Type | Name | Value | Priority |
---|---|---|---|
MX | @ | mail.cpaneldomain.com | 10 |
Replace mail.cpaneldomain.com
with the actual mail server hostname used by your cPanel setup.
2.2 A Record for Mail
Type | Name | Value (IP Address) | Proxy |
---|---|---|---|
A | IP address of cPanel server | DNS only (gray cloud) |
Do not proxy this record. It must remain as DNS only.
Step 3: Configure SPF (TXT)
You already have this SPF record in Cloudflare:
v=spf1 a mx include:_spf.elasticemail.com ~all
To also authorize your cPanel server to send mail for yourdomain.com
, update the existing record to:
v=spf1 a mx ip4:YOUR_CPANEL_SERVER_IP include:_spf.elasticemail.com ~all
Replace YOUR_CPANEL_SERVER_IP
with the actual IP of your cPanel server.
Do not create a second SPF record but edit the existing one. Only one SPF record is allowed per domain.
Step 4: DKIM Records
You already have a DKIM record for Elastic Email:
Name:
api._domainkey
Value: Elastic Email's public key
Now add your cPanel DKIM:
Log in to cPanel and go to Email > Email Deliverability.
Locate
yourdomain.com
and click Manage.If DKIM is not installed, click Install the Suggested Record.
Copy the DKIM record it shows (it will be named
default._domainkey
).In Cloudflare, add a new TXT record:
Type | Name | Value |
---|---|---|
TXT | default._domainkey | (paste from cPanel) |
You can safely have both default._domainkey
(for cPanel) and api._domainkey
(for Elastic Email) at the same time.
Step 5: Test the Email
Go to your cPanel server’s Webmail interface:
https://yourserver.com/webmail
or similar.Log in with:
Email:
support@yourdomain.com
Password: the one you set earlier
Send a test email to:
A Gmail account
Review SPF, DKIM, and DMARC results.
Summary of Required Cloudflare DNS Records
Type | Name | Value |
---|---|---|
MX | @ | mail.cpaneldomain.com |
A | IP address of your cPanel server | |
TXT | @ |
|
TXT | api._domainkey | Elastic Email DKIM (already exists) |
TXT | default._domainkey | DKIM from cPanel |