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.
Related
I just added my WordPress website to AWS Lightsail and wanted to set up my mail accounts as well.
Receiving mails from my Google Mail account works, BUT
sending mails to my Google Mail account does not work.
I receive emails that I send from hi#mydomain.com to bye#mydomain.com.
I opened all recommended ports by Plesk and can only receive emails.
Enabling SMTP service on port 587 on all IP addresses in the server-wide settings does not solve my problem.
What should I do now?
AWS closed port 25 by default (Still open for tools that check ports). Nevertheless, the support finally replied and told me that they remove it manually to prevent spam.
You can remove the limit of your Lightsail instance with the following form: https://aws.amazon.com/forms/ec2-email-limit-rdns-request
So I am working on a mailing API for my website. The scenario is as follows:
Customer connects to endpoint.
API endpoint handles request and sends email using mailing service (which is based on aws sdk).
API returns Ok/BadRequest based on result.
When I am doing this with my API running on localhost everything works fine and I am receiving email on my mailbox as expected. But when I run my API service on Amazon EC2 instance I am getting this:
Response status code does not indicate success: 404 (Not Found)
I double checked that I have .aws/credentials file both on my localhost machine and EC2 instance (ubuntu 16.10). I can reach my API service running on EC2 instance just fine, because I get the BadRequest response. The problem is when mailing service tries to send an email using amazon SES. I believe it's not the code itself because it runs fine on localhost. Any ideas?
In case someone else has the same problem, changing to port 587 solved the problem.
Ec2 has a very strict throttle on port 25 by default. You can get whitelisted on an IP-by-IP basis by filling out a formal request, but if you're sending to SES, our recommendation is to use port 587 or 2587.
For more on the EC2 throttle on port 25:
https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/
And for more about SES's available SMTP ports:
https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html
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
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.
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.