Skip to content

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 Answers
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

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
1
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.