Comments (8)
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.
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.
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.
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.
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.
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.
You can't set it currently without overriding the settings.py
file.
from paperless-ngx.
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)
- lost translation german HOT 3
- [BUG] Non-http/https URLs erroneously considered invalid HOT 5
- [BUG] ValueError: overflow/underflow converting HOT 3
- [BUG] E-Mail attachement will not be imported (file not found) HOT 6
- [BUG] Timeout (with no error message) when creation consumption Template and missing values HOT 1
- [BUG] error saving document link HOT 4
- [BUG] File altered at DOCUMENT_WORKING_PATH by PAPERLESS_PRE_CONSUME_SCRIPT is not consumed properly HOT 7
- [BUG] Concise description of the issue HOT 3
- [BUG] Unable to save doc link when target doc has value None HOT 1
- [BUG] Exception if filter by permissions "Shared by me" HOT 2
- [BUG] Highlighting of selected username field is not working proberly (login screen) HOT 1
- [BUG] delete button for customfields does not respect permissions HOT 1
- [BUG] Paperless-ngx 2.2.1 + Gotenberg 7.10.0 / 7.10.1 / 7.10.2 HOT 2
- [BUG] FILENAME_FORMAT_REMOVE_NONE breaks certain storage paths HOT 1
- [BUG] ColorConversionNeededError in v2.2.1 HOT 4
- [BUG] DigitalSignatureError leads to data loss, since the file will not be stored at all. HOT 4
- [BUG] LOCALE used for FilePath ? English even if display date set to another one. HOT 1
- [BUG] Delete option of document_exporter not working HOT 5
- [BUG] Password is shown instead of username HOT 4
- [BUG] Date order did not change after modifying PAPERLESS_DATE_ORDER HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paperless-ngx.