Biggest deals of the year. 30-day money-back guarantee. Limited time deals. 24/7 support. Don't miss out

How to use Gmail with a custom domain

Last updated 8 min Read
How to use Gmail with a custom domain

To use Gmail with a custom domain, subscribe to Google Workspace, which makes Gmail the host of your @domain.tld inbox on desktop and mobile. Through Hostinger, you buy a plan, add the DNS (Domain Name System) records with one click in Hostinger dashboard, and verify your domain in the Google Admin console.

If you already have Hostinger Business Email, you can instead add that mailbox to the Gmail mobile app with IMAP, while Hostinger keeps hosting your email. There’s no lasting free alternative: Gmail on the web no longer checks third-party mailboxes, and Google ends the “Send mail as” feature for third-party addresses in January 2027.

Start by comparing the two setups, then follow the Google Workspace steps from purchase to a working inbox, or the shorter IMAP steps for the Gmail app.

What you need to use Gmail with a custom domain

To use Gmail with a custom domain, you need a domain name and a Google Workspace subscription.

A custom email domain is the part of your email address after the @ sign, like domain.tld. By owning one, you can have an email address like hello@domain.tld instead of yourcompany@gmail.com, which may sound unprofessional.

Register a domain with Hostinger before starting if you don’t have one yet. Your domain needs to be active before you can configure Gmail for it.

Pro tip

Choose something short and easy to spell. Buying a domain name that matches your business name makes your email address easier for customers to remember.

Google Workspace is Google’s paid business productivity suite. It makes Gmail the actual host of your @domain.tld inbox, rather than a client that checks email stored elsewhere. The same account includes Google Drive, Calendar, and Meet.

Buying Google Workspace from Hostinger is the simplest route if your domain already uses Hostinger’s nameservers, because the DNS records Gmail needs are a one-click addition in Hostinger dashboard. Add the records manually at your DNS provider if another provider, such as Cloudflare, manages your DNS.

How to set up Gmail with a custom domain using Google Workspace

Set up Gmail with a custom domain by purchasing Google Workspace through Hostinger, adding the DNS records in Hostinger dashboard, and verifying your domain in the Google Admin console.

1. Purchase Google Workspace through Hostinger

Purchase Google Workspace through Hostinger by choosing a plan and completing checkout. Plans are available on the Hostinger Google Workspace page and, for existing customers, in Hostinger dashboard under Emails → Get email plan.

Important

Have your domain ready before you reach the setup wizard. Check domain availability and register it first if you still need it, then return to finish the setup.

  1. Select a plan that fits your needs and click Choose plan.
  2. In your cart, confirm the billing period and number of mailboxes, then click Continue.
  3. Enter your billing details, choose a payment method, and click Submit payment.
  4. On the confirmation page, click Get started to open the setup wizard in Hostinger dashboard.
  5. Enter your domain name and click Next step, then fill in your contact details and set up your admin account.

2. Add the Google Workspace DNS records

Add the Google Workspace DNS records with Hostinger’s Quick setup tool if your domain uses Hostinger nameservers. These records route incoming email to Gmail and authorize Google to send email from your domain.

  1. Open your domain’s DNS Zone Editor in Hostinger dashboard. With a hosting plan, go to Websites → Manage site → Advanced → DNS Zone Editor. For a domain-only account, go to Domains → select your domain → DNS / Nameservers.
  2. Under Quick setup, click Google Workspace (Gmail), then Add records.

Quick setup adds the records Google Workspace needs, including these MX (mail exchange) and SPF (Sender Policy Framework) records:

Record typeNameValuePriorityPurpose
MX@smtp.google.com1Routes incoming email to Gmail
TXT (SPF)@v=spf1 include:_spf.google.com ~allNot applicableAuthorizes Google to send email from your domain

Remove any existing MX and SPF records for another email service before or right after adding these, because conflicting records can send part of your incoming mail to the old provider. If your domain already receives email elsewhere, create your Google Workspace users first, since messages to addresses that don’t exist in Workspace yet may bounce once the MX record points to Google.

Add the MX and SPF records manually at your DNS provider if another provider, such as Cloudflare, manages your DNS. For stronger email authentication, also set up DKIM (DomainKeys Identified Mail) with the key Google generates in the Admin console, and add a DMARC record.

3. Sign in to the Google Admin console

Sign in to admin.google.com with the admin account you created during the Google Workspace setup wizard. This account is your super admin, with full control over your Workspace organization, including users, billing, and domain settings.

Important

Keep your super admin credentials somewhere secure and add a recovery email or phone number in your account settings. Without recovery information, you’ll need to verify domain ownership through DNS to regain access, which takes up to 48 hours.

After accepting the Terms of Service, you’ll land on the Admin console dashboard. An onboarding panel shows Verify you own this domain as the required first step.

4. Verify your domain

Verify your domain by clicking Verify on the Admin console onboarding card. This opens the domain setup wizard at workspace.google.com.

Click Get started on the overview page. On the verification page, the Domain host field usually auto-detects Hostinger; if it doesn’t, select Hostinger from the dropdown. Two options appear:

  • Start guided verification. Gemini in Workspace walks you through the process using screen sharing. You’ll need your Hostinger dashboard login credentials.
  • Switch to manual verification. Google shows the TXT record value to add to your DNS settings, along with a CNAME (canonical name record) as an alternative.

Click Switch to manual verification. Google shows a TXT record value beginning with google-site-verification=, followed by a code unique to your account. Copy it.

In Hostinger dashboard, open your domain’s DNS Zone Editor and add a new record: type TXT, name @, and paste the copied value into the content field. Back on Google’s page, tick the confirmation checkbox and click Confirm.

Google then shows a “Getting your domain ready” loading screen while it checks your DNS settings. Keep the page open for a few minutes while it runs.

Wait a few minutes for the DNS change to spread and try again if verification fails. Compare the TXT value in Hostinger dashboard against Google’s page character by character if it still fails, because a single missing character breaks the match.

5. Confirm Gmail is active

Gmail is active when your @domain.tld inbox opens at mail.google.com. In the Admin console, the onboarding panel confirms this by showing Get employees accounts for Gmail & other Workspace apps as the next item.

The MX record added through Quick setup routes incoming email to Gmail, so no separate activation step is needed in most cases. Wait for DNS propagation to complete, then refresh the Admin console if the panel hasn’t advanced after a few minutes.

Test your setup by sending an email from your new @domain.tld address to a personal account, then reply from that account to test incoming delivery. Some incoming messages can take up to 24 hours to arrive while DNS changes propagate. Check your previous provider’s inbox during this time too if your domain had email elsewhere before.

What to do after Gmail is activated

After Gmail is activated, add more addresses as either new users or aliases, then review your security settings.

Add a user

A user is a separate person with their own login, password, and inbox. Each user requires a paid mailbox. Purchase another one from your Google Workspace subscription in Hostinger dashboard before setting up a second user, such as person2@domain.tld, if you bought only one at checkout.

Once you add the mailbox, create the account in the Admin console under Directory → Users → Add new user. Without a spare mailbox, the console shows “No license available for new user.”

Pro tip

Decide on one address format before adding users, such as firstname@ or firstname.lastname@, since changing it later means renaming every account. Skip nicknames, numbers, and underscores. Making a professional email address that reads cleanly aloud is easier for customers to spell correctly and looks more credible on a business card.

Add an alias

An alias is an extra address that delivers to an existing inbox, with no separate login. Setting up person2@domain.tld as an alias sends mail to the inbox you already have, such as your admin account. Each user gets up to 30 aliases at no extra cost.

Aliases suit role addresses like info@ or support@ that one person handles. To create an alias, go to the Admin console, head to Directory → Users, open the receiving user, and click Add alternate emails.

Sending from the alias is optional. To reply as support@ rather than your primary address, add it in Gmail under Settings → Accounts → Send mail as.

Review security settings

Go to Apps → Google Workspace → Gmail → Safety in the Admin console. Spam filtering and phishing warnings are on by default, and the section has configurable settings for attachment and link scanning that are worth reviewing before adding more users.

How to access Hostinger Business Email in the Gmail mobile app

Access Hostinger Business Email in the Gmail mobile app by adding your mailbox as an IMAP (Internet Message Access Protocol) account. The mailbox stays on Hostinger Business Email servers, and Gmail syncs it to your phone for reading and sending. This works in the Gmail mobile app only, because Gmail on the web no longer fetches email from other providers.

Important

For a mailbox hosted by Google itself, available on desktop as well as mobile, use Google Workspace instead.

Before starting, set up a business email account in Hostinger dashboard if you haven’t already, and make sure your domain uses the Hostinger Email MX records. Incoming email for a domain routes to one provider at a time, so this method doesn’t work alongside Google Workspace on the same domain. You’ll need your full email address and password ready.

1. Find your IMAP settings in Hostinger dashboard

Find your IMAP settings by logging in to Hostinger dashboard and clicking Emails in the sidebar.

  1. Click Mailboxes next to your Business Email plan to open the plan management page.
  2. Click Connect apps & devices in the left sidebar.
  3. The Gmail tab is selected by default. Expand Advanced settings to see the server details.

Your IMAP (incoming) and SMTP (Simple Mail Transfer Protocol, for outgoing mail) connection details are:

ProtocolHostnamePortSecurity
Incoming (IMAP)imap.hostinger.com993SSL/TLS
Outgoing (SMTP)smtp.hostinger.com465SSL/TLS

Both connections use the TLS (Transport Layer Security) security setting, which encrypts data between your device and the mail server.

2. Add your Hostinger email in the Gmail app

Add your Hostinger mailbox by opening the Gmail app and using the account switcher.

  1. Tap your profile photo in the top right corner. Alternatively, open the sidebar menu and go to Settings → Add account.
  2. Tap Add another account → Other.
  3. Enter your full email address (for example, name@domain.tld) and tap Next.
  4. Select Personal (IMAP) when asked where your account stores email.
  5. Enter your email password. For the incoming server, enter imap.hostinger.com, port 993, security type SSL/TLS.
  6. For the outgoing server, enter smtp.hostinger.com, port 465, security type SSL/TLS.
  7. Tap Next. The app will start syncing your inbox.

Which Gmail setup should you use?

Use Google Workspace if you want Gmail to host your @domain.tld inbox. It’s the only option that gives you a full Gmail inbox on every device, and buying a Google Workspace plan through Hostinger keeps DNS setup to a single click when your domain uses Hostinger nameservers.

Use Hostinger Business Email in the Gmail mobile app if you already have a Hostinger mailbox and only need to read and send email from your phone. In this setup, Hostinger stores your email, and Gmail acts as the email client.

SetupWhere email is storedGmail on desktopGmail mobile appCostDNS setup
Google Workspace through HostingerGoogleYes, at mail.google.comYesPaid subscription per userOne-click Quick setup with Hostinger nameservers, plus TXT verification
Hostinger Business Email in the Gmail appHostingerNoYes, via IMAPPaid plan, or the free trial included with Hostinger web, cloud, and agency hosting plansHostinger Email MX records
Forwarding to free Gmail with “Send mail as”Your email provider, with copies forwarded to GmailEnds in January 2027Ends in January 2027FreeForwarder plus SMTP details

Choose Google Workspace for a business inbox you’ll use on a computer, share with a team, or keep long term. Choose the Gmail app with IMAP for a single Hostinger mailbox you mainly check on your phone. Avoid setting up forwarding with “Send mail as” now, because Google may already block new configurations before the feature ends for third-party addresses.

Can you use Gmail with a custom domain for free?

No permanently free option lets Gmail host or send from your custom domain. Google Workspace is a paid subscription. Free forwarding setups depend on Gmail’s “Send mail as” feature, and Google ends that feature for third-party addresses in January 2027.

The closest free option at Hostinger is the Hostinger Business Email free trial, which is included with web, cloud, and agency hosting plans. The trial lasts 1 month, 3 months, or 1 year, depending on your hosting plan’s billing period, and you can add the trial mailbox to the Gmail mobile app with IMAP. When it ends, the trial renews as a paid Business Starter plan if you have a saved payment method. See how the Business Email free trial works for mailbox limits and renewal options.

All of the tutorial content on this website is subject to Hostinger's rigorous editorial standards and values.

Bruno is a Content Writer at Hostinger, focused on creating and optimizing helpful, engaging articles about web development and marketing. With a background in journalism, he combines storytelling with practical insights to make complex topics easier to understand. He has also contributed to publications like MacMagazine and Jornal A Tarde. Outside of work, Bruno enjoys exploring art, cooking, and technology.

Trusted by 4+ million website owners worldwide

See our 74,486 reviews on Trustpilot

Not sure which plan to choose?

Our smart AI agent, is here to help you find the best package for your project.

See Pricing