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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With