Comments (4)
There is only one consumer of the getbyuid() lookup and I found a way to replace it with a getbyname() call.
I have a diff that should be merged to master very soon, by the end of this week for sure.
from opensmtpd.
@ericfaurot asked me a question which spanned into a discussion I will summarize here until this ticket is closed:
The only consumer of user_backend->getbyuid() is the offline reloader ... we can either encode the username in the filename which is what my diff did; or ... simply assume that we can use the system's getpwuid() function since to use the offline enqueuing the user had to be able to log into the system which implies getpwnam() / getpwuid() should work [or at least we can make this an OpenSMTPD constraint].
This allows us to kill the user_backend API, make users lookable through a map of kind K_USER and only rely on these mappings when dealing with mail coming from the network.
It will make things much much simpler and nicer :-)
from opensmtpd.
getbyuid() bit the dust
from opensmtpd.
user_backend bit the dust. user lookups can be implemented as the K_USERINFO table service
from opensmtpd.
Related Issues (20)
- Mail not sent from root HOT 2
- opensmtpd.org is down (returns 404s) HOT 7
- CHANGES.md is outdated HOT 1
- gid/uid from userinfo ignored in v7.3.0 vs v6.8.0. HOT 3
- tm_year is unitialized, STARTTLS IO error null, fallback to plain, depends on arch HOT 5
- 7.4.0p0: man pages are installed in wrong location HOT 17
- build errors on macOS 14.2 HOT 9
- segfault when compiled without libbsd HOT 5
- `--with-mantype` is broken
- Silent Discard Mails HOT 1
- smtp disconnected reason="io-error: error:0A080006:SSL routines::EVP lib" HOT 3
- Writing filters in C HOT 8
- Duplication of email when it contains the same address inside `To`, `Cc` and `Bcc`
- Misinterpretation of escaped quotation marks in To/From/Cc HOT 4
- protocols "legacy", ciphers "compat" no longer seem to work for older mail clients HOT 2
- ssl-handshake takes forever running opensmtpd on top of docker
- Build fails on macos 10.5.8: `error: ‘EAI_OVERFLOW’ undeclared` HOT 9
- Listen tls, smtps and port with multiple domains HOT 1
- implicit declaration of function snprintf in openbsd-compat/getdtablecount.c HOT 2
- How to add additional recipient / dual delivery? HOT 3
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 opensmtpd.