Forem Creators and Builders 🌱

Discussion on: Forem DigitalOcean setup SMTP does not work.

Collapse
 
ben profile image
Ben Halpern

I suspect that this issue is not DigitalOcean-specific. Not sure what the answer is, but looking forward to finding out.

Collapse
 
akhil profile image
Akhil Naidu • Edited

The major issue regarding the email was default email-id

First of all, every Forem admin should create their own default email id via the .env file. (no support to configure this via the Forem admin panel)

Secondly and one of the unchecked part by the Admins was, that they are not creating a sender mail based on the above mentioned default email-id; this causes certain issues, like => even though the authentication details were correct, the email-sender-providor, don't know the sender email.

This problem can be removed in two ways, and these two solution are offered by almost every email services provider.

  1. Manually create the sender email
  2. or by verify the domain name.

Within this post, at the end, I added some info on How to resolve SMTP issues, it also contain a 3rd party SMTP testing tool for users to check whether the issue is related to Forem or with the email authentication.

Collapse
 
ellativity profile image
Ella (she/her/elle)

What @akhil said. @benjaminb is the email address you're using to send/receive via Sendgrid the same as the default_email you set in inventory/forem/setup.yml?

If not, you'll need to follow the steps in Akhil's post to dig into your environment variables, or else make those changes to your setup.yml and re-run the Ansible Playbook to reinstall your Forem with the correct Admin email:

First of all, every Forem admin should create their own default email id via the .env file. (no support to configure this via the Forem admin panel)

This isn't necessary if the correct email is set in Step 6 in the Self-host Quick Start, but you're right that there's no way to make that change from the UI.

Thread Thread
 
benjaminb profile image
Benjamin Bilgehan

I followed Akhil's youtube video to install forem but i have searched "inventory" folder and "forem" folder and also searched "setup.yml" file on my instance no return.

I dont know where to find this files to make correct configuration for ENV file. also there is no .env file setup duirng Akhil's installation video.

Thread Thread
 
ellativity profile image
Ella (she/her/elle) • Edited

Oh, sorry if that was unclear. I was referring to @akhil 's post here.

Edit: If you didn't use the Forem Self-host instructions to install your Forem, then things might be a little different for you. It's harder for us to offer advice if you're off the beaten path, which is why we try to guide everyone to using our tools as they're currently set up.

Your Forem will have a default_email specified somewhere, so maybe search for that?

Thread Thread
 
akhil profile image
Akhil Naidu

At the end of the video, you can see I added an ENV variable using the script. In your case the ENV variable for setting email-id was DEFAULT_EMAIL