Smtp

Google Workspace SMTP relay: setup, ports and limits

Short answer

The Google Workspace SMTP relay, smtp-relay.gmail.com, lets printers, apps and on-premises servers send through Google. An admin enables it under Apps, Google Workspace, Gmail, Routing, chooses which senders are allowed, and authenticates by IP address, by Workspace login, or both. It listens on ports 25, 465 and 587. Each user can send to 10,000 recipients a day, with 100 recipients per SMTP transaction.

Last checked 16 November 2026

The Google Workspace SMTP relay is smtp-relay.gmail.com. It lets office printers, line-of-business apps and your own mail servers send email through Google without a personal mailbox password. An admin turns it on in the Admin console, picks who may send, and chooses IP address or login authentication. Devices then connect on port 25, 465 or 587.

Google Workspace SMTP relay settings

Setting Value
Hostname smtp-relay.gmail.com
Ports 25, 465 or 587 (587 recommended with TLS)
Authentication Allowed IP addresses, Workspace login (TLS required), or both
Per user limit 10,000 recipients in 24 hours
Per transaction 100 recipients
Organization limit 4.6 million recipients in 24 hours, 319,444 per 10 minutes

Source: Google’s Route outgoing SMTP relay messages through Google and send email from a printer, scanner or app. Relay limits are counted separately from normal Gmail limits.

How to set up the Google Workspace SMTP relay

You need the Gmail Settings administrator privilege, and the setting can only be added at the top-level organizational unit.

  1. In the Google Admin console, go to Menu, Apps, Google Workspace, Gmail, Routing.
  2. Find SMTP relay service and click Configure (or Add another rule).
  3. Name the rule, then choose Allowed senders:
    • Only registered Apps users in my domains: the envelope sender must be a Workspace user with a Gmail license.
    • Only addresses in my domains: any address on your domain, including ones with no mailbox, such as scanner@yourdomain.com.
    • Any addresses: not recommended. Google warns it increases abuse risk.
  4. Under Authentication, tick one or both:
    • Only accept mail from the specified IP addresses: add your office’s public IPv4 or IPv6 address or range.
    • Require SMTP Authentication: devices log in with a Workspace address and password over TLS.
  5. Optionally tick Require TLS encryption. Mail sent without TLS is then rejected, so only do this if every device supports it.
  6. Save. Google says changes can take up to 24 hours to apply.

Then point each device or server at smtp-relay.gmail.com. With TLS, use port 587. Without TLS, ports 25, 465 and 587 all work, but you must rely on IP authentication.

IP authentication vs SMTP login

IP address SMTP login
Needs a static public IP Yes No
Needs TLS on the device No Yes
Credentials stored on the device None A Workspace user’s password
Works from home or a cloud host Only if that IP is static and listed Yes
Best for Office printers, on-premises servers Apps on cloud hosts, roaming devices

IP authentication is the usual answer for printers and scanners, because many cannot do modern TLS or app passwords. If your office has a dynamic IP, Google notes you may need a static one.

When you use SMTP login, Google treats the password as a user credential. A dedicated account for the relay, rather than a person’s account, keeps a staff password change from breaking every device.

What HELO name to use

Google recommends that your server or device identifies itself in HELO or EHLO with your domain or server name, not something generic like localhost or smtp-relay.gmail.com. A generic name makes the relay less able to tell your traffic apart and can hurt filtering.

If you chose Any addresses for allowed senders, presenting one of your own domains in HELO (or logging in with SMTP AUTH) is required. Otherwise Google rewrites the envelope sender to postmaster@ your domain.

Fixing relayed email going to spam

Relayed mail is delivered by Google’s servers, but it is still judged on your domain’s authentication. When relayed messages land in spam, check:

  1. SPF. Your domain’s SPF record should include _spf.google.com if Google sends for you. A missing or broken SPF record is the most common fault.
  2. DKIM. Turn on DKIM signing in Admin console, Apps, Google Workspace, Gmail, Authenticate email, and publish the TXT record it gives you. Relayed mail from your domain is then signed.
  3. DMARC. Publish at least v=DMARC1; p=none and watch the reports before tightening it.
  4. The From address. Use a real address on your domain. A From domain you do not control will fail DMARC alignment.
  5. Content. Scanner emails with a bare PDF and an empty body look like a common phishing pattern. Add a short plain-text body.

The quickest diagnosis is to send yourself a relayed message and read its Authentication-Results header. The email headers guide shows how. Our SPF, DKIM and DMARC setup guide covers the records in detail.

Common relay errors

Error text Meaning
Mail relay denied The sending domain or IP is not registered in your relay settings, or the rule has not applied yet
Invalid credentials for relay The registered IP does not match the sending account’s domain
Daily SMTP relay limit exceeded for user That sender reached its daily relay allowance
Your message has too many recipients More than 100 recipients in one SMTP transaction
454 4.7.0 cannot sign in, temporary problem Too many sign-in attempts or a temporary failure; retry later

Google lists every relay message on its SMTP relay error messages page.

When the Workspace relay is not the right tool

The relay is designed for an organization’s own devices and servers. It is a good fit for a scanner in the office or an on-premises ERP. It is a weaker fit for product email from a cloud app: you get no per-message delivery events, limits are per user, and a spike from your app counts against the same Google account your team relies on.

For app email, a transactional relay keeps that traffic separate. Mailcandor’s SMTP relay takes a fixed username and an API key over TLS on 465 or 587, signs mail for your verified domain, and reports bounces and complaints for each message. Your staff mail stays on Workspace either way.

Questions

What is smtp-relay.gmail.com?

It is Google Workspace's SMTP relay service. It accepts mail from devices and servers in your organization and delivers it through Google, after an admin enables it in the Admin console.

What ports does the Google Workspace SMTP relay use?

Ports 25, 465 and 587. With TLS, Google recommends port 587. Without TLS you must authenticate by IP address, because SMTP login requires TLS.

What is the difference between smtp.gmail.com and smtp-relay.gmail.com?

smtp.gmail.com logs in as one user with an app password and has a 2,000 message daily limit. smtp-relay.gmail.com is an organization relay that can authenticate by IP, send as any address in your domain, and allows 10,000 recipients per user per day.

Why are relayed emails going to spam?

Usually because SPF, DKIM or DMARC fail for the From domain, the device uses a generic HELO name, or the content looks automated. Check the Authentication-Results header on a received copy.

Does the SMTP relay work on a Workspace trial?

It works, but trial and unpaid accounts have lower limits until the account has paid a Google bill.

Related

Send with someone on your side.

Unlimited domains on every plan, a person before any block, and 3,000 emails a month free. Tell us what you send and we set you up within one business day.