It also matters if you host it at a reputable place (DO or AWS or Linode work) and if you want it easy, just wire up your mail server to a transactional email service or smtp.google.com :
https://zapier.com/learn/ultimate-guide-to-email-marketing-a...
It's possible to configure DKIM and SPF and your server correctly, and hopefully stay off blacklists, but if inbox deliverability really matters to you, a [no-cost] plan with a Mandrill or MailGun service should do well for you. It's what I use to have home servers and IoT things send me email, to gmail, and I never have deliverability issues.