535 5.7.8 Authentication failed After a Few Hours: Warm-Up Fix
When a warm-up service connects fine for 4-5 hours and then gets `535 5.7.8 Authentication failed`, the server is usually throttling or banning it for too many connections or failed logins. Check the server's auth log, raise or exempt the limit for that client, or slow the tool's connection rate.
Sohail Hussain9 min readShort answer
- If a warm-up tool authenticates fine for a few hours and then gets 535 5.7.8, your server is often blocking the client's behavior (too many logins or connections from one IP) rather than rejecting the password.
- Confirm by logging in from a different IP, then check your mail server's auth, rate-limit and fail2ban logs for the tool's IP.
- Fix it by exempting the tool's IPs from the limit or ban, or by making the tool connect less often.
You set up a warm-up service against your own mail server. It works for four or five hours, then every login fails with this:
535 5.7.8 Authentication failed
You did not change the password, and nothing else changed. The usual pattern is a self-hosted server that enforces a connection or login limit per client IP. Warm-up tools log into many mailboxes and open many short sessions, so they hit that limit sooner than a normal mail client does.
What 535 5.7.8 means
The 535 is the reply code, and 5.7.8 is the enhanced status code. RFC 4954 defines 535 5.7.8 as an authentication failure due to invalid or insufficient credentials, and says a server unable to authenticate the client should reject AUTH with a 535 unless a more specific code fits.
So 535 is a generic "no" at the AUTH step. It is a 5xx, which means permanent for that attempt, and it comes from your own server, not from a recipient. The standard does not say why the login was refused. In practice, some servers and add-ons (brute-force blockers, auth proxies) can return the same reply for a wrong password, a locked account and a temporarily blocked IP. A password that worked this morning and fails this afternoon points at the last two.
I can't tell you which component produces the 535 on your server. That depends on your setup, so the logs decide, not assumptions.
Why it happens after a few hours
Most common first:
- A brute-force blocker banned the tool's IP. A few failed or rapid logins can trip fail2ban, CrowdSec or a similar tool, and the ban makes every later login fail.
- A connection or login rate limit. Postfix, Dovecot and any proxy in front of them can cap connections or auth attempts per client IP.
- A per-account lockout. Some setups lock the mailbox, not the IP, after repeated failures.
- The tool retries too aggressively. A short throttle becomes a long ban because every rejected retry counts as another failure.
- A genuine credential problem. A rotated password, or a revoked app password at a hosted provider. This usually fails from the first attempt, not after hours.
| Cause | Symptom | Fix |
|---|---|---|
| fail2ban or similar ban | Works from your laptop, fails from the tool; clears after the ban time | Unban, then allowlist the tool's IPs |
| Connection rate limit | Failures cluster when many mailboxes log in at once | Raise or exempt the limit, or stagger logins |
| Account lockout | Fails from every IP | Re-enable the mailbox in the admin panel |
| Aggressive retries | Short throttle becomes a long block | Add backoff in the tool |
| Wrong or revoked password | Fails everywhere, right away | Reset and re-enter the password |
Step-by-step fixes
Fix 1: confirm it is a block, not the password
- Write down the timestamp (with timezone) of the first 535 in the warm-up tool's log.
- Log in to the same mailbox from a different IP, such as your laptop, with a mail client. For a raw test, connect with
openssl s_client -connect mail.example.com:465and issue AUTH by hand. - If it works there, the password is fine and the tool's IP is being blocked or throttled.
- Pause the tool for 15 to 60 minutes and retry. If it recovers by itself, you hit a temporary ban or rate window.
- If the manual login fails everywhere, check the password, whether the mailbox is disabled, and whether the server requires an app-specific password.
Fix 2: find the block in the server logs
Look around the failure timestamp for words like "rate", "limit", "throttle", "too many", "banned" and repeated "authentication failed" lines from the tool's IP.
| Server software | Where to look | What to look for |
|---|---|---|
| Postfix and Dovecot | /var/log/mail.log or journalctl -u dovecot | Repeated auth failures from one IP; connection-limit messages |
| Postfix rate limits | mail.log | Warnings naming smtpd_client_connection_rate_limit or smtpd_client_connection_count_limit |
| fail2ban | /var/log/fail2ban.log | Ban lines for the tool's IP |
| Exim | /var/log/exim4/mainlog | rejected AUTH lines, rate-limit ACL hits |
Paths vary by distribution and setup; on a managed or packaged mail server, use its dashboard or documentation to reach the mail and auth logs. Work out whether the block is on connections per second, failed logins or messages per hour, because each has a different fix.
Fix 3: exempt or raise the limit for the tool
- Get the warm-up service's sending IPs from its support or docs. If it uses a pool, you may need a range.
- Add those IPs to your fail2ban allowlist: put them in
ignoreipin the jail config, then reload fail2ban. - Do not add them to Postfix
mynetworksto get around a limit. That setting relaxes relay checks for the whole network and is not the right tool here. - For a Postfix connection-rate limit, raise it and exempt trusted clients. Keep
$mynetworksin the exceptions list, because setting this parameter replaces its default:
# /etc/postfix/main.cf
smtpd_client_connection_rate_limit = 100
smtpd_client_event_limit_exceptions = $mynetworks, 203.0.113.0/24
- Reload the service and watch the log for a full day. The failure took hours to appear, so a quick test proves nothing.
Exempt only IPs you trust
An exempt IP can also guess passwords without being blocked. Use a range only if the warm-up vendor publishes it, and remove the exemption when you stop using the tool.
Fix 4: reduce the tool's connection frequency
If you cannot change the server, change the tool.
- Lower the number of mailboxes it manages in parallel, or its sends per hour per mailbox.
- Check whether it opens a new SMTP connection per message. Reusing one authenticated session for several messages is lighter on a server.
- Spread schedules so many mailboxes do not all log in during the same minute.
- If the tool shares IPs between customers, other customers' traffic may be tripping your limit. Ask its support.
Fix 5: stop failed logins from escalating
A tool that retries a rejected login right away can turn a short throttle into a long ban. If the tool has retry settings, make it back off for several minutes after a 535. If fail2ban has already banned the IP, unban it, then fix the cause or the ban returns:
fail2ban-client set postfix-sasl unbanip 203.0.113.5
Replace postfix-sasl with the jail protecting your mail service; fail2ban-client status lists them.
Check the account too
If the mailbox is on Google or Microsoft instead of your own server, the same 535 can come from a revoked app password or disabled basic auth. Re-issue the credential before you touch any rate limits.
Checklist before you try again
- The first-failure timestamp is written down, with timezone.
- A login from a different IP works (or fails everywhere, which points at the account).
- You found the ban, rate-limit or lockout line in the server logs.
- The tool's IPs are in the right allowlist (not
mynetworks). - Any existing ban has been cleared.
- The tool's parallelism, schedule and retry backoff are lowered.
- You will watch the logs for at least a full day.
If nothing works
Contact the warm-up vendor's support if the block may come from a shared IP pool, and your mail server's support channel or community if the server returns the 535. Include the exact error line, timestamps with timezone, the IPs the tool connected from, your server's log lines for the same minute, how many mailboxes the tool manages, how often it connects, and which ban or rate-limit settings you already found.
Subject: 535 5.7.8 Authentication failed after a few hours (warm-up tool)
Hi,
My warm-up tool authenticates to my self-hosted mail server for about
4-5 hours, then every login returns "535 5.7.8 Authentication failed".
The same credentials work from another IP.
First failure: {timestamp with timezone}
Tool source IP(s): {IP list}
Mailboxes managed: {number}; connection pattern: {e.g. new login every 5 min}
Server log lines for that minute: {paste lines}
Already tried: checked fail2ban, raised connection limits, paused 60 min
Can you tell me the IPs the tool uses and whether it reuses SMTP sessions
or backs off after a 535?
Thanks
Where Mailneo fits
This is a server-side problem, and Mailneo can't change your mail server's limits. Mailneo does not warm up mailboxes, so it is not a replacement for the warm-up tool here. What it does offer is a connection test for SMTP accounts you connect, which helps confirm that credentials work. Questions about connecting accounts can go through the Mailneo help center.
Common questions
Is 535 5.7.8 always a wrong password?
No. The code means the server did not accept the authentication, but servers and add-ons can also use it when a client is blocked or locked out. Test from a second IP before you reset anything.
How long does a fail2ban ban last?
It depends on the jail's bantime setting, so check your config. Waiting it out works only if the tool stops hammering the server; otherwise the ban restarts.
Should I put the warm-up tool's IP in mynetworks?
I would not. That setting changes relay trust for the whole network, and a third-party tool's IP does not belong there. Use the allowlist of the specific component that is blocking, such as fail2ban's ignoreip.
Can I move the mailboxes to a hosted provider instead?
You can, but hosted providers have their own sending and connection limits. Read the provider's current documentation before you move.
Explore: Email Deliverability
Related Articles
0x800ccc0e: Outlook Unable to Connect to SMTP Server, Fixed
Outlook error 0x800ccc0e means the app could not open a connection to your outgoing (SMTP) server. Usually the port, encryption setting or password is wrong, or antivirus, a firewall or your ISP is blocking it. Set port 587 with STARTTLS, turn on SMTP authentication, and test again.
SocketLabs "421 4.5.1 Too many errors" blacklist: how to fix it
`421 4.5.1 Too many errors, you have been temporarily blacklisted` means a SocketLabs server saw repeated auth or bad-address errors from your IP and paused it. Stop whatever is retrying, fix credentials and invalid recipients, clear the queue, and wait. The block usually lifts within minutes, but returns if retries resume.
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 IP not in whitelist for RCPT domain: what it means
The error 421 4.7.0 IP not in whitelist for RCPT domain means the recipient's mail gateway, usually Mimecast in reports, only accepts connections from approved IPs, and the Google sending IP isn't on that list. The fix is on the recipient side: their admin must allow the IPs or change the mail routing.
Ready to supercharge your email marketing?
Start sending smarter emails with AI-powered campaigns. No credit card required.
Get Started Free