Smtp

SMTP settings for printers and scanners: getting scan to email working

Short answer

Scan to email needs four SMTP settings on the printer: server, port, security and login. Gmail and Microsoft 365 now refuse plain passwords from most devices, so the reliable options are an IP-authenticated relay (Google Workspace smtp-relay.gmail.com or a Microsoft 365 connector on port 25) or a relay that accepts a username and password over TLS on 587 or 465. Update the printer's firmware first, because older firmware often lacks TLS 1.2.

Last checked 16 November 2026

To make scan to email work, a printer needs an SMTP server, a port, a security mode and a way to authenticate. The fastest reliable setup in 2026 is usually a relay rather than a personal mailbox: either your email provider’s IP-authenticated relay, or a transactional relay that accepts a username and password over TLS. Personal Gmail and Microsoft 365 logins are increasingly blocked for devices.

The four settings every printer asks for

Printer menus differ between HP, Xerox, Kyocera, Canon, Brother and Ricoh, but they all ask for the same things, usually in the printer’s web page (type its IP address into a browser):

Setting What to enter
SMTP server (gateway, mail server) A hostname like smtp-relay.gmail.com, never an IP address
Port 587 for STARTTLS, 465 for SSL/TLS, 25 for an IP-trusted relay
Security (SSL/TLS, STARTTLS, encryption) Match the port: STARTTLS on 587, SSL/TLS on 465
Authentication Username and password, or none if the relay trusts your IP
From / device email address An address on your own domain, like scanner@yourdomain.com

Before changing anything, update the printer’s firmware. Many older devices only support TLS 1.0 or 1.1, which Gmail and Microsoft 365 reject. A firmware update often adds TLS 1.2 and fixes “cannot connect to server” on its own.

Option 1: Google Workspace SMTP relay

If your company uses Google Workspace, the SMTP relay is built for this. An admin enables it under Apps, Google Workspace, Gmail, Routing, adds the office’s static public IP, and allows addresses in your domain.

Printer setting Value
Server smtp-relay.gmail.com
Port 587 with TLS, or 25 without
Authentication Off (the relay trusts your IP)
From scanner@yourdomain.com

Google’s printer and app guide lists two other choices: smtp.gmail.com with an app password (2,000 messages a day, TLS required), and aspmx.l.google.com on port 25, which needs no TLS but only delivers to Gmail and Workspace users.

Option 2: Microsoft 365

Microsoft’s guide for multifunction devices gives three methods:

SMTP AUTH SMTP relay (connector) Direct Send
Server smtp.office365.com yourdomain-com.mail.protection.outlook.com Same MX host
Port 587 25 25
TLS 1.2 or 1.3 required Recommended Optional
Login Licensed mailbox Static IP or certificate on a connector None
External recipients Yes Yes No

SMTP AUTH is the one most printers try first, and it is the one that is going away for basic passwords. Microsoft disables Basic auth for SMTP AUTH by default for existing tenants at the end of December 2026. Very few printers support OAuth.

The connector relay is the durable answer for an office with a static IP. Create an inbound connector in the Exchange admin center that trusts that IP, add the IP to your SPF record, and point the printer at your MX host on port 25.

If the printer says it wants port 465, Microsoft notes that the device does not support the TLS versions SMTP AUTH needs. Use the connector instead. The Office 365 SMTP guide has the full details.

Option 3: a transactional SMTP relay

If you have no static IP, the office uses a mix of providers, or you want the printer’s mail kept separate from staff mail, a transactional relay with a username and password works well. With Mailcandor:

Printer setting Value
Server smtp.mailcandor.com
Port 587 (STARTTLS) or 465 (SSL/TLS)
Username mailcandor
Password An API key
From scanner@yourdomain.com on a verified domain

Create a sending-only API key locked to one domain for each device. If someone pulls the key off the printer’s web page, it can only send from that domain, and you can revoke it without affecting anything else. This needs a printer that supports TLS 1.2, so update firmware first. See the SMTP relay page.

Brand notes: HP, Xerox, Kyocera

HP. In the Embedded Web Server, open Scan, Scan to Email, Outgoing Email Profiles (wording varies by model). The “SMTP server requires authentication” checkbox must be ticked for any login-based server, and “Enable SMTP SSL Protocol” turns on encryption. HP’s setup wizard can test the connection before you save.

Xerox. Settings live under Connectivity, Protocols, SMTP (or Properties, Connectivity, Setup, SMTP). Xerox separates “Connection security” (STARTTLS or SSL/TLS) from the port, so set both. Xerox devices also have a “Device email address” that becomes the From address.

Kyocera. In Command Center RX, open Function Settings, E-mail. Set SMTP Server Name, Port Number, SMTP Security (STARTTLS or SSL/TLS), and turn on SMTP Authentication. Use the “Test” button; Kyocera reports the server’s reply code, which tells you exactly what failed.

Menus change with firmware, so if a label is missing, search your model’s admin manual for “SMTP.”

Troubleshooting scan to email

Message on the printer What it means Fix
Cannot connect to the SMTP server Wrong host, blocked port, or TLS version mismatch Check the hostname; try the other port; update firmware
SMTP server requires authentication No login sent Enable SMTP authentication, or switch to an IP-trusted relay
Authentication failed / 535 Wrong password or wrong password type Use an app password or API key, not an account password
Requires a secure connection / 530 Logged in without TLS Turn on STARTTLS or SSL/TLS; see this guide
Scans arrive in spam Domain authentication fails Add the relay to SPF, enable DKIM, add a short text body

Also check the clock. A printer with the wrong date can fail TLS certificate checks, which shows up as “cannot connect.”

Finally, pick a port with care: many office firewalls block outbound port 25 from everything except the mail server. The SMTP ports guide covers which port does what.

Questions

What SMTP settings does my printer need for scan to email?

An SMTP server hostname, a port (587, 465 or 25), a security setting (STARTTLS, SSL/TLS or none), and either a username and password or an IP address the relay trusts. The From address should be on your own domain.

Why does my HP printer say the SMTP server requires authentication?

The server will not accept anonymous mail. Turn on SMTP authentication in the printer's web page and enter a username and password, or switch to a relay that trusts your office IP address.

Can a printer use Gmail SMTP?

Only with an app password, which needs 2-Step Verification on the account. Many printers also struggle with Gmail's TLS requirements. The Google Workspace SMTP relay with IP authentication is usually more reliable.

Can a printer use Office 365 SMTP?

Through smtp.office365.com on port 587 only if it supports TLS 1.2 and the tenant still allows Basic auth, which Microsoft disables by default at the end of December 2026. A connector-based SMTP relay on port 25 with your static IP avoids the login entirely.

What port should a printer use?

587 with STARTTLS where supported. If the printer cannot do modern TLS, use port 25 to an IP-authenticated relay inside a trusted network.

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.