Can someon share a steps how to configurate email from same server as discourse

i using now mailgun but thei billed me 20 $ each month …