Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to send emails from amazon EC2? [closed]

Tags:

Recently I have switched my hosting from bluehost to amazon ec2. I need to know, how my application would be able to send the emails from amazon ec2? Do I need to install any smtp server on my instance or I have to configure amazon SES? Please help.

thanks in advance.

like image 642
AvMishra Avatar asked Aug 25 '12 14:08

AvMishra


People also ask

Can I send email from EC2?

It is possible to send emails from an EC2 instance. You must fill in an online form with Amazon to remove the sending restrictions and set up the reverse DNS.

Are there any limitations in sending email from Amazon EC2 instances?

According to the EC2 FAQ there's a limitation. aws.amazon.com/ec2/faqs Q: Are there any limitations in sending email from Amazon EC2 instances? Yes. In order to maintain the quality of Amazon EC2 addresses for sending email, we enforce default limits on the amount of email that can be sent from EC2 accounts.

How do I enable SMTP on AWS EC2?

To use this feature: Log into the AWS Management Console. In the SES tab, select SMTP Settings and click on Create a New SMTP User. Use the default User Name or edit this name and click Create.


1 Answers

Noone gets to send email directly out of EC2 without signing up to SES and working within its constraints. Good grief, AWS would just be one enormous and thoroughly blackholed spam factory without SES in place.

Might also be worth looking at whether AWS's SNS might be a better solution for whatever you're trying to do.

Update: it is possible to send email directly from AWS, but you'll want to let AWS know by filling in a form so that they can whitelist the IP.

Update: More up to date treatment of this topic in this question.

like image 70
timday Avatar answered Oct 02 '22 16:10

timday