Amazon EC2 Linux Server without postfix sending email localhost

Asked

Viewed 515 times

0

I set up a Linux instance on Amazon EC2, installed the basics to run a PHP application (Apache + PHP + Mysql).

What surprised me was when I did a test using the function mail() PHP, I received in my email normally as if I had a localhost SMTP server set up with the following address:

<[email protected]>

Doubt:

As my instance on Amazon EC2 without having an SMTP server configured, as postfix or similar was able to send email using the function mail() of PHP?

1 answer

1

An instance has by default a simple email server, which delivers its message but, in practice, does not deliver with the quality necessary for use in production. Whether it is just a test or an alert at the operational level, OK, but for transactional message delivery is not guaranteed delivery.

Set up your server to perform a Pool, by actually doing a Relay to a server with better quality delivery, such as AWS’s own message delivery service

Browser other questions tagged

You are not signed in. Login or sign up in order to post.