535 5.7.1 Authentication failed: OVH SMTP in Gmail Send mail as
`535 5.7.1 Authentication failed` in Gmail's Send mail as means OVH's SMTP server rejected the login Gmail presented. Check the full address as username, the server, the port and the mailbox password first. If it fails only sometimes, there is no confirmed fix; open an OVH ticket with headers or use a relay.
Sohail Hussain10 min readShort answer
- If 535 5.7.1 Authentication failed appears on every attempt, re-enter the full mailbox address, the mailbox password, the SMTP host OVH documents for your product, and a matching port and security pair (587 with TLS, or 465 with SSL).
- If it fails only some of the time, or OVH accepts mail and never delivers it, I know of no confirmed fix as of November 2026. Collect timestamps and headers for OVH support.
- Gmail has announced it will stop supporting Send as for third-party addresses from January 2027, so plan a different sending route now.
You set up a custom-domain address on OVH, added it to Gmail under Send mail as, and now sending sometimes stops with 535 5.7.1 Authentication failed. Or nothing errors at all and the message never arrives. Either way, you need to know whether your settings are wrong or the problem sits somewhere you can't change.
Why it happens
535 is the SMTP reply for rejected authentication credentials. The enhanced code 5.7.1 marks a permanent security or policy refusal. The server that refused is OVH's, not Gmail's. Gmail only passes along the answer it got when it logged in to OVH's SMTP server on your behalf.
Causes, most common first:
- Wrong or stale credentials. The username must be the full address, the password must be the mailbox password (not your OVH customer account password), and Gmail keeps the old password after you change it at OVH.
- Wrong host, port or security pairing. OVH sells several mail products, and the SMTP hostname can differ between them. Google's own help says that for connection errors you may need a different port number and authentication type, and the correct outgoing server for your provider.
- Something on OVH's side that you can't see. Examples would be a transient fault in authentication, a rate or abuse limit, or filtering of connections from Google's sending addresses. None of these is confirmed. People on both Reddit's r/GMail and r/OVHcloud report intermittent 535 errors with OVH SMTP in Send mail as. In those threads OVH points at Gmail, users point at OVH, and no fix was posted.
- Silent drops after acceptance. This is a different failure. A server accepted the message, then discarded or filtered it, so no error exists to read.
Google connects from its own infrastructure, so OVH sees different source addresses than it sees from your laptop. That is one reason a login can work in a desktop mail client and still fail from Gmail.
Fix the settings that fail every time
Do these first. They explain the constant version of the error.
- In Gmail, open Settings > See all settings > Accounts and import.
- In the Send mail as section, click edit info next to your custom address, then continue to the SMTP screen. Google's steps for this are in the Gmail help page on sending from a different address.
- Set Username to the full address, for example
you@example.com. - Set Password to that mailbox's password. If you are unsure of it, reset it in the OVH control panel, pick a strong one without unusual characters, and paste it into Gmail.
- Set SMTP Server to the hostname OVH documents for your specific product (MX Plan, Email Pro, Exchange, or mail bundled with hosting). Open the mailbox's settings in your OVH control panel or OVH's help pages to confirm it. Do not guess the name.
- Pair the port with the right option:
587with Secured connection using TLS, or465with Secured connection using SSL. - Save, then send a test message from the custom address.
Delete and re-add
If Gmail bounced a verification or the entry seems stuck, Google's help says to delete the Send mail as address and add it again. Do this before you spend time on anything else.
Work out which failure you have
| What you see | Likely side | First move |
|---|---|---|
| 535 on every attempt | Credentials or server settings | Re-enter everything as above |
| 535 after a mailbox password change | Stale password in Gmail | Edit the Send mail as entry |
| 535 only at certain times or in bursts | Server-side limit, load or abuse protection | Log timestamps, open a ticket with OVH |
| Gmail says sent, recipient gets nothing, no bounce | Silent drop at OVH or at the recipient | Send a test with headers, check SPF and DKIM, open a ticket |
| Works in a desktop client, fails from Gmail | Path between Google and OVH | Include this in the ticket as evidence |
Intermittent 535 that the settings do not explain
This is the case with no confirmed fix. Try these in order, and stop when it becomes reliable:
- Delete the Send mail as entry and add it again.
- Switch between ports
587and465and watch for a week. - In the OVH control panel, check that the mailbox isn't blocked or flagged for sending, and read OVH's documentation for sending limits on your plan.
- Configure the same mailbox in a desktop client with identical SMTP settings. If it is reliable there and flaky in Gmail, you have strong evidence for support.
Keep a log: time with time zone, recipient, and whether a 535 appeared. A pattern such as "always right after I send several in a row" is far more useful to support than "it sometimes fails."
Mail that disappears with no bounce
Treat this as its own problem. With Gmail relaying through OVH, the message leaves from OVH's servers, so what matters is how the receiving side judges mail from your domain sent that way.
- Send a test to a mailbox you control at another provider, open the full headers, and paste them into the email header analyzer to read the route and the SPF, DKIM and DMARC results.
- Make sure your domain's SPF record authorizes the server that actually sends the message. The SPF generator can build the record; watch the 10-lookup limit when you add includes.
- Confirm DKIM signing is enabled for the domain at OVH and that a DMARC record exists. The DMARC generator gives you a starting record.
- Check whether the sending IP is on a blacklist. Shared IPs carry other customers' behavior.
No bounce is not proof of delivery
A message that vanishes can have been filtered after acceptance by OVH or by the recipient. Test with several recipient providers before you blame one side.
The bigger problem: Gmail is ending Send as for third-party addresses
Google's help says that starting in January 2027, Gmail will no longer support the Send as feature for third-party email addresses. Its help page names @yahoo.com and @outlook.com as examples, and says Google-hosted identities such as Workspace aliases and other Gmail addresses are not affected. Google's page on changes to third-party email account support describes the change in more detail.
A custom domain whose mailbox lives at OVH is not a Google-hosted identity, so by that description it appears to fall under the change. Check Google's page for the exact scope and date before you rely on it. Google's suggested alternatives are a desktop client with IMAP and SMTP support, your provider's own interface, or Google Workspace for a custom domain.
So even if you find a fix for the intermittent 535, this setup has a deadline. I'd treat the troubleshooting above as a stopgap and pick a long-term route now:
| Option | Good for | Cost |
|---|---|---|
| Desktop or mobile client with OVH IMAP and SMTP | Personal or low-volume mail | You leave Gmail's interface for this address |
| OVH's own webmail | Occasional sending | Separate inbox to check |
| Google Workspace for the domain | Teams that want Gmail's interface | Paid seats and a mailbox migration |
| A different mailbox host for the domain | Anyone unhappy with OVH delivery | Migration and DNS changes |
If you also send in volume, such as newsletters or outreach, a dedicated sending provider with proper SPF and DKIM and its own sending logs removes the dependency on a mailbox SMTP server entirely. See our notes on email throttling and rate limits and the email deliverability checklist for what to verify with whichever route you choose.
Checklist before you contact OVH
- Username is the full address and the password is the mailbox password
- SMTP host comes from OVH's documentation for your exact mail product
- Port and security option match (
587with TLS, or465with SSL) - Entry deleted and re-added at least once
- At least three failure timestamps and one success, with time zone
- Result of the same login in a desktop client
- Full headers of a delivered test message, if mail is dropping
If nothing works
Open a ticket with OVH support from your customer control panel, since the 535 comes from their server. If mail is silently dropped, also check the recipient's side: ask them to look in spam and quarantine, and to tell you what their admin sees. Include the exact error, timestamps, the SMTP host, port and security setting, and that you are sending through Gmail's Send mail as. Ask directly whether their logs show authentication failures or rate limiting for the mailbox at those times.
Subject: Intermittent "535 5.7.1 Authentication failed" on SMTP for you@example.com
Hello,
Gmail's "Send mail as" intermittently fails when sending through your SMTP
server for the mailbox you@example.com.
Error: 535 5.7.1 Authentication failed
Failures (with time zone): {timestamp 1}, {timestamp 2}, {timestamp 3}
Success: {timestamp}
SMTP host / port / security: {host} / {587 or 465} / {TLS or SSL}
Mail product: {MX Plan, Email Pro, Exchange or hosting email}
Same credentials in a desktop client: {works / fails}
Please check your logs for authentication failures, rate limits or abuse
blocks on this mailbox at those times. For messages that were accepted but not
delivered, full headers of a test are attached.
Thank you.
Common questions
Is the 535 error Gmail's fault or OVH's?
The rejection text comes from OVH's SMTP server, so OVH's logs are where the answer is. Gmail's different source IPs can still be part of the cause, which is why a desktop-client comparison helps.
Will an app password fix it?
App passwords are a Google account feature for Google logins. Here the login is to OVH, so you need the OVH mailbox password.
Will my mail stop working in January 2027?
Receiving at OVH is unaffected. Sending from that address through Gmail's Send mail as is the part Google says it is ending for third-party addresses, so move sending to another route before then.
Why does the same login work in Outlook or Thunderbird?
A desktop client connects from your own network, while Gmail connects from Google's servers. A difference in behavior between the two points to the path or to OVH's handling of Google's traffic, not to your password.
Explore: Email Deliverability
Related Articles
421-4.7.0 Gmail Has Detected This Message Is Suspicious: Fix
The 421-4.7.0 "suspicious due to the nature of the content and/or the links" error means Gmail's content filter rejected your message after DATA, not an authentication check. Remove click tracking or move it to your own domain, drop URL shorteners, check link reputation, then retest with a plain message.
421 4.7.0 Temporary System Problem. Try again later (10)
`421 4.7.0 Temporary System Problem. Try again later (10).` is a temporary Gmail deferral, not a permanent rejection. Google's server asked your sender to retry later. Slow your send rate, let your mail server retry, and check authentication and reputation if the deferrals last more than a day or two.
421-4.7.0 Try again later, closing connection (EHLO): fix
The error "421-4.7.0 Try again later, closing connection. (EHLO)" means Google's SMTP server is temporarily refusing your session, usually because of connection volume, a low-reputation IP, or a weak relay setup. Slow down, reuse one connection, queue with retries, authenticate, and send a real EHLO hostname.
421 4.7.28 Gmail Unusual Rate of Unsolicited Mail: Fixes
The 421 4.7.28 error is a temporary Gmail deferral, not a block. Gmail is rate limiting a domain, DKIM domain or IP range it sees sending too much unwanted mail. Retries usually deliver, but you should fix authentication, unsubscribe headers, sending pace and shared infrastructure to stop it recurring.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free