🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to Configure Amazon SES SMTP on GoDaddy VPS with cPanel – Complete Guide

Absolutely! Here’s a comprehensive blog tutorial that covers everything you experienced — from configuring Amazon SES SMTP on a GoDaddy VPS to resolving port blocks and certificate issues — all in one clear, step-by-step guide.


📧 How to Configure Amazon SES SMTP on GoDaddy VPS with cPanel – Complete Guide (2025)

If you’re trying to set up Amazon SES to send reliable, secure emails from your WordPress website hosted on a GoDaddy VPS with cPanel, you’ve probably hit a few frustrating walls — like SSL handshake failures, SMTP connection issues, or silent email failures.

In this complete tutorial, we’ll walk you through:

  • 🔧 How to set up Amazon SES SMTP in WordPress
  • 🛑 Common GoDaddy VPS issues (like port blocking and SSL errors)
  • ✅ The hidden workaround using port 2587
  • 🔐 Security best practices

🚀 Prerequisites

  • A VPS hosted with GoDaddy and cPanel access
  • A verified domain in Amazon SES
  • WordPress + WP Mail SMTP plugin installed
  • SES SMTP credentials (generated from SES)

🧰 Step 1: Verify Your Domain in Amazon SES

  1. Go to Amazon SES Console > Verified Identities
  2. Click Create Identity
  3. Choose Domain
  4. Enter your domain (e.g., yourdomain.com)
  5. Copy the DNS records:
    • ✅ TXT (for domain verification)
    • ✅ CNAME (for DKIM signing)
    • ✅ SPF (optional but recommended)
  6. Add these to your domain’s DNS using cPanel or your DNS provider
  7. Wait for SES to show “Verified” for the domain

🔐 Step 2: Generate Amazon SES SMTP Credentials

  1. In the SES console, go to SMTP Settings
  2. Click Create SMTP Credentials
  3. It will create a new IAM user and give you:
    • ✅ SMTP Username
    • ✅ SMTP Password

Save these securely.


⚙️ Step 3: Configure WP Mail SMTP Plugin in WordPress

  1. Go to WP Mail SMTP > Settings
  2. Choose Mailer: Other SMTP
  3. Configure the following:
FieldValue
SMTP Hostemail-smtp.ap-south-1.amazonaws.com
Port2587 ✅ (Amazon’s alternate STARTTLS port)
EncryptionTLS (STARTTLS)
AuthenticationYes
UsernameYour SMTP username from SES
PasswordYour SMTP password from SES
  1. Save settings
  2. Send a test email from WP Mail SMTP > Email Test

🧨 Common Issues (and Fixes)

❌ Problem #1: SMTP Error – Could Not Connect to Host

SMTP Error: Could not connect to SMTP host. Connection failed.

🔍 Cause: GoDaddy VPS blocks or redirects ports 465 and 587

✅ Fix: Use port 2587 with TLS encryption — this is a hidden gem that usually works


❌ Problem #2: SSL Certificate Verify Failed

stream_socket_enable_crypto(): SSL operation failed with code 1

🔍 Cause: Expired or invalid certificate — but not from Amazon SES! You’re actually being routed to GoDaddy’s own mail relay (s132-148-28-255.secureserver.net) with an expired cert.

✅ Fix:

  • Switch to port 2587 so SES connection isn’t intercepted
  • Or use Amazon SES API to bypass SMTP entirely

🧪 Bonus: Verifying Your Server Is Connecting to Amazon, Not GoDaddy

Run this in SSH:

openssl s_client -connect email-smtp.ap-south-1.amazonaws.com:465

If you see:

CN = s132-148-28-255.secureserver.net

❌ You’re being redirected by your hosting provider.

✅ Use this instead to test 2587:

openssl s_client -starttls smtp -connect email-smtp.ap-south-1.amazonaws.com:2587

You should see a valid Amazon certificate!


🔄 Alternative: Use Amazon SES API (Recommended for Production)

Instead of SMTP, switch to SES API integration, which:

  • Is more secure
  • Doesn’t require SMTP ports
  • Avoids all SSL/cert errors

WP Mail SMTP supports it directly under Amazon SES Mailer — just generate IAM credentials with ses:SendEmail permission and connect.


✅ Final Recommendations

OptionWorks on GoDaddy VPS?ReliabilityDifficulty
SMTP Port 2587✅ Yes✅ High🟢 Easy
SMTP Port 587/465❌ Blocked/Intercepted❌ Low🔴 Broken
Amazon SES API✅ Yes✅✅ Best🟡 Medium

🎯 Conclusion

Setting up Amazon SES SMTP on a GoDaddy VPS may seem painful at first, but with the right port (2587) and configurations, you can bypass the restrictions and send secure, reliable emails from your WordPress site.

For production-grade setups, consider switching to SES API — it’s faster, safer, and immune to server-level mail hijacking.


If you have questions or want help configuring Amazon SES API or SendGrid/Gmail as fallback SMTP — drop a comment or reach out!


Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x