Comments (10)
@albertito I could try to implement this feature, if you welcome any contributions.
from chasquid.
This is now implemented in the next
branch, commit f303e43 (it might be rebased in the future).
I'll leave it there for now so it gets more exposure and testing, and then move it to master
for inclusion in the next release. I'll leave this issue open until then.
In the meantime, please comment further if you have any suggestions or ideas regarding this feature.
Thanks a lot!
from chasquid.
I agree this would be a useful thing to support, I'll leave this open to track that feature request :)
Thanks!
from chasquid.
Of course! Contributions are always welcome :)
I'll be slow to respond for the next couple of weeks, but will be happy to look at this then (sorry for the bad timing!).
I have to let you know you, though, that implementing this might be trickier than it looks because of how aliases are implemented internally. A non-matching lookup returns the given address, so that would have to be adjusted, but to do that some of the internal recursion logic may have to change.
If you find time to send a patch/make a pull request, that would be most welcome! Other than that, I'll give it a try in about two weeks.
Thanks again!
from chasquid.
Of course, thanks a lot for the patch! Sorry I've been slow to review, I came back earlier this week but it's been difficult to find the time for it. I will review the patch this weekend.
Thanks again!
from chasquid.
Just FYI, and for discoverability: discussion about catch-all is pretty much happening on the pull request #24 .
I'll put a summary here later for reference, but for now let's centralize the discussion in #24 :)
from chasquid.
The patch for catch-all aliases is now in the master
branch, and will be included in the next release.
Thanks again!
from chasquid.
At the moment, catch-all isn't supported directly in the aliases file, although I think it's a reasonable feature request.
In the meantime, this is doable via alias hooks. It's not very straightforward, because the output of the hook is added to the results from the file, so you'd have to know which ones already resolve naturally. But it can be done.
Does this help?
Thanks!
from chasquid.
Thanks @albertito,
this definitely helps with my setup, i need to put some logic into the alias hook.
I also think this would be a great feature to support out-of-the-box.
Maybe some syntax like:
# here goes the catch-all rule
_ : someuser
Thanks for the help!
from chasquid.
@albertito if you find time, the pull request contains basic implementation. I'd be happy if you could review it.
from chasquid.
Related Issues (20)
- t-11-dovecot fails due to permission errors HOT 2
- docker: setfacl step fails when using user-provided certificates HOT 4
- Send-only server without dovecot? HOT 3
- SpamAssassin integration in Ubuntu 16.04 needs adjustment HOT 5
- Send-only server: `Destination address is unknown` when sending to local domain HOT 2
- Do not `chown` files (unless the new file has a different UID/GID) HOT 1
- [smtp-check]: Some MTA do reject client connections unless the local name looks like an fqdn HOT 2
- Extend how-to guide to include how to actually send email HOT 5
- Surprising interaction of drop_characters with aliases HOT 8
- Support domain users with no valid password, for receive-only MTAs HOT 1
- Using an empty listening address in the config results in chasquid listening on a random port HOT 4
- Review DATA parsing code for SMTP smuggling attack vectors HOT 22
- Add a document for client configuration HOT 1
- Behavior of aliases pointing to non-existent local addresses HOT 2
- mail to/from IP address, or just document how HOT 5
- No Docker images for 1.11+ HOT 12
- Wording of SMTP error messages HOT 4
- FR: add pre-DATA (post-RCPT-TO) hooks HOT 1
- Send-only accounts - errors reading users file HOT 4
- No cipher overlap between server and client 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 chasquid.