NethServer Version: 7.8
Module: mail server
tl;dr: I’d like to use my Neth installation as a mail server for my Discourse installation, and don’t want to miss anything.
I’ve been running a small Discourse installation for the last year or so, handling a group I moved from Yahoo before the great purge. Because most of the users had been using it as a mailing list (it goes back almost 20 years, originating on egroups.com, and was an outgrowth of an AOL listserv that predated that by 5 years or so), I set everyone to mailing list mode by default. That, of course, means it handles a fair bit of email traffic, even with as small a forum as it is. Mailgun isn’t all that expensive, all things considered, but if I’m already running a Neth server, it ought to be able to handle the mail, and maybe save me a few bucks.
My Neth server and the Discourse installation are on separate Contabo VPSs. Discourse is at one domain:
…and my Neth server is another. I’d like Discourse to be able to send mail through the Neth server, but handle any incoming mail itself–it’s already configured to do that.
So the question is, how to configure this? Obviously I need to create a user and give it a nice, long password, so I can use that user for sending mail. Configure Discourse to use mail.mydomain, that user and password, port 587. Easy enough.
Where I’m a little unclear is what else needs to be done:
- Do I need to add spare-oom.com as a mail domain on my Neth server?
- I assume I need to update the SPF record for spare-oom.com?
- Do I need to do anything with DKIM?
- Anything else?