Authentication Email Never Got Reveived


(dongx) #1

Authentication Email Never Got Reveived after installation. Here is my app.yml

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/sshd.template.yml"
  - "templates/web.ratelimited.template.yml"

 ## which TCP/IP ports should this container expose?
expose:
  - "8080:80"   # fwd host port 80   to container port 80 (http)
  - "2222:22" # fwd host port 2222 to container port 22 (ssh)

  DISCOURSE_DEVELOPER_EMAILS: 'welcome@mydomain.com'

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: 'f.mydomain.com'

  ## TODO: The mailserver this Discourse instance will use
  DISCOURSE_SMTP_ADDRESS: mail.mydomain.com         # (mandatory)
  DISCOURSE_SMTP_PORT: 25                        # (optional)
  DISCOURSE_SMTP_USER_NAME: welcome@mydomain.com      # (optional)
  DISCOURSE_SMTP_AUTHENTICATION: "plain"
  DISCOURSE_SMTP_PASSWORD: pass@123_mail               # (optional, WARNING the     char '#' in pw can cause problems!)
  DISCOURSE_SMTP_ENABLE_START_TLS: false           # (optional, default true)

(dongx) #2

Fixed by

./launcher enter app
rails r "SiteSetting.notification_email = 'welcome@mydomain.com'"

I am using ipage VPS


(Tobias Eigen) #3

I would fix the email credentials in app.yml and then run ./launcher rebuild app. If you don’t the email will be overwritten next time you update.