How to enable sendmail on EC2 instance?

0

Hello Forum;

Question: How to I configure my EC2 instance so that websites hosted on it can send mail from forms?

  • I am using cPanel.
  • The PHP mail() function won't work.

host.example.com (cPanel host)
www.example1.com (need sendmail form for this website)
www.example2.com (need sendmail form for this website)
www.example3.com (need sendmail form for this website)
www.example4.com (need sendmail form for this website)
www.example5.com (need sendmail form for this website)

Thank you in advance.

2 回答
2

You're free to install and enable sendmail, or any other mail transfer agent such as postfix, on your EC2 instances.

Unfortunately you'll find port 25 is blocked by default to try and prevent spamming. You can request for the port to be opened, the steps are here https://repost.aws/knowledge-center/ec2-port-25-throttle

profile picture
专家
Steve_M
已回答 8 个月前
profile picture
专家
已审核 8 个月前
1
profile picture
David
已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则