"SMTPAuthenticationError: Authentication disabled due to threshold limitation" on production server on AWS

I've set-up email sending in my Django project that is deployed on AWS. When I run it locally the emails go out without a problem, but when I try it on production server on EC2 ubuntu VM, I get smtplib.SMTPAuthenticationError: (535, b'5.7.0 Authentication disabled due to threshold limitation') error.

My settings are the same on both machines:

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mail.my-provider.com'
EMAIL_PORT = 1025
EMAIL_HOST_USER = 'me@my-provider.com'
EMAIL_HOST_PASSWORD = 'mypassword'

Is there anything specific I need to do to be able to send emails form AWS? My outbound rules are set wide open.

Вернуться на верх