Cannot send email from EC2 instance on port 587
- by Tahsin Mostafiz
I have written a mail service for our flask application that uses Celery and RabbitMQ to send emails (using gmail). I have got the celery consumer and producer communicating okay but I cannot get to send send emails.
I am getting a socket.error: [Errno 101] Network is unreachable.
I think this means that AWS is blocking port 587 - even though in my security group I opened both ports 587 and 25 (inbound and outbound).
Any reason why this is happening? Any help will be highly appreciated.