Code Monkey home page Code Monkey logo

Comments (8)

stumpylog avatar stumpylog commented on June 3, 2024

Those settings just correspond to the Django settings here: https://docs.djangoproject.com/en/4.2/topics/email/. Which I assume just uses Python's smtplib. As it appears to have connected to the host, i would suggest lookging at your email server configuration, which is what rejected the email.

from paperless-ngx.

gemorgan avatar gemorgan commented on June 3, 2024

I've got several server apps using this server to send these password reset emails and such and they work. I expect to see the "[email protected]" address associated with the send attempts like I do with all my other apps, instead of a "webmaster@localhost" address. I'm a bit stumped since setting the email server env vars pass right thru to paperless but it doesn't look like the USER and PASSWORD are passed through. At first I thought this was another case where an app wasn't let me set the from address, like Ghost blog does, forcing a from address by building it dynamically but fails to build the right from address in the case of Ghost being at a subdomain. But I couldn't find any evidence in the mail server log that paperless tried to authenticate as "[email protected]"...

from paperless-ngx.

stumpylog avatar stumpylog commented on June 3, 2024

Ah, I wonder if it is from https://docs.djangoproject.com/en/4.2/ref/settings/#default-from-email

Knowing nothing about email, would it ever be the case where the sender would not match the host user? Like a login by x, but sent by y?

from paperless-ngx.

gemorgan avatar gemorgan commented on June 3, 2024

Yes, I have definitely faced a situation where the app would get all the way authenticated, send the email and the email server on the send side would reject it because the "from" address didn't match the address of the sender account. That used to be a common spam technique: send emails as some other user. But this case, I can't tell if it's authenticating at all, which pushes me to think that it's not supplying the EMAIL_HOST_USER and _PASSWORD to the email server.

I was thinking it could be possible I don't have the env vars set right (wrong names or something) especially if it changed and the docs lagged. The paperless logs don't specify what user and pass (even redacted) it tried. I'm looking for the flag to increase log level.

from paperless-ngx.

stumpylog avatar stumpylog commented on June 3, 2024

848cef8 will let you set the default from email. It's the only place I can think of that is coming from. But if not set, the email host user will be used instead

from paperless-ngx.

gemorgan avatar gemorgan commented on June 3, 2024

I had tried setting that env var too. Let me try to prepend PAPERLESS to that this time and see what it does...

from paperless-ngx.

stumpylog avatar stumpylog commented on June 3, 2024

You can't set it currently without overriding the settings.py file.

from paperless-ngx.

gemorgan avatar gemorgan commented on June 3, 2024

Gotcha. Thx for looking into it! I checked the env vars in the running docker container and DEFAULT_FROM_EMAIL is not set. I do confirm all the others are set...

from paperless-ngx.

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.