Cannot send email from EC2 instance on port 587

Posted by Tahsin Mostafiz on Server Fault See other posts from Server Fault or by Tahsin Mostafiz
Published on 2013-11-12T21:12:44Z Indexed on 2013/11/12 21:55 UTC
Read the original article Hit count: 165

Filed under:
|
|
|

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.

© Server Fault or respective owner

Related posts about email

Related posts about amazon-ec2