Read the email setup guide with an emphasis on this bit:
We strongly recommend using a dedicated email service. Email server setup and maintenance is very difficult even for experienced system administrators, and getting any part of the complex required email setup wrong means your email won’t be delivered, or worse, delivered erratically.
While free options exist from some of our recommended providers we really don’t support self hosted email servers for the reasons outlined above.