Printer troubleshooting technician providing live chat help

Joe B.

Reviewed for technical accuracy

Specialities: Google Workspace, Gmail SMTP, MFP scan‑to‑email, Networking, macOS/Windows/Linux

Scan to email via Gmail — legacy MFP SMTP, app passwords, smtp.gmail.com, smtp-relay.gmail.com, OAuth2 proxy

Technician avatar Technician
Hey! Let’s get your Gmail SMTP scan‑to‑email working on a legacy MFP/copier (Kyocera/Ricoh/Canon/HP/Brother). Tell me if this is a personal Gmail account or Google Workspace, and whether your device supports SSL/TLS, STARTTLS, or only plain SMTP. We’ll choose between app passwords on smtp.gmail.com or a secure SMTP relay workaround (smtp-relay.gmail.com or an OAuth2 proxy).
Customer
It’s a Canon imageRUNNER that only does username/password with SSL/TLS. After Google removed “less secure apps” our scan to email fails with 535-5.7.8 Username and Password not accepted. We have Google Workspace.
Technician avatar Technician
Right — Google phased out basic password auth for SMTP. Your options are:
• App passwords (requires 2‑Step Verification on the sending account). Works with smtp.gmail.com on ports 465 (SSL) or 587 (STARTTLS).
• Google Workspace SMTP relay via smtp-relay.gmail.com with IP allow‑list and TLS. No OAuth on the device — the relay handles auth.
• OAuth2 relay/proxy (Postfix/msmtp “XOAUTH2” on a small Linux box or NAS) if the copier can’t meet Workspace relay requirements.
We’ll pick what matches your security policies and the MFP’s capabilities.
Customer
Let’s try the app password first. What exact SMTP settings should I enter on the MFP?
Technician avatar Technician
Setup with Gmail app password (Workspace or personal):
1) Enable 2‑Step Verification on the mailbox used for scanning (e.g., scanner@yourdomain.com).
2) Generate an App password (select “Mail” → “Other (Custom name)”). Copy the 16‑character code.
3) On the MFP SMTP screen enter:
• Server: smtp.gmail.com
• Port: 465 (SSL/TLS) or 587 (STARTTLS)
• Authentication: On — username = full email, password = app password
• From / Reply‑To: the same mailbox (many devices require sender = auth user).
4) Turn on Require TLS/SSL and test. This fixes most scan to Gmail failures on legacy copiers.
Customer
If we’d prefer not to use a mailbox password on the device, can we use the Workspace SMTP relay?
Technician avatar Technician
Yes — that’s the recommended enterprise method.
Google Workspace SMTP relay (no password on the MFP):
• In Admin console: Apps → Google Workspace → Gmail → Routing → SMTP relay service.
• Create a relay rule: Only accept from listed IPs (add your public IP), Require TLS, and Allow any sender or “Only addresses in my domains”.
• Device settings: server smtp-relay.gmail.com, port 587 (STARTTLS) or 465 (SSL/TLS). Authentication: None if IP‑based, or “Gmail/GSuite account” if you choose the auth option.
• Set a valid From address (e.g., scan@yourdomain.com) and configure SPF/DKIM/DMARC for best deliverability.
Result: the copier talks to Google’s relay with TLS; no credentials are stored on the device.
Customer
Our ISP IP changes. The relay would break when the IP rotates. Is there a workaround?
Technician avatar Technician
Use a small OAuth2 SMTP proxy (e.g., Postfix or msmtp on a Linux VM/NAS/Raspberry Pi). The MFP sends unauthenticated SMTP to the proxy on your LAN; the proxy authenticates to Gmail using XOAUTH2 tokens and forwards via smtp.gmail.com with TLS.
Benefits: no app password on the device, no IP allow‑listing. The proxy handles token refresh and can also throttle to avoid Gmail limits.
Customer
What about common copier brands? Any quirks when using Gmail SMTP?
Technician avatar Technician
Brand tips — Kyocera / Ricoh / Canon / HP / Brother:
• Enable SSL/TLS or STARTTLS and set the correct port (465/587). Some Ricoh models need “Encryption: SMTPS” to use 465.
• Use a matching sender address; many devices reject “From” ≠ auth user.
• Time sync matters — enable NTP so TLS handshakes succeed.
• If firmware only supports TLS 1.0, use the Workspace SMTP relay (it’s more forgiving) or the local OAuth2 proxy.
Customer
We still get bounces. Anything else to check for deliverability?
Technician avatar Technician
Verify SPF includes Google’s relay, enable DKIM for your domain, and publish a sane DMARC policy. Keep attachments under Gmail limits (25 MB) and prefer PDF. For bulk/scans to external orgs, consider rate limits and set a friendly From/Reply‑To name.
Customer
Great — can you summarize the quickest path depending on the account type?
Technician avatar Technician
Fast picks:
• Personal Gmail: enable 2‑Step Verification → create app password → use smtp.gmail.com (465/587).
• Google Workspace: prefer SMTP relay at smtp-relay.gmail.com with IP allow‑list + TLS. If your IP changes, use an OAuth2 proxy smarthost.
Need help choosing? Open the chat — we’ll implement the right method and test it live.

Quick answer: the accepted fix

Accepted fix for “Gmail SMTP not working on legacy MFP”: use a Gmail app password with smtp.gmail.com (port 465/587, TLS), or configure Google Workspace SMTP relay on smtp-relay.gmail.com with IP allow‑list and TLS. If neither fits, deploy a small OAuth2 SMTP proxy (Postfix/msmtp) that the copier uses as a smarthost.


Stopped after “less secure apps” change — what to do

Google removed basic password SMTP access. MFPs must use app passwords, the Workspace SMTP relay, or an OAuth2 relay workaround. Avoid plain SMTP without TLS and keep the sender address consistent with authentication.

Test and verify Gmail SMTP

Send a test email to an external mailbox. Check the copier log and Gmail Sent. If you see 530 5.7.0 Must issue a STARTTLS command first, enable STARTTLS or switch to port 465 (SSL). For 550 5.7.1 bounces, review SPF/DKIM/DMARC and allowed senders on the SMTP relay.

Gmail SMTP — troubleshooting tips

Most scan‑to‑email failures are wrong ports, missing TLS, or accounts without 2‑Step Verification.

Quick path: confirm time/NTP → enable TLS (465/587) → use app password or Workspace SMTP relay → verify SPF/DKIM/DMARC → limit attachment size.

Disclaimer: This information is AI-generated and intended for general guidance only. For advice specific to your environment, please consult a verified expert on Whizz-Tech before making decisions.


Getting Started Is Easy

Ask for help, 24/7

Members enjoy round-the-clock access to 12,000+ verified Experts, including tech support, mechanics, vets, and more.

Expert will respond in minutes

We match you with an Expert who specializes in your situation. Talk, text, or chat — whichever you prefer.

Save time & money

No scheduling hassles or expensive consults. Membership can save you significant time and money each month.

FAQ

What SMTP settings work with a legacy MFP and Gmail?

Use smtp.gmail.com port 465 (SSL) or 587 (STARTTLS), authentication on, username = full email, password = app password. For Workspace, consider smtp-relay.gmail.com with IP allow‑listing.

Do I need 2‑Step Verification for app passwords?

Yes. App passwords only appear after enabling 2‑Step Verification for the sending account.

Can I avoid storing credentials on the copier?

Yes. Use Google Workspace SMTP relay (IP‑based) or a local OAuth2 proxy that relays mail to Gmail with XOAUTH2.

Why do messages bounce?

Check SPF/DKIM/DMARC, recipient limits, and attachment size. Ensure the “From” address is allowed in your relay rule.

Does Gmail limit scan‑to‑email?

Gmail enforces sending limits and anti‑spam checks. Use a dedicated scanner mailbox and the official SMTP relay for higher reliability.

Common Gmail SMTP issues and quick fixes
SymptomLikely causeQuick fix
535 5.7.8 Username and Password not accepted No app password or 2‑Step Verification Enable 2‑SV; generate app password; use TLS on 465/587
530 5.7.0 Must issue a STARTTLS command first TLS disabled or wrong port Enable STARTTLS on 587 or switch to SSL on 465
550 5.7.1 relay denied Workspace relay not configured Add IP to allow‑list; require TLS; set allowed senders
Emails go to spam Missing SPF/DKIM/DMARC Publish SPF, enable DKIM, set DMARC policy

Step‑by‑step (App password method)

  1. Enable 2‑Step Verification on the scanner mailbox.
  2. Generate a Gmail app password and copy the 16‑character code.
  3. On the MFP, set server smtp.gmail.com, port 465/587, TLS on, username = full email, password = app password.
  4. Send a test email; keep the From equal to the auth account.

Step‑by‑step (Workspace SMTP relay)

  1. In Admin console, configure SMTP relay service (IP allow‑list, require TLS, allowed senders).
  2. On the MFP, use smtp-relay.gmail.com port 587 (STARTTLS) or 465 (SSL).
  3. Set a valid sender (e.g., scan@yourdomain.com) and test to internal and external recipients.

Sources

Matt Verified Icon
Matt ● replies in < 1 min
Technician Expert
⭐⭐⭐⭐⭐ Trusted by 27,000+ customers
Avatar
Alex · Expert's Assistant