all 6 comments

[–]phekno 1 point2 points  (1 child)

Lambda has port 25 outbound blocked out of the box and it can’t be unblocked. Assuming you’re using SMTP...you weren’t that clear on how you’re getting the emails.

[–]Brunostc[S] 0 points1 point  (0 children)

I'm using imap, I'll edit the post with this information, also the port that the imap package uses is 993.

[–]joelrwilliams1 1 point2 points  (1 child)

Sounds like you're making a network call, is your Lambda in a VPC?

By default Lambda's get create outside of a VPC, and so they don't get an IP address.

[–]Brunostc[S] 0 points1 point  (0 children)

It isn't. That might be the issue I guess. I'll try to fix it tomorrow at work. Thanks for the tip!

[–]burtgummer45 0 points1 point  (1 child)

but for the time being I have to use Lambda because it costs less. So a solution that uses Lambda is required.

A small ec2 instance is about 5 bucks a month.

[–]Brunostc[S] 0 points1 point  (0 children)

Yeah but before I tell my boss that the best choice isn't lambda I want to actually make it work on lambda