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 réponses
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
EXPERT
Steve_M
répondu il y a 8 mois
profile picture
EXPERT
vérifié il y a 8 mois
1
profile picture
David
répondu il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions