How to create my own SMTP server for discourse

I know about Mailgun, Sendgrid and many more third-party SMTP mail servers for Discourse. But I want to have my own SMTP server so that all E-mail functionality will work like registering Admin account and getting emails for new Sign Up, Forgot Password, etc I don’t want a third party e-mail SMTP.

Can you please guide me on how to set up my own e-mail SMTP for discourse in the same server where discourse is installed?

Thank you!

1 Like

This is an option

3 Likes

Keep in mind deliverability of emails will likely suffer if you roll your own email server.

4 Likes

Why do you think you need to run your own server for any of this to work? If you just want to set up your own SMTP server, go for it, but I haven’t found it necessary for any of these things to work.

2 Likes