- Newest
- Most votes
- Most comments
I assume you have implemented the measures listed at How do I remove the restriction on port 25 from my Amazon EC2 instance or Lambda function?.
As per the error message
Error: 550 5.7.1 Unfortunately, messages from [my_IP_address] weren't sent. Please contact your Internet service provider since part of their network is on our block list (S3140).
You EC2 IP is being blocked by receiving email server. Some companies may block emails from all EC2 IP addresses at part of their corporate security policy. Hence, changing of EC2 IP does not help. You will have to reach out to the organisation's security team to allow-list your EC2 IP.
Alternatively, you can explore using Amazon SES to send email. It supports SMTP interface. Under Pricing page, it states Free tier customers receive up to 3,000 message charges free each month for the first 12 months after you start using SES.
Do check Free Tier page for any updates on SES usage
Relevant content
- asked 2 years ago
- Accepted Answerasked 3 months ago
- asked 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 19 days ago
Good thanks for your answer, but with the aws SES service I can't do the mail forwarding without verifying the account that sends me the mail and this is necessary for my business. So I need to get outlook to verify my account.
Thanks for the information. Since SES supports SMTP, perhaps add SES as additional profile to your Outlook. Receive email in your Outlook, and use SES profile to send out the email. Alternatively, you may want to consider using Amazon WorkMail for hosting your email.