User:SRB1977/How to create an email server

How do I create an email server, how do I connect a Domain after the server has been connected properly?