- Newest
- Most votes
- Most comments
I really think the solution is: don't use port 25; use ports 587 (STARTTLS) or 465 (TLS Wrapper). <voice=gen-a>Port 25 is like so last century</voice>
As per the EC2 User Guide, there is a Restriction on email sent using port 25: "Amazon EC2 allows outbound traffic over port 25 only to private IPv4 addresses. Traffic over port 25 is blocked to public IPv4 addresses and IPv6 addresses."
I think that there's no longer any excuse not to encrypt everything, all the time; it's free, it's easy. but if you Really, Really, Really need to use port 25, then Yes, you need additional exception(s).
Even though the source lambdas didn't change, the Port 25 traffic is Blocked because the following traffic is dropped: Inter-VPC TCP packets on port 25
You may need an exception for all intermediate accounts as well, ie. if you have 3 separate Accounts: 1/ acct where the Lambda resides; 2/ acct for inspection; 3/ acct where traffic egresses to the internet.
Can you provide more context on Why you just Have to use port 25?
answered a year ago
The outbound TCP/25 (SMTP) approval is (more or less) based on the Elastic IP that is used. Because you've changed which IP you're using (due to the change in NAT Gateway) you need to get approval again.
Hi,
The way to go is to use Network Analyzer: it will tell what you can and cannot access with your current settings.
See https://docs.aws.amazon.com/vpc/latest/network-access-analyzer/what-is-network-access-analyzer.html
Best,
Didier
Thank you Didier. Does AWS Network Analyzer work across different AWS accounts?
Relevant content
asked 3 years ago
asked 10 months ago
asked 2 years ago

Thank you weinsran for taking the time to respond. For context, the mail server is provided by a 3rd party. It is also the internet mail exchange for our organisation and therefore absolutely must accept connections on port 25, for mail server-server comms. But you're right, we should enquire if we could connect using ports 587 or 465 which is the norm now for client-server comms. Also, all our emails are encrypted using starttls command over the established connection.