Question about configuring email on shared hosting

AI-generated summary

User dbo discusses configuring email for a Discourse instance on shared hosting, specifically questioning the necessity of POP3 access versus SMTP alone and whether SPF/DKIM are required. While dbo initially sought clarification on whether POP3 is needed for features beyond sending, user navjotjsingh clarified that POP3 is only necessary if users need to reply to posts via email, otherwise SMTP suffices. However, navjotjsingh incorrectly suggested the same email account could be used for both sending and receiving. User codinghorror strongly corrected this, stating that using the same email for both purposes is strictly prohibited to prevent endless email cycles, a risk Discourse explicitly blocks. dbo also sought advice on email authentication, to which codinghorror recommended using the built-in test email feature found at /admin/email and sending a test message to mail-tester.com to verify SPF and DKIM configurations. dbo confirmed the utility of this tool and thanked the community for the clarification regarding the email account separation.

I just setup Discourse using the guide on the GitHub repo for setting up on Digital Ocean, and it seems that everything is working well after having some trouble with the email config and not knowing that I had to rebuild the container to get email working.

I looked around and didn’t see these questions answered specifically, so my apologies if this is a duplicate:

  1. I configured the email using my shared hosting provider and it seems to work fine. However, the email as configured also automatically includes a mailbox. Does Discourse need to have POP3 access or is SMTP by itself fine? I don’t know what I’m supposed to do here or what makes sense. What does Discourse need?

  2. If I’m using my shared hosting SMTP, do I still need to mess around with SPF or DKIM? I don’t know and the only articles I found have to do with Mandrill which I’m not using.

Thanks!

Send a test email via admin, email to http://www.mail-tester.com via the address there. Look at the results closely and also read the copy of the Mail test closely too.

Thanks, I tried that and the score is not bad. For anyone else wondering where to find this, it’s at /admin/email.

I’m still unsure about this: Does Discourse also need POP3 access for some features or is SMTP by itself fine? Can I reuse the same email account for both?

If you want your users to reply to the posts via mail, then you would need POP3 access as well. Otherwise SMTP is just fine.

And yes, I guess you can use same email id for both purposes.

Thank you, that helps out!

No you absolutely cannot use the same email for both. This can lead to nasty endless email cycles and we explicitly block this because it has been a problem.

I see, thanks for clarifying!