Giter Club home page Giter Club logo

Comments (7)

alexispurslane avatar alexispurslane commented on June 11, 2024

I went and checked the code, and the problem seems to be due to the fact that quark panics if all of the SMTP variables are not set and the UNSAFE_NO_EMAIL flag is not set, even if some of those SMTP variables (the password, in this case) aren't relevant.

from self-hosted.

alexispurslane avatar alexispurslane commented on June 11, 2024

I could move this to the backend repo

from self-hosted.

alexispurslane avatar alexispurslane commented on June 11, 2024

If I set the password to an empty string, it doesn't crash, and can attempt to send emails, but it doesn't appear to succeed in sending them:

docker[204592]: revolt-api-1            |  ERROR rauth::config::email_verification                       > Failed to send email to [email protected]!
docker[204592]: revolt-api-1            | lettre error: Connection error: Cannot assign requested address (os error 99)

from self-hosted.

alexispurslane avatar alexispurslane commented on June 11, 2024

Apparently, this is due to a service running in a docker container not being able to recognize localhost. Switching SMTP_HOST to host.docker.internal or my server's IP address (behind the router) changes the error to:

failed to lookup address information: Name or service not known

from self-hosted.

alexispurslane avatar alexispurslane commented on June 11, 2024

I don't know how to resolve this error, but it doesn't seem to step from Revolt.

from self-hosted.

alexispurslane avatar alexispurslane commented on June 11, 2024

Okay, so I resolved all the explicit errors, so Revolt SAYS that it was successful in sending the email, but nothing ever happens. What assumptions does it make about the setup of the SMTP server that might be causing this?

from self-hosted.

fungalcofe avatar fungalcofe commented on June 11, 2024

Apparently, this is due to a service running in a docker container not being able to recognize localhost. Switching SMTP_HOST to host.docker.internal or my server's IP address (behind the router) changes the error to:

host.docker.internal is only for Docker Desktop (macOS and Windows).
There’s no easy nor fancy way to join host, but using its main IP.
What you could do is running that Postfix in a container too and having a network for both backend and Postfix.

from self-hosted.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.