Hosting was pretty easy with https://github.com/tomav/docker-mailserver
Tho FWIW I use Postmark to do my email delivery because then at least I know my email will end up in the inbox of the recipient vs their spam box which my hosted server was having problems with.