So it seems that you tried everything except for reading the installation instructions. Check these out! ![]()
https://github.com/discourse/discourse/blob/master/docs/INSTALL-email.md
https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md