October 20, 2023 14 min read Email Troubleshooting
Dr. Aashish V.
Email Systems Administrator with 15+ years of experience diagnosing and fixing email delivery problems across major platforms.

Email delivery problems can be frustrating for both senders and recipients. When messages don't reach their destination or encounter unexpected issues, it disrupts communication and may impact business operations. The good news is that most email delivery problems have identifiable causes and solutions.

In this comprehensive troubleshooting guide, we'll address the most common email delivery issues, explain their causes, and provide step-by-step solutions to resolve them. Whether you're a system administrator, developer, or business owner, you'll find practical advice to diagnose and fix your email delivery problems.

Troubleshooting email delivery concept

Common Email Delivery Problems and Solutions

Problem: Connection Failures to SMTP Server

Symptoms

  • Unable to establish a connection to the SMTP server
  • Error messages like "Connection refused" or "Connection timed out"
  • Email client shows "Server not responding"
  • Applications hang when trying to send emails

Solution

  1. Verify the SMTP server address is correct. Double-check for typos in domain names or IP addresses. Common SMTP servers include:
    • Gmail: smtp.gmail.com
    • Office 365: smtp.office365.com
    • Yahoo Mail: smtp.mail.yahoo.com
    • Outlook.com: smtp-mail.outlook.com
  2. Check if the port is correct and open. Common SMTP ports include 25, 465, 587, and 2525. You can test if a port is open using telnet:
    telnet smtp.example.com 587
    If successful, you should see a response from the server.
  3. Verify network connectivity. Ensure you can reach the server. Try pinging the hostname:
    ping smtp.example.com
  4. Check firewall settings. Make sure your firewall allows outbound connections on the required SMTP port. Many residential ISPs and corporate networks block port 25 to prevent spam.
  5. Try an alternative port. If port 25 is blocked, try port 587 (TLS) or 465 (SSL) instead.
  6. Check if your IP is blacklisted. Your IP address might be blocked by the mail server. Check blacklist status using tools like MX Toolbox.
Problem: Authentication Failures

Symptoms

  • Error messages like "Authentication failed," "Invalid credentials," or "535 Authentication failed"
  • Connection established but unable to send email
  • Repeated password prompts

Solution

  1. Verify username and password. Double-check for typos and ensure caps lock is not enabled. For many providers, the username is your full email address.
  2. Check for account security features. If you're using Gmail, Office 365, or similar services with two-factor authentication (2FA), you'll need to create an app-specific password instead of using your regular password.
  3. Check account security settings. For Gmail, you might need to:
    • Enable "Less secure app access" (for older applications)
    • Create an app password if 2FA is enabled (Google App Passwords)
  4. Check for account lockouts. Too many failed login attempts may temporarily lock your account. Check your email for security notifications or try logging into the webmail interface.
  5. Verify authentication method. Some servers require specific authentication methods (LOGIN, PLAIN, CRAM-MD5, etc.). Ensure your client supports the method required by your server.

Common Error Codes

  • 535 5.7.8: Username and Password not accepted (Gmail)
  • 535 5.7.3: Authentication unsuccessful (Office 365)
  • 454 4.7.0: Temporary authentication failure
  • 530: Authentication required
Problem: SSL/TLS Connection Issues

Symptoms

  • Error messages about certificate validation or insecure connections
  • "SSL/TLS handshake failed" errors
  • "Certificate not trusted" warnings
  • Connection established but closes immediately

Solution

  1. Ensure you're using the correct security protocol. Match the protocol with the port:
    • Port 25: Usually no encryption or STARTTLS
    • Port 465: SSL/TLS encryption from connection start
    • Port 587: STARTTLS (starts unencrypted, then upgrades)
  2. Check if your application/library supports modern TLS versions. Older software might not support TLS 1.2 or 1.3, which are increasingly required. Update your email client or libraries to the latest version.
  3. Verify certificate validity. The server's SSL certificate might be expired, self-signed, or issued for a different domain. Use an SSL checker tool like SSL Checker to verify.
  4. Update root certificates. Your system's certificate store might be outdated. Update your operating system or certificate bundles.
  5. Check clock synchronization. Certificate validation relies on accurate time. Ensure your system clock is correctly synchronized.
Problem: Emails Rejected by Recipient Server

Symptoms

  • Bounce messages indicating the recipient server rejected the email
  • Error codes like 550, 554, or 571
  • Messages stating "Rejected due to spam content" or similar
  • Sent emails never arrive, and bounce notifications are received

Solution

  1. Examine bounce messages carefully. They often contain specific information about why the email was rejected. Look for error codes and descriptive text.
  2. Verify recipient email address. Make sure the email address exists and is spelled correctly.
  3. Check if your IP or domain is blacklisted. Use tools like MX Toolbox to check blacklist status and follow their instructions for delisting.
  4. Implement proper email authentication. Set up SPF, DKIM, and DMARC records for your domain:

    SPF Example:

    v=spf1 include:_spf.example.com ip4:192.0.2.0/24 ~all

    DKIM Setup requires generating keys and adding DNS records. A DKIM selector record might look like:

    selector._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCrLHiExVd55zd/IQ/J1LnWZUwnmE+7G/JKXyiSrSpdQF7K6T3Lq5q"

    DMARC Record Example:

    _dmarc.example.com. IN TXT "v=DMARC1; p=quarantine; sp=reject; rua=mailto:dmarc-reports@example.com"
  5. Review content for spam triggers. Avoid excessive use of:
    • ALL CAPS and exclamation marks!!!
    • Spam trigger words (free, guarantee, limited time, etc.)
    • Large images with minimal text
    • Multiple links to different domains
    • Attachments with suspicious extensions (.exe, .zip, etc.)
  6. Ensure proper sender address configuration. Make sure your "From" address domain matches the domain you're sending from.

Common Rejection Error Codes

  • 550 5.7.1: Sender not authorized / SPF authentication failure
  • 550 5.7.23: SPF validation error (Office 365)
  • 550 5.7.26: DMARC validation error (Office 365)
  • 554 5.7.1: Message rejected as spam
  • 550 Requested action not taken: mailbox unavailable: Invalid recipient
Problem: Emails Delivered to Spam/Junk Folder

Symptoms

  • Recipients report finding your emails in spam/junk folders
  • Low open rates despite successful delivery
  • Recipients not receiving emails (until they check spam)

Solution

  1. Implement authentication protocols. SPF, DKIM, and DMARC help establish sender legitimacy and improve inbox placement.
  2. Maintain a good sender reputation.
    • Send from consistent IPs and domains
    • Gradually warm up new sending IPs
    • Monitor and maintain low bounce and complaint rates
    • Send only to recipients who have explicitly opted in
  3. Optimize email content.
    • Maintain a good text-to-image ratio (avoid image-only emails)
    • Avoid excessive use of sales language and spam trigger words
    • Use a balanced number of links (not too many)
    • Make sure HTML is well-formatted and valid
    • Always include a plain text version
  4. Ask recipients to whitelist your sending address. Provide instructions for common email clients to add your address to their contacts or safe senders list.
  5. Use engagement-based sending practices.
    • Segment your audience based on engagement
    • Send more frequently to engaged users
    • Attempt to re-engage inactive subscribers before continuing to send
    • Remove chronic non-openers from your list
  6. Register with feedback loops. Major email providers offer feedback loops (FBLs) that alert you when users mark your emails as spam. Register for these services and promptly remove complainers from your list.
Problem: Rate Limiting and Throttling

Symptoms

  • Temporary failures when sending multiple emails
  • Error messages like "452 4.4.5 Daily sending quota exceeded"
  • Delays in message delivery
  • Some emails send successfully while others fail

Solution

  1. Understand your provider's limits. Common sending limits include:
    • Gmail: 500 emails per day (regular accounts), 2,000 (Google Workspace)
    • Office 365: Various limits based on plan, typically 10,000 per day
    • Amazon SES: Starting at 200 emails per day (sandbox), then based on your needs
    • SendGrid: Based on your plan
  2. Implement proper sending queue management.
    • Add delays between email submissions (e.g., 1-2 seconds)
    • Create a retry mechanism with exponential backoff for temporary failures
    • Set daily sending limits in your application
  3. Monitor your sending rates. Keep track of how many emails you're sending per hour/day to stay within limits.
  4. Consider upgrading your email service. If you regularly hit limits, upgrade to a business account or switch to a dedicated email service provider (ESP) like SendGrid, Mailgun, or Amazon SES.
  5. Spread large volumes across multiple sending IPs/domains. For very high volume, consider using multiple sending infrastructures with proper warm-up procedures.

Rate Limiting Response Codes

Common SMTP response codes for rate limiting:

  • 421 4.4.2: The service is not available, try again later
  • 450 4.4.2: Mailbox temporarily unavailable (often a rate limiting indicator)
  • 452 4.5.3: Too many recipients
  • 452 4.3.1: Insufficient system resources / temporarily rate limited
  • 452 4.4.5: Daily sending quota exceeded
Problem: Delayed Email Delivery

Symptoms

  • Emails take hours or days to reach recipients
  • Inconsistent delivery times
  • Messages appear out of order

Solution

  1. Check your server's mail queue. Messages might be stuck in the outbound queue due to temporary delivery failures or resource constraints.
  2. Verify DNS configuration. Incorrect MX, A, or PTR records can cause delivery delays. Ensure reverse DNS (PTR) records match your sending domain.
  3. Check for greylisting. Many servers use greylisting, which temporarily rejects emails from unknown senders and accepts them on retry. This can delay initial messages by 5-15 minutes.
  4. Monitor server performance. Overloaded mail servers can delay processing. Check CPU, memory, and disk I/O on your mail server.
  5. Consider recipient server issues. The delay might be on the recipient's side. Try sending to different domains to determine if the issue is specific to certain recipients.
  6. Check for content filtering delays. Complex spam filtering systems might take longer to process messages, especially those with attachments or links.

Using Diagnostic Tools for Troubleshooting

Several tools can help you diagnose email delivery issues more effectively:

1. SMTP Email Tester

Our SMTP Email Tester tool helps you identify configuration issues by testing your SMTP server connection, authentication, and basic email delivery. It provides clear feedback on what's working and what needs attention.

2. Email Headers Analysis

Email headers contain valuable diagnostic information. To view headers:

  • Gmail: Open the email, click the three dots (â‹®), select "Show original"
  • Outlook: Open the email, click File > Properties
  • Apple Mail: View > Message > All Headers

Key headers to examine:

  • Received: Shows the path the email took and timing between hops
  • Authentication-Results: Shows SPF, DKIM, and DMARC results
  • X-Spam-Status: Indicates spam score and factors
  • Delivered-To: Confirms final delivery destination

3. Mail Server Logs

If you have access to your mail server logs, they provide detailed information about delivery attempts, successes, and failures. Common log locations:

  • Postfix: /var/log/mail.log or /var/log/maillog
  • Exchange: Event Viewer > Applications and Services Logs > Microsoft > Exchange
  • Sendmail: /var/log/maillog

4. Online Validation Tools

Several online tools can help diagnose specific aspects of your email configuration:

Preventive Measures for Reliable Email Delivery

Preventing email delivery problems is often easier than fixing them. Here are proactive steps to ensure reliable delivery:

Technical Configuration

  • Implement proper authentication: Set up SPF, DKIM, and DMARC for all your sending domains.
  • Use dedicated IP addresses for high-volume sending to maintain control over your sending reputation.
  • Ensure proper DNS configuration with correct MX, A, PTR, and TXT records.
  • Keep SSL/TLS certificates current and use modern encryption protocols.
  • Regularly update email server software to address security vulnerabilities and compatibility issues.

Sending Practices

  • Maintain list hygiene: Regularly remove invalid addresses and unengaged subscribers.
  • Send consistent volumes: Avoid sudden spikes in sending that might trigger spam filters.
  • Warm up new sending infrastructures by gradually increasing volume.
  • Monitor engagement metrics and adjust sending frequency accordingly.
  • Implement proper queuing and rate limiting in your applications.

Content Best Practices

  • Create balanced HTML emails with proper text-to-image ratios.
  • Avoid spam trigger patterns in subject lines and content.
  • Use reputable link domains and avoid URL shorteners when possible.
  • Include plain text versions of all HTML emails.
  • Test emails before sending to larger audiences.

Monitoring and Testing

  • Regularly test your SMTP configuration using our SMTP Email Tester.
  • Monitor bounce rates and types to identify patterns.
  • Check blacklist status regularly for your sending IPs and domains.
  • Review delivery reports from your ESP or email platform.
  • Set up alerts for unusual delivery failures or rate changes.

Conclusion

Email delivery problems can be complex, but most issues have identifiable causes and solutions. By systematically diagnosing the symptoms, applying the appropriate fixes, and implementing preventive measures, you can significantly improve your email delivery success rate.

Remember that email delivery is as much about building trust with recipients and mailbox providers as it is about technical configuration. Consistently following best practices will establish a positive sending reputation over time, reducing delivery problems and improving inbox placement.

If you continue to experience email delivery issues after attempting the solutions in this guide, consider consulting with an email deliverability specialist who can provide customized guidance for your specific situation.

Troubleshooting Resources

For additional help diagnosing and fixing email delivery problems:

Ready to Test Your Email Configuration?

Use our free SMTP Email Tester to verify your server settings and improve email deliverability.

Start Testing Now