Logo
Bearhost Logo

How to Fix "Email Sending Failed" Errors

By Elliot, BearHost·

Email sending failures can be caused by incorrect SMTP settings, authentication issues, blacklisted IPs, or script-level problems. This guide walks through systematic troubleshooting.

Step 1: Test with Webmail First

Before troubleshooting your email client, confirm email works at the server level:

  1. Log in to cPanel > Email > Email Accounts
  2. Click Check Email next to your account
  3. Open Roundcube webmail
  4. Compose and send a test email to a Gmail or Outlook address
  5. If webmail works, the problem is in your email client settings

Step 2: Verify SMTP Settings

Ensure your email client uses the correct settings:

| Setting | Value | |---|---| | Incoming server (IMAP) | mail.yourdomain.com | | IMAP port | 993 (SSL) | | Outgoing server (SMTP) | mail.yourdomain.com | | SMTP port | 465 (SSL) or 587 (STARTTLS) | | Encryption | SSL/TLS (port 465) or STARTTLS (port 587) | | Authentication | Required — use full email address | | Username | your full email (e.g., info@yourdomain.com) | | Password | Your email account password |

Common Port Issues

  • Port 25: Blocked by most ISPs and hosting providers. Do not use it.
  • Port 465: Uses implicit SSL. Most reliable option.
  • Port 587: Uses STARTTLS. Good alternative if 465 does not work.
  • Port 993: IMAP incoming only (not for sending).

Step 3: Check Email Authentication Records

Missing or misconfigured SPF and DKIM records cause emails to be rejected.

Check SPF

In cPanel, go to Email > Email Deliverability. If SPF shows issues, click Repair. Your SPF record should include:

v=spf1 +a +mx +ip4:YOUR_SERVER_IP ~all

Check DKIM

DKIM should also show as valid in Email Deliverability. If not, click Repair to auto-generate the DKIM key.

Step 4: Check the Mail Queue

In cPanel, go to Email > Track Delivery:

  1. Search for the recipient email address
  2. Check the delivery status
  3. Look for error messages like "rejected," "deferred," or "bounced"
  4. Common errors:
    • 550 5.1.1: Recipient address does not exist
    • 550 5.7.1: Rejected by recipient's spam filter
    • 421 4.7.0: Rate limited — too many emails sent too quickly

Step 5: Check IP Blacklists

Your server IP may be on an email blacklist:

  1. Visit MXToolbox Blacklist Check
  2. Enter your server IP or domain
  3. If listed, follow the delisting instructions for each blacklist
  4. Contact BearHost support if you need help with delisting

Step 6: Fix WordPress Email Issues

WordPress uses PHP mail() by default, which often gets flagged as spam or fails entirely.

Install WP Mail SMTP

  1. Install the WP Mail SMTP plugin
  2. Go to WP Mail SMTP > Settings
  3. Set the From Email to a real email address on your domain
  4. Choose Other SMTP as the mailer
  5. Enter your SMTP settings:
    • SMTP Host: mail.yourdomain.com
    • Encryption: SSL
    • SMTP Port: 465
    • Authentication: On
    • Username: Your full email address
    • Password: Your email password
  6. Click Save Settings
  7. Go to WP Mail SMTP > Tools > Email Test to verify

Step 7: Verify Disk Quota

If your email account's storage is full, new emails cannot be sent or received:

  1. Go to cPanel > Email > Email Accounts
  2. Check the Disk Usage column
  3. If full, increase the quota or delete old emails

Quick Diagnostic Checklist

| Check | How | |---|---| | Webmail sending works? | Test via Roundcube | | SMTP settings correct? | Verify server, port, encryption | | SPF/DKIM valid? | cPanel Email Deliverability | | IP blacklisted? | MXToolbox blacklist check | | Disk quota OK? | cPanel Email Accounts | | WordPress configured? | WP Mail SMTP plugin | | Firewall blocking ports? | Test with telnet or online port checker |

If you have checked everything and still cannot send email, contact BearHost support with the specific error message and we will investigate at the server level.

Tags:#email#smtp#troubleshooting#spf#dkim#sending-errors#cpanel