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 Respuestas
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
EXPERTO
Steve_M
respondido hace 8 meses
profile picture
EXPERTO
revisado hace 8 meses
1
profile picture
David
respondido hace 8 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas