- Newest
- Most votes
- Most comments
Hello.
Is your website's email sending port port 25?
AWS restricts the use of port 25, so you need to apply to remove the restriction by following the steps in the document below.
https://repost.aws/knowledge-center/ec2-port-25-throttle
Also, as re:Post Agent answers, if you only need to send emails, I think you should consider using Amazon SES.
Based on the information provided, it sounds like you're experiencing an SMTP (Simple Mail Transfer Protocol) issue with your website's contact form. This is a common problem that can occur for several reasons when using AWS services. Here are some potential solutions and things to check:
-
AWS SES (Simple Email Service) Configuration: If you're using AWS SES for sending emails, ensure that it's properly configured. SES starts in a sandbox mode for new accounts, which limits you to sending emails only to verified email addresses or domains. You may need to request to move out of the sandbox mode if you want to send emails to unverified addresses.
-
SMTP Credentials: Double-check your SMTP credentials (username and password) in your website's configuration. Make sure they match the credentials generated in the AWS SES console. Also, ensure that the AWS region you're using in your website matches the region where you created the SES credentials.
-
EC2 Port 25 Throttle: If your website is hosted on an EC2 instance, be aware that AWS throttles outbound traffic on port 25 by default. This can prevent sending emails directly via SMTP. You have two options to resolve this: a) Apply to AWS to have the port 25 throttle removed for your account. b) Use AWS SES SMTP interface on port 587 or 2587 instead.
-
Authentication Method: Ensure your application is using the correct authentication method when connecting to the SMTP server. If you're getting an authentication error, it might be because your SMTP credentials were created before January 10, 2019, and are using an older signature version. In this case, you may need to create new SMTP credentials.
-
WordPress Plugin Solution: If you're using WordPress, you can try using an SMTP plugin to help resolve email delivery issues. Popular options include:
- WP Mail SMTP
- Easy WP SMTP
- Post SMTP Mailer/Email Log
These plugins can help you configure and test your SMTP settings, and some offer integration with various email services, including AWS SES.
Remember to test your email configuration thoroughly after making any changes. If issues persist, you may need to review your AWS account settings or contact AWS support for further assistance.
Sources
SMTP -> ERROR: Failed to connect to server: Connection refused (111) | AWS re:Post
AWS SES SMTP not working | AWS re:Post
Website not sending outgoing emails | AWS re:Post
Error sending mail using AWS SES | AWS re:Post
Relevant content
asked 5 years ago
