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.
- In the Google Admin console, go to Menu, Apps, Google Workspace, Gmail, Routing.
- Find SMTP relay service and click Configure (or Add another rule).
- 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.
- 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.
- Optionally tick Require TLS encryption. Mail sent without TLS is then rejected, so only do this if every device supports it.
- 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:
- SPF. Your domain’s SPF record should include
_spf.google.comif Google sends for you. A missing or broken SPF record is the most common fault. - 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.
- DMARC. Publish at least
v=DMARC1; p=noneand watch the reports before tightening it. - The From address. Use a real address on your domain. A From domain you do not control will fail DMARC alignment.
- 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.