AWS弹性Beanstalk - 邮件(发送和接收电子邮件) [英] AWS Elastic Beanstalk - MAIL (Sending and receiving emails )

查看:264
本文介绍了AWS弹性Beanstalk - 邮件(发送和接收电子邮件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚设法将我的Web应用程序从共享托管服务迁移到AWS,使用Elastic beanstalk。但是我正在努力处理电子邮件服务。



我的应用程序在注册时发送验证邮件(使用SMTP),并且看起来用户没有收到电子邮件。 (我仍在使用共享托管的SMTP帐户)



同时使用共享托管服务时,我曾经使用我们的网站为其他团队成员创建邮件帐户域名,例如(noreply@domain.com)。



我试图找到一个关于我的问题的好答案,但没有一个问题完全满足我的需求



有些人建议SES只发送电子邮件和WorkMAil接收电子邮件。



在我的情况下不想使用其他服务,因为我的网站真的很小,所以我希望有人可以清楚地回答以下问题:



1-如何允许弹性豆串应用程序使用smtp发送电子邮件。



2-如何在EC2实例上设置网络邮件(以接收和发送电子邮件),或至少设置邮件服务ec2实例,并使用其他客户端(如outlook)发送电子邮件。



3-如何创建SMTP acc使用网站的域名的unt unt或不同的电子邮件帐户。



PS:请回答非常清楚和详细的答案,所以我会明白,有相同的问题。

解决方案

对于AWS上的电子邮件托管,您可以使用WorkMail或配置邮件服务器一个EC2实例。这些是您唯一的选择,除非您期待第三方邮件托管服务。在这里有很多教程,所以我不会在这里。



你不想在Elastic Beanstalk服务器上运行邮件服务器实例。如果您的应用程序扩展,每次更新应用程序时邮件服务器被删除,以及一般的各种问题,则会导致重复的邮件服务器被创建。如果要在EC2上托管邮件服务器,您将需要创建一个不由Beanstalk控制的单独的EC2实例。



通过SMTP从您的弹性发送电子邮件Beanstalk服务器您将使用您选择和配置的任何邮件托管服务,或使用SMTP电子邮件传递服务(如Amazon SES)或第三方服务(如SendGrid)。


Well I have just managed to migrate my web application from shared hosting service to AWS, Using Elastic beanstalk . However I m struggling with emails service.

Well My Application sends verification email upon registration (using SMTP) , and it looks that users are not receiving emails. ( I'm still using the SMTP account of the shared hosting )

Also while using the shared hosting service, I used to create mail accounts for other team member using our website domain name, for instance ( noreply@domain.com).

Well I tried to look for a good answer regarding my question, but none of the question answers fully my needs.

some people recommend SES to only send emails and WorkMAil to receive Emails.

Well in My case I don't want to use other services.since my website is really small, so I wish someone can answer clearly the following questions:

1- How to allow the elastic beanstalk application sending emails using smtp.

2- how to setup a webmail on the EC2 instance ( to receive and send emails ), or at least setting up the mail service on the ec2 instance , and sending emails using other clients like outlook for instance.

3- how to create SMTP accounts or different email accounts using the domain name of the website.

PS : Please answer with very clear and detailed answer so I would understand , and everyone who might have the same problem.

解决方案

For email hosting on AWS you can either use WorkMail or configure a mail server on an EC2 instance. Those are your only options unless you look to third party mail hosting service. There are plenty of tutorials out there for either option, so I won't go into that here.

You do not want to run a mail server on an Elastic Beanstalk server instance. That would result in duplicate mail servers being created if your application scales up, mail server(s) being deleted every time you update your application, and generally all sorts of issues. You would want to create a separate EC2 instance that isn't controlled by Beanstalk if you want to host a mail server on EC2.

For sending email via SMTP from your Elastic Beanstalk servers you would either use whatever mail hosting service you have chosen and configured, or use an SMTP email delivery service such as Amazon SES, or a third party service like SendGrid.

这篇关于AWS弹性Beanstalk - 邮件(发送和接收电子邮件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆