How to setup email forwarding with own domain on A

2020-06-08 05:52发布

问题:

I have a hard time understanding how I could setup e-mail forwarding on Amazon EC2 for my own domain, meaning how I can forward every email sent to ...@mydomain.com to my personal email address.

I'm using Amazon SES for sending emails. But what about incoming e-mails - is there any simpler way than setting up a complete e-mail server? As I'm using IP forwarding for my domain, I can't set up email forwarding with my domain provider.

I know this is kind of a general question.. I'd appreciate any help that points me in the right direction!

回答1:

Currently there is no incoming email (POP, IMAP, etc) managed service from AWS, so you'd need to set up your own mail receiving and forwarding.

Using Postfix as a mail server, setup would look like this: http://www.cyberciti.biz/faq/linux-unix-bsd-postfix-forward-email-to-another-account/

If forwarding is all you need, you could set up a email service outside AWS (Google Apps?) and redirect using GMail rules, for example.

UPDATE: Amazon Web Services has announced WorkMail as a email and calendaring service. http://aws.amazon.com/workmail/

UPDATE: Amazon SES now supports inbound mail



回答2:

Use a mail forwarding service. Eg. improvmx.com

It allows you to forward emails directed at your domain to any email address of your choice. All you have to do is add an MX record for your domain to point to improvmx.

And its free.



回答3:

SES + Lambda for email redirections

This guy made up a lambda function to redirect emails received via amazon SES. There are detailed instructions on the readme

https://github.com/arithmetric/aws-lambda-ses-forwarder



回答4:

You can create a forwarder rule in WorkMail. It requires logging in as the end user to create. Step by step here. Note that forwarding in this way changes the header of the email to look like the end user sent it instead of actual source. Not ideal.