How to setup mail server correctly

I could not find any.
This is my question, but I can’t see any reply

Please share me a link if you could find a correct answer.
Thanks