Send as your cPanel email address from Gmail
Send as a cPanel hosting mailbox (you@yourbiz.com) from Gmail with SendAs Bridge: deploy your own relay with your SMTP settings, keep forwarding into Gmail, and check SPF, DKIM and DMARC.
Last updated December 1, 2026
For mailboxes created in cPanel at a web host (Namecheap, HostGator, Bluehost, SiteGround and many others). cPanel hosting offers SMTP, which a browser can’t speak, so you deploy a small relay to your own Cloudflare account and the extension sends through it. Provider details vary, so where we say “usually”, check your host’s documentation.
What you need
- A mailbox in cPanel, for example
you@yourbiz.com, and its password. This is the mailbox password, not your cPanel login. - A Gmail address that receives your mail and will hold the copies.
- The SendAs Bridge extension and a free Cloudflare account.
1. Find your SMTP settings
In cPanel open Email → Email Accounts, find the mailbox and click Connect Devices. Under Mail Client Manual Settings use the Secure SSL/TLS Settings values. These become the relay’s settings:
| Relay setting | Enter |
|---|---|
SMTP_HOST |
The outgoing server shown there, usually mail.yourbiz.com or your host’s server name |
SMTP_PORT |
465 |
SMTP_SECURITY |
tls |
SMTP_USER |
The full email address, you@yourbiz.com |
SMTP_PASS |
The mailbox password |
ALLOWED_FROM |
you@yourbiz.com |
If your host only offers 587, use 587 with starttls. Ports 465, 587, 2465 and 2525 work; port 25 doesn’t.
Certificate tip: on shared hosting,
mail.yourbiz.comoften presents a certificate issued to the server’s name. If the connection test fails with a TLS or certificate error, use the server host name shown in Connect Devices instead.
2. Deploy your relay and connect the extension
- Press Deploy to Cloudflare in the relay docs and enter the settings above, plus a long random
RELAY_SECRET. - In the extension add
you@yourbiz.com, choose Own relay, and enter the relay URL and secret. - Press Test connection. See the full setup guide.
3. Keep incoming mail working and check DNS
Forward your business address to Gmail in cPanel: Email → Forwarders → Add Forwarder, enter you@yourbiz.com as the address and your Gmail address as the destination.
SendAs Bridge checks SPF, DKIM and DMARC for you during setup. In cPanel, Email → Email Deliverability shows your domain’s SPF and DKIM status and offers to repair them:
- SPF: one TXT record at the domain starting
v=spf1that includes your host’s mail servers (cPanel normally writes this) and ends in~allor-all. Keep it to one record; if you add another sending service, merge its include into this one. - DKIM: a TXT record at
default._domainkey.yourbiz.com. cPanel uses the selectordefault, which we check automatically. - DMARC: a TXT record at
_dmarc.yourbiz.com, for examplev=DMARC1; p=none; rua=mailto:you@yourbiz.com. Move top=quarantineonce SPF and DKIM pass.
One SPF record only. A domain may have exactly one SPF TXT record. If you add a sending service, merge its
include:into the existing record rather than creating a second one, and keep the total at 10 DNS lookups or fewer (RFC 7208). Start DMARC atp=nonewith aruamailbox and tighten later. Finish by sending a test to an unaffiliated Gmail and checking Show original for SPF, DKIM and DMARC PASS.
4. File the copy in Gmail
The extension also BCCs each message to your Gmail address so a copy exists in Gmail. Create the one-time Gmail filter: From you@yourbiz.com → Skip the Inbox, Mark as read, Apply the label Sent as you@yourbiz.com. No Google permission is needed.
Want a real Sent Mail copy instead? Your relay can add it over IMAP with a Gmail app password (needs 2-Step Verification; see the relay docs).
Before replacing anything, keep your existing Gmail Send mail as entry until this works (Google keeps it running until January 2027). More context: what survives, SMTP presets and limits.
Common errors
| Message | Likely cause and fix |
|---|---|
| Unauthorized | The relay secret in the extension doesn’t match RELAY_SECRET on your Worker. |
| Server rejected the username or password | Use the full email address as SMTP_USER and the mailbox password, not the cPanel password. |
| Couldn’t connect / timed out | Wrong host or port, or your host blocks the connection. Try the server name and port 465. |
| TLS or certificate error | Use the server host name from Connect Devices (see the tip above). |
| Server refused the sender address | The mailbox login isn’t allowed to send as that address. Use the matching mailbox. |
| SPF “may not cover your SMTP server” | Add your host’s include: to your SPF record, then re-run the check. |