Comments (10)
LGTM
from maddy.
Postfix can read these out of a database, it would be really nice if Maddy could as well.
from maddy.
Generic solution - rewrite operation
Single address rewrite defined directly in configuration
rewrite [email protected] [email protected]
Generic form:
rewrite <initial address> [new address...]
This will replace a single address with multiple:
Rewrites are applied only once, so the directive above will not loop forever.
Regexp can be used in "Initial address" by wrapping it with /:
rewrite /(postmaster|admin)(@emersion\.fr)?/ [email protected]
Aliases mappings
More advanced rewriting (including mappings from files) is done using generic filter interface:
filter alias_map /etc/maddy/aliases
We define a singleton module alias_map
that performs rewriting using postfix's aliases file.
from maddy.
This is a REQUIRED feature and I NEED it to be a thing. Please don't assign this task to me. I just really require this.
from maddy.
Will this work in reverse, rewriting the From field in sent emails?
from maddy.
No.
from maddy.
Will accounts that match the new address in rewrite argument be allowed to send as the new address email?
from maddy.
At least, for now, we don't plan to add any checks regarding whether either From header or MAIL FROM matches actual sender account. So, technically, yes.
from maddy.
I guess something like that could work for database-based rewrites.
filter alias_sql {
driver ...
dsn ...
query "SELECT target FROM aliases WHERE username = %u"
}
A user-specified query should return a single string column containing new addresses, multiple rows are allowed, obviously. If the query fails for whatever reason (including zero rows result) - no rewrite it done.
from maddy.
Apparently, 7efcd81 says this:
Does not close #18, that issue is for file-based mapping.
But GitHub decided to interpret this as "closes #18" and closed this issue, reopening.
from maddy.
Related Issues (20)
- auth_map: unknown module or global directive HOT 2
- Add support for delegating DNS-01 challenge to a different domain HOT 1
- Link to DNS configuration on Docker tutorial page is broken HOT 1
- 'SEARCH UNSEEN' doesn't return unseen messages
- Fails to import config from file using absolute path HOT 1
- maddy.email is down HOT 1
- Empty "From" address results in rejection (5.1.7 Malformed address) HOT 1
- Documentation Typo in 'Multiple domains configuration'
- Certificate subject names checked when `min_tls_level` is `encrypted` HOT 1
- Maddy systemd service tries to start before network interfaces are up
- Fail check with go test or test/run.sh HOT 2
- Gandi dns-01 challenge fail: 400 Absolute rrset_name must end with mydomain.org HOT 8
- Quarantined message discarded HOT 3
- Bug report: empty smtp.mailfrom on Delivery Status Notification (DSN) HOT 5
- No usable MXs when sending to IPv6-only domain
- Feature request - replace_rcpt sql_query {} should handle multiple results HOT 3
- Error Message should Validate Username is in Domain for Authentication Error HOT 1
- POP3 support HOT 2
- Check the From header for inbound mail HOT 2
- Bug report: ssl cert expired for docs site 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 maddy.