Easy way to send emails using SMTP from Amazon Server? - amazon-web-services

I have a business website hosted at Amazon's server. We are currently using Amazon's SNS to send email but we would like to setup our own email system based on SMTP. If you have any ideas about how to do , I would like to request for you suggestions /ideas.

Since you are on AWS already, easiest thing to do is use their SES product - a drop-in replacement for an SMTP server - you really don't want to run your own on an EC2 instance - your deliverability rates will likely go way down if you try as the EC2 instances and ip addresses ranges are often abused by spammers.

Related

How can I set up Web Sockets on AWS and log incoming messages to s3 (elastic beanstalk project) mysql db

I have an existing LAMP project on AWS (Elastic-beanstalk). I now what to set up web sockets on AWS too. According to AWS documentation, the way to do that is via AWS API Gateway. I don't know how this all works but there's documentation I found for setting up WebSockets.
Does the Gateway API connect to another service? If so, what service is this? What am I missing?
I mostly just want to make a Web Socket service to look incoming messages to the MySQL database on my Elastic-beanstalk project. I am totally confused about how to do this. Can anyone advise me about what steps I need to take?
Just because api gateway supports web sockets, doesn't mean you need to use it. ALBs do as well and are a more exact fit for elastic beanstalk.
Does an Application Load Balancer support WebSockets?
AWS doesn't support PHP (Ratchet) Web Sockets

AWS - How to limit calls to one endpoint in a domain?

We have an application hosted in AWS. We are now planning to have a public API for this application. It is expensive to service requests to this api. Is it possible to throttle requests to this api using AWS (not implementing logic in our application) such that if more than a certain number in a specified time are made they will be rejected?
Any advice is appreciated.
Thank you.
If you want to blacklist IPs that spam certain endpoints, you can use AWS WAF to create rate limiting rules for your API:
https://aws.amazon.com/blogs/aws/protect-web-sites-services-using-rate-based-rules-for-aws-waf/
I think there are at least two ways to do this:
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-request-throttling.html
If you are using EC2 to host Linux instances, you could use iptables to rate limit by source IP address.

Disadvantage of SMTP setup in AWS server

I want to configure SMTP setup in AWS instance to get disk usage of AWS instance.
Is there any disadvantage or any point that we should keep in our mind before setup the SMTP in AWS server.
I am using mailutils for setup the SMTP by following given link.
I am using EC2 instance.
Is there any way to setup email functionality in AWS ec2 instance.
I would not set up SMTP for this purpose
Firstly, AWS generally block SMTP mail sending. See this discussion on server fault
https://serverfault.com/questions/165854/my-ec2-instances-email-is-being-spam-blocked-by-gmail
Secondly, AWS has it's own built in monitoring and metrics system called "Cloudwatch" Unfortunately it does not directly support disk space monitoring straight out of the box but AWS do tell you how to do it http://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/mon-scripts.html

How to configure email server for sending emails in amazon ec2

I like to configure my own mail server for sending bulk e-mails in amazon ec2 services.But i don't know where to start and what are the softwares needed to configure the linux instance of ec2?
I know already how to set up simple web server in ec2.
These set up is only for sending bulk emails because i spent more money for amazon ses and mandrillapp so i jumped into setup my own email server.
Your suggestions very helpful for setup my server.

setup postfix SMTP on amazon ec2

Im trying to setup a postfix SMTP mail server on my amazon ec2 instance. i followed this guide http://cybart.com/how-to-install-and-configure-postfix-on-amazon-ec2/ and many other ones on configuring the main.cf
everytime i try to telnet my mail server mail.domain.com smtp it trys to connect to address XXX.XXX.XXX.XX but then operation is timed out and im unable to connect to remote host.
If you're still looking for guidance on how to setup an email server using Amazon EC2, I've written a guide for it. Even though some find using ec2 for email to be a hassle it doesn't have to be for you.
https://avix.co/blog/server-hosting
Here are some details about what the configuration will give you;
The system uses:
-Postfix as the smtp agent
-Dovecot as the client-side connect and mailbox manager
-Postgresql database to handle mail users, mail transports and the Spamassassin database
-Amavis (w/ Clamav & Spamassassin) for protection against viruses sent through email, and to facilitate an adaptive spam detection system that learns and corrects its behavior for each individual user
-Spamassassin as the spam filter and bayes to learn spam from ham and ham from spam
-Apache as the web setup, enables http & https connections to your site
-Squirrelmail as the default webmail. After the server is setup you will be able to check your email on yourdomain.com/mail from any browser on any device
The system supports:
-Multiple transports for different domain
Good luck, and let me know if I can clarify anything.