Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up Email Accounts EC2

I am just getting started with AWS and EC2 and can't quite get my head wrapped around what to do with email.

On previous servers, I would use it as a mail server and on cPanel create all the email accounts I needed, and could access them through web mail.

I can't get a consistent answer on how to set up email accounts on a domain that is pointing to an EC2 instance.

My question is, how can you set up email accounts for a domain pointed at EC2 instance, and if its not possible is there a way to set up emails on a third party like gmail with the domain pointed at EC2?

Just so you know the domain is managed at GoDaddy.

Thanks

like image 775
Dfranc3373 Avatar asked Nov 22 '13 17:11

Dfranc3373


People also ask

How do I create a AWS email account?

Download an AWS SDK The AWS SDKs provide functions and data types that encapsulate the functionality of Amazon SES and other AWS services. To download an AWS SDK, go to SDKs . After you download the SDK, create a shared credentials file and specify your AWS access keys.

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.

Can AWS create email id?

Sign in to the AWS Management Console and open the Amazon SES console at https://console.aws.amazon.com/ses/ . In the navigation pane, under Configuration, choose Verified identities. Choose Create identity. Under Identity details, choose Email address as the identity type you want to create.

How do I add a mailbox to AWS?

To create a shared mailbox, create a mailbox in the Amazon WorkMail management console and select the Permissions tab. Then, add users and groups, and select whether they have Full Access, Send As, or Send on Behalf permissions for the mailbox.


1 Answers

I suspect if you are trying to treat it like shared hosting, EC2 may end up being more work than its worth. If you do want to give it a shot, read on.

EC2 provides mostly barebones virtual machines that you can purpose for anything you may need. They don't come with hosting control panels as many people use instances for things other than hosting websites.

You should be able to install cpanel or directadmin, but you may have some difficulties getting it to licence correctly as licences are often tied to a public IP (In EC2 everything is NAT'd).

To set up email on your instance, you need to install some kind of email server. There are quite a few different options available depending on what host operating system you choose to use. There are alot of tutorials that can walk you through setting up a mail server.

Now, for the annoying part. All EC2 IPs are on Spamhaus blacklists. To get around this, you can you can either configure your email server to forward through Amazon SES or fill out this form to whitelist your server IP: https://portal.aws.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request

Running your own email servers on ec2 is doable, but if it is my call, i'll go with something like Google Apps for Domains to handle my email accounts.

like image 114
datasage Avatar answered Oct 13 '22 12:10

datasage