smtplib.SMTPConnectError

I hosted an application on amazon EC2 and I want to utilize SES to send emails. I have already carried out the configuration, still, I’m unable to send emails from my application but I’m able to send test email from my SES page. When I try to send from my Django application I keep getting an error. What I’m trying to do is to set email verification message. He’s my SMTP configuration in settings.py:

EMAIL_HOST = 'email-smtp.us-east-2.amazonaws.com' 
EMAIL_HOST_USER = 'my_smtp_username' EMAIL_HOST_PASSWORD = 'my_smtp_password' EMAIL_PORT = 587 EMAIL_USE_TLS = True 
DEFAULT_FROM_EMAIL="mymail@gmail.com"

I registered and verified my custom domain and email for sending emails but I’m not able to use anyone of them in my django application on EC2. When I replaced DEFAULT_FROM_EMAIL = “mymail@gmail.com” with DEFAULT_FROM_EMAIL = “mydomain.co” (that’s changing my registered email to registered domain, I get the same error.

The error is: smtplib.SMTPConnectError: (451, b’Request action aborted on MFE proxy, SMTP server is not available.’).

Please what do I need to do to get this working?