How to Configure Google Workspace SMTP Relay Service

Photo: Unsplash — free to use, no attribution required

How Google Workspace Email Works

Google Workspace (formerly G Suite) provides business email through Gmail's infrastructure — the same platform that handles billions of personal Gmail messages daily. This means your business email benefits from Google's spam filtering, security features, and delivery reputation out of the box.

Setting up Google Workspace email involves three main areas: domain verification and DNS configuration (MX records to route mail, SPF and DKIM for authentication), user account creation and management through the Admin Console, and optional SMTP relay configuration for applications that need to send email programmatically.

For Indian businesses, Google Workspace offers a cost-effective professional email solution with data centers in Mumbai, providing low latency and compliance with local data residency preferences. Understanding the setup process thoroughly prevents common issues that can disrupt email delivery during migration.

Setting Up Your Domain

Before setting up Google Workspace, you need: a domain name you own (purchased from any registrar), access to your domain's DNS management panel, a valid payment method for the Google Workspace subscription, and a list of users who need email accounts.

Choose the right Google Workspace plan for your business. Business Starter provides 30GB storage per user with basic features. Business Standard offers 2TB storage with additional collaboration tools. Business Plus adds advanced security and compliance features. For most Indian small businesses, Business Starter at the entry-level price point provides excellent value.

If migrating from an existing email provider, export important emails before changing MX records. Google provides migration tools in the Admin Console that can pull email from IMAP-compatible servers, but having a backup ensures nothing is lost during the transition. Plan the migration for a weekend or off-hours to minimize disruption.

Step-by-Step Setup Process

Sign into the Google Workspace Admin Console at admin.google.com. Navigate to Account → Domains → Manage Domains and begin the domain verification process. Add a TXT record with the provided verification string to your domain's DNS. Once Google confirms the record, your domain is verified.

Update your domain's MX records to route email to Google. Remove any existing MX records and add the following Google MX records: ASPMX.L.GOOGLE.COM (priority 1), ALT1.ASPMX.L.GOOGLE.COM (priority 5), ALT2.ASPMX.L.GOOGLE.COM (priority 5), ALT3.ASPMX.L.GOOGLE.COM (priority 10), ALT4.ASPMX.L.GOOGLE.COM (priority 10). These records ensure redundancy — if one server is unavailable, email is routed to alternates.

Configure SPF by adding this TXT record to your DNS: v=spf1 include:_spf.google.com ~all. This authorizes Google's mail servers to send email on behalf of your domain. For DKIM, go to Admin Console → Apps → Google Workspace → Gmail → Authenticate email, generate a DKIM key, and add the provided TXT record to your DNS.

For SMTP relay setup (used by applications, printers, and WordPress): go to Admin Console → Apps → Google Workspace → Gmail → Routing → SMTP relay service. Configure the allowed senders (by IP address or authenticated users), the permitted recipients, and the encryption requirements. The SMTP relay address is smtp-relay.gmail.com on port 587 with TLS.

Validating Email Delivery

Testing should cover multiple scenarios: send test emails to Gmail, Outlook, and Yahoo addresses to verify deliverability across major providers. Each provider has slightly different filtering criteria, so testing across all three catches issues that testing with just one might miss.

Check the email header information for proper authentication results. Every test email should show SPF: pass, DKIM: pass, and DMARC: pass in the headers. If any authentication check fails, the most likely cause is an incorrect or missing DNS record — go back and verify each record is entered exactly as specified by your provider.

For WordPress sites, test the specific email types your site sends: contact form submissions, WooCommerce order confirmations, password reset emails, and new user registration emails. Some plugins override WordPress email formatting, so verify that each email type looks correct and contains the expected content.

Administration Best Practices

Common Google Workspace email issues include: "Less secure app access" being disabled (use App Passwords or OAuth 2.0 instead), SMTP relay not configured in the Admin Console (required for unauthenticated application sending), and incorrect MX records causing incoming mail to route to the wrong server.

If emails are being marked as spam despite correct SPF and DKIM, check your DMARC policy. A DMARC record of v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com starts in monitoring mode, collecting reports without rejecting mail. Once you confirm legitimate sources are passing, tighten the policy to p=quarantine or p=reject.

Use Google Workspace's Email Log Search (Admin Console → Reporting → Email Log Search) to trace specific messages and identify where delivery failures occur. This tool shows the full lifecycle of each message, including sender, recipient, status, and any error messages from receiving servers.

Frequently Asked Questions

What are the SMTP settings for Google Workspace?

For authenticated sending: Server: smtp.gmail.com, Port: 587, Encryption: STARTTLS, Username: your full Google Workspace email address. For SMTP relay (applications and devices): Server: smtp-relay.gmail.com, Port: 587, Encryption: TLS. The relay service must be configured in the Admin Console under Apps → Google Workspace → Gmail → Routing before it will accept connections.

Why are my Google Workspace emails going to spam?

Check three things: your SPF record includes _spf.google.com, DKIM is enabled and the DNS record is correctly published, and your DMARC record is properly configured. Use Google's CheckMX tool or MXToolbox to verify all three. If authentication passes but emails still reach spam, review your email content for spam trigger patterns and check your domain reputation in Google Postmaster Tools.

How much does Google Workspace email cost in India?

Google Workspace Business Starter begins at an entry-level monthly price per user (billed annually) and includes custom domain email, 30GB storage per user, Google Meet, and basic administrative controls. Business Standard and Business Plus tiers add more storage and advanced features. Google frequently offers promotional pricing for new Indian business customers.

Can I use Google Workspace SMTP with WordPress?

Yes. You can configure WordPress to send through Google Workspace using either the Gmail SMTP server (smtp.gmail.com on port 587 with your Workspace credentials) or the Google Workspace API method available in plugins like WP Mail SMTP. The API method is more reliable as it uses OAuth 2.0 authentication and avoids potential port blocking on shared hosting.