OpenHospitalityNetwork / fedi-trustroots

Next generation federated hospitality exchange platform
https://openHospitality.network
GNU Affero General Public License v3.0
23 stars 3 forks source link

Problem: people can not register because verification emails are not delivered #93

Closed mariha closed 2 years ago

mariha commented 2 years ago

I tried to set up SparkPost EU.

I added a domain, using strict alignment subdomain, which means mail.refugees.openHospitality.network as both sending and bounce domains

Differences with TR:

After SparkPost docs, Domain Alignment options:

In config/env/local.js I added:

  mailer: {
    from: 'openHospitality@mail.refugees.openHospitality.network',
    options: {
      host: 'smtp.eu.sparkpostmail.com',
      port: 587,
      secure: false,
      auth: {
        user: 'SMTP_Injection',
        pass: $SPARKPOST_API_KEY,
      },
    },
  },
mariha commented 2 years ago

When I run locally, in dev orprod env, whatever config I put in config/env/local.js, for example for mailer.from Agendash dashboard shows that the message was from trustroots@localhost. It looks like mailer was not set up with values from that config… any idea what my I be missing?

mariha commented 2 years ago

It works (locally) 🙂 🙃 🙂