kimCarlo's avatar

Laravel 5.3 Not Sending emails in AWS EC2 Ubuntu 16.04

I installed ubuntu 16.04 in my amazon ec2 instance. everything works fine except for the mail. I installed apache server, php7, mysql server and phpmyadmin on the ec2 instance. my config files are all configured properly but I cannot send mails. Laravel doesn't return any error when sending the mail.

0 likes
2 replies
cshaw's avatar

Hi @kimCarlo,

AWS by default limits the use of port 25 which is commonly used as the standard SMTP out port for email servers, others in the past have decided on just using SES which connects seamlessly with your EC2 server(s) and costs next to nothing to operate. I highly recommend you have a read through the benefits of SES as it will be easier to maintain in the long run and offers better out of the box security than your typical run-of-the-mill mail server.

Please or to participate in this conversation.