There has been countless posts about AWS EC2 not allowing email ports.
You can test your email smtp ports using this guide: Test SMTP Connection Using A Manual Telnet Session
And setting up email server guide is available here → How to get 10/10 Email score using CyberPanel - YouTube
You will still have to ask aws ec2 guys to open email ports for you.
Also check email debugger if you still can’t send emails: How to Debug and Reset Email Settings using CyberPanel Cloud - #5 by cnralp