Printer troubleshooting technician providing live chat help

Joe B.

Reviewed for technical accuracy

Specialities: Xerox MFPs, Scan to Email, Microsoft 365/Google Workspace, SMTP/TLS, Firewalls & DNS

Fix Xerox SMTP authentication errors — Office 365 (Exchange Online), Gmail app password, ports 587/465, STARTTLS/TLS, OAuth2/basic

Technician avatar Technician
Hey! We’ll get Scan to Email working and clear Xerox error 016-764 / 016-765 — SMTP authentication failed.
A few checks: Which mail system are you using (Microsoft 365/Exchange Online, Gmail/Google Workspace, on-prem Exchange/SMTP relay, or ISP SMTP)? Do you sign in with a mailbox user & password, or send through a relay with IP allow-list? Also share which model (VersaLink/AltaLink/WorkCentre) and the current SMTP server, port (587/465/25) and security (STARTTLS/SSL) you set.
Customer
It’s a VersaLink C405. We use Microsoft 365. SMTP server is smtp.office365.com on port 587 with STARTTLS. Username is the shared mailbox address. Error shows 016-764 or sometimes 016-765 every time I try to scan.
Technician avatar Technician
Got it. Those codes mean the MFP reached the SMTP server but the login or TLS negotiation failed. With Microsoft 365 the common causes are:
• Using a shared mailbox credential instead of a licensed user or mail-enabled security group + connector.
• Modern authentication (OAuth2) required, but the device is set for basic auth with username/password.
• Wrong from address (must match the signed-in user when using authenticated SMTP).
• Time skew, DNS, or certificate trust breaking STARTTLS.
We’ll choose one of two stable paths: Authenticated SMTP (port 587 + STARTTLS) with a mailbox user, or Microsoft 365 SMTP relay via your public IP.
Customer
We prefer username/password. The account has MFA on. Could that block the printer?
Technician avatar Technician
Yes—MFA blocks basic SMTP. Options:
Option A — Authenticated SMTP with app password
1) Enable Authenticated SMTP (SMTP AUTH) for that user in the Microsoft 365 admin center.
2) Create an app password under the user’s Security info.
3) In the Xerox web UI (Properties → Apps → Email → SMTP), set server smtp.office365.com, port 587, security STARTTLS, and sign-in as user@domain.com with the app password.
4) Set From address = the same user. Test.

Option B — Microsoft 365 SMTP relay
Create an Exchange Online connector, allow your public IP, and use your domain’s MX as the Smart Host. In Xerox choose “No Authentication”, port 25, TLS if required. This is great for devices without user credentials.
Customer
What about Gmail/Google Workspace? Our other site uses Gmail and sees the same 016-764 code.
Technician avatar Technician
For Gmail:
• Server smtp.gmail.com, port 465 with SSL/TLS (or 587 with STARTTLS).
• Use a mailbox that has 2-Step Verification enabled and create an app password for “Mail”. Regular passwords + “Less secure apps” no longer work.
• In Xerox set From Address to that same user. Many rejections happen when the from address doesn’t match the authenticated account.
This clears 016-764 / 016-765 in most Google cases.
Customer
We use a local Exchange server at HQ. Port 25 with TLS. Could certificates or time settings cause this?
Technician avatar Technician
Absolutely. For on-prem relays:
• Ensure the root/intermediate CA that issued your SMTP certificate is trusted by the Xerox (upload under Security → Certificates → Trusted CA).
• Sync device time via NTP (wrong clock breaks TLS).
• Confirm DNS resolution and firewall allow-lists (25/587/465 outbound).
• If the relay is IP-based, choose “No Authentication” and match the MFP’s static IP in the server’s receive connector. If authenticating, set LOGIN/PLAIN with the proper UPN (user@domain.com).
• Some sites require Maximum message size tweaks—set scan size under Email → Message Settings.
Customer
I entered the app password but still get 016-765. Any other Xerox settings I should review?
Technician avatar Technician
On VersaLink/AltaLink check these:
• SMTP – Device Email Address equals the authenticated user (for O365/Gmail).
• Login Name format: use full user@domain.com, not just the alias.
• Connection Encryption: choose STARTTLS (587) or SSL/TLS (465) to match your provider.
• Disable Validate Server Certificate only for testing—prefer uploading the correct CA instead.
• Clear any cached credentials and reboot the device (some firmware holds old auth tokens).
• Update to latest firmware; older builds fail modern ciphers/SNI.
Customer
We also want to send from a “noreply@domain.com”. Can the Xerox do that with O365?
Technician avatar Technician
With Authenticated SMTP, Exchange Online requires the From to match the signed-in user. To send as a shared or “noreply” address, either:
• Assign the device user Send As permission on that mailbox and use the mailbox as the login, or
• Use the SMTP relay connector (IP allow-list) so the device can send from your domain without user auth.
The relay method avoids MFA and is best for multiple from addresses.
Customer
After switching to app password and matching the From address, the test passed. Any final checks so this stays fixed?
Technician avatar Technician
Final checklist for 016-764 / 016-765 avoidance:
• Lock the device to a static IP and working DNS (use your internal DNS or 1.1.1.1/8.8.8.8).
• Enable NTP time sync.
• Limit scan size (e.g., 10–20 MB) and choose PDF/MRC compression.
• If your firewall does SSL inspection, bypass the Xerox for smtp.office365.com / smtp.gmail.com.
• Document the credentials/app password in your IT vault. If the password rotates, update the MFP the same day.
Customer
Perfect — scans are emailing again and no more 016-764/016-765 errors. Thanks!
Technician avatar Technician
Summary: Xerox 016-764 / 016-765 — SMTP authentication failed is fixed by matching your mail platform’s requirements: O365 app password + SMTP AUTH (587 STARTTLS), Google app password (465 SSL/TLS), or a Microsoft 365 SMTP relay with an IP allow-list. Verify From address, certificates, NTP, and firewall. Need hands-on help? Open the chat.

Quick answer: the accepted fix

Accepted fix when Xerox shows 016-764 / 016-765 (SMTP authentication failed): use the correct method for your provider—Microsoft 365 with SMTP AUTH enabled + app password on port 587 STARTTLS; Gmail/Google Workspace with app password on 465 SSL/TLS; or a SMTP relay connector with IP allow-list. Match the From address, sync time (NTP), and trust the server certificate.


Why Xerox shows SMTP auth failed (O365, Gmail, on-prem Exchange)

Modern providers enforce MFA, app passwords, and TLS. Using a shared mailbox to authenticate, mismatched From, disabled SMTP AUTH for the user, expired password, or broken certificate/NTP all trigger 016-764 / 016-765. Decide between authenticated SMTP or a relay connector, then configure the Xerox to match ports (587/465/25) and security (STARTTLS / SSL).

How to verify Scan to Email is healthy

Use the Xerox Test SMTP in the web interface. Send to both an internal and an external address. Check headers to confirm TLS and the correct From. If a failure returns, read the SMTP transcript (Auth failed, TLS negotiation, 5.7.57/5.7.60), then adjust: enable SMTP AUTH, regenerate app password, allow the MFP’s public IP, or upload the proper CA certificate.

Xerox SMTP — quick troubleshooting tips

Most failures are auth method, port/security mismatch, or certificate/time issues.

Quick path: choose provider profile → enable SMTP AUTH or set SMTP relay → create app password (O365/Gmail) → set server smtp.office365.com:587 STARTTLS or smtp.gmail.com:465 SSL/TLS → match From to login → sync NTP → test to internal & external recipients.

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 do Xerox codes 016-764 and 016-765 mean?

They indicate SMTP authentication failed or a TLS negotiation problem while sending email. Typical causes: MFA without app password, disabled SMTP AUTH, wrong port/security, mismatched From address, invalid certificate, or time/DNS issues.

How do I fix Scan to Email with Microsoft 365?

Enable SMTP AUTH for the user, create an app password, set smtp.office365.com port 587 with STARTTLS, and use the same address for login and From. Or configure a SMTP relay connector with your public IP.

How do I fix Scan to Email with Gmail/Google Workspace?

Use smtp.gmail.com port 465 SSL/TLS (or 587 STARTTLS), enable 2-Step Verification, and sign in with a Gmail app password. Set From to that same user.

Can I send from a shared mailbox or “noreply”?

For O365 authenticated SMTP, the From must match the signed-in user unless you use Send As permissions. To send as multiple addresses, configure a SMTP relay connector (IP allow-list) instead.

Common Xerox Scan to Email problems and quick fixes
SymptomLikely causeQuick fix
016-764 / 016-765 on O365 MFA/basic auth conflict; SMTP AUTH off Enable SMTP AUTH; create app password; port 587 STARTTLS
Gmail fails to authenticate Regular password; wrong port Use app password; 465 SSL/TLS or 587 STARTTLS; From = login
Sends internally only Using local relay without connector Configure SMTP relay in M365/Exchange; allow the MFP IP
TLS handshake error Cert trust/time/DNS Upload CA certificate, enable NTP, verify DNS & firewall

Step-by-step (Xerox web UI)

  1. Open the device’s web page → Properties → Apps → Email → SMTP.
  2. Choose your provider: smtp.office365.com:587 STARTTLS or smtp.gmail.com:465 SSL/TLS (or your relay host/port).
  3. Set Authentication as required. For O365/Gmail use mailbox user@domain.com with an app password. For relay, choose No Authentication and allow the MFP IP on the server.
  4. Set Device From Address to match the authenticated account (or an address allowed by your relay).
  5. Under Connectivity → NTP/DNS, enable time sync and working DNS. Upload needed trusted CA certificates.

Notes for mixed environments (networks & security)

  1. Bypass SSL inspection for smtp.office365.com and smtp.gmail.com.
  2. Allow outbound TCP 25/465/587. Some ISPs block 25; use 587 or a relay.

Sources

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