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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南