by andrewfromx · 3y ago · 0 comments
Most of the defaults can be left alone, and you'd just need to edit one config file (main.cf) and the comments provided in main.cf all but guide you through the process. What you'd need to edit relates to the aspects that are unique to your server (domain name, domains it should receive email for, etc.).
The reason I suggested Postfix is due to the nature of it being on many internet facing servers and being battle-hardened over the decades and having started off very secure. Anything else should probably be confined behind bubblewrap and AppArmor or SELinux.
Regardless of what tool you end up using consider adding firewall rules to explicitly block outbound SMTP in the event someone finds a way to relay through whatever tool you end up using as a bumper-guard against configuration mistakes and bugs.