A domain
Your online name, for example your-company.example.
Beginner-friendly guide
You do not need to be a technician. Get a domain, add the mail records at your domain provider, test them, then connect your new mailbox to Gmail, Outlook or your phone.
Start here
You need a domain such as your-company.example, access to the account at the company that manages its DNS, and an email hosting account where that exact domain is assigned. If you already own a domain, you do not need to buy it again.
Your online name, for example your-company.example.
An address on that domain, for example hello@your-company.example.
The control panel at your registrar or active nameserver provider.
Follow in order
Register a domain with a domain provider, then request business email and give the domain name to your email provider. Wait until the provider assigns the domain and prepares its mailboxes.
If you already bought your domain, ask your email provider to assign it to your account. You will only see its real records once that assignment is complete.
At Namecheap, open Domain List, choose Manage next to the domain, then open Advanced DNS. If another company manages your nameservers, make DNS changes at that company instead.
Set the MX row under Mail Settings using Custom MX. Add the A and TXT rows under Host Records. Copy the exact values from your account dashboard and avoid creating duplicate SPF records.
| Type | Host | Example value — do not copy literally | Priority |
|---|---|---|---|
| A | mail | YOUR_MAIL_SERVER_IP | — |
| MX | @ | mail.your-domain.example | 10 |
| TXT (SPF) | @ | v=spf1 ip4:YOUR_MAIL_SERVER_IP ~all | — |
| TXT (DKIM) | mail._domainkey | v=DKIM1; k=rsa; p=YOUR_DOMAIN_PUBLIC_KEY | — |
| TXT (DMARC) | _dmarc | v=DMARC1; p=none; rua=mailto:postmaster@your-domain.example | — |
Sign in to your email account, open DNS settings for the assigned domain and choose Test my DNS. Fix any rows marked Not found yet, then test again after DNS updates have had time to spread.
Sign in, open Dashboard → DNS settings, choose the domain, and press Test my DNS. A green result means the DNS records can be found. If a row is still missing, compare it character by character and try again later.
Use a mailbox address created for your domain, such as name@your-domain.example. The provider dashboard shows the mailbox username and setup instructions.
In your account, open Mailboxes. Use an address that belongs to the assigned domain and make sure you know its mailbox password. Your dashboard may show different mailbox access depending on your account.
Use the incoming IMAP server mail.your-domain.example on port 993 with SSL/TLS, and outgoing SMTP on port 587 with STARTTLS and authentication using the full email address. Send a test to an external address and reply back.
Server: mail.your-domain.example
Port: 993
Security: SSL/TLS
Server: mail.your-domain.example
Port: 587
Security: STARTTLS
Sign-in: full email address and mailbox password
For a mailbox hosted on your own domain, use the mail server shown in your account—not smtp.gmail.com. Send one message to a different email account, then reply back to check both sending and receiving.
Check that you edited the active DNS provider, selected the right domain, and copied the full value without extra spaces. DNS updates may take time. Return to your dashboard and test again. If the DKIM record is missing from your account, contact support instead of guessing a value.
Check the outgoing SMTP host, port 587, STARTTLS, authentication, full email username and mailbox password. Ensure the email app is not trying to send through another provider's SMTP server.
Do not add a second SPF TXT record. Contact support to combine authorized senders into the existing SPF policy. A domain should publish one SPF policy.
Sign in and open DNS settings. The page only shows domains assigned to your account. If you cannot see the domain, ask your account administrator to assign it.