Comments (8)
Due to the way postsrsd is invoked by postfix, it cannot distinguish local delivery from forwarding. You have to exclude it explicitly.
from postsrsd.
Oh okay, so you mean that the best way would be to exclude any local domains through SRS_EXCLUDE_DOMAINS.
Maybe it would be feasible to add that to the readme, as this is not quite obvious?
from postsrsd.
I thought it was obvious from the Postfix documentation for canonical_maps:
The optional canonical(5) table specifies an address mapping for local
and non-local addresses. The mapping is used by the cleanup(8) daemon,
before mail is stored into the queue. The address mapping is recursive.
The postsrsd package does assume a reasonable knowledge about Postfix configuration, so maybe I should warn people to not just copy the configuration mindlessly but check if it fits their setup.
from postsrsd.
i'd suggest a whitelist approach so the rewritten domains could match postfix's domains :)
from postsrsd.
sorry i misread!
from postsrsd.
I am also at the point where I want to exclude my virtual mailbox delivery from the rewriting. As I understand, the rewriting is called from the cleanup deamon. So what is the recommended solution for this problem? SRS_EXCLUDE_DOMAINS does not help for this issue.
from postsrsd.
Unfortunately, I still haven't found a good solution to suspend SRS for local delivery. Fortunately, there are very few scenarios where the rewritten address will "leak" to a user-visible field, so it's generally not a big issue. One of the notable examples is a vacation autoresponder. My workaround is manually invoking postmap -qADDRESS tcp:127.0.0.1:10002 on the sender address from vacation.pl, effectively undoing the "premature" rewrite.
from postsrsd.
Why is this closed? I have the same issue with local mail, and local virtual mailboxes
from postsrsd.
Related Issues (20)
- srs_reverse sometimes fails to rewrite SRS1 multihop addresses HOT 4
- Message in spam for outlook.com HOT 1
- SRS_DOMAIN / wrong default value HOT 2
- 550 Invalid sender address (in reply to MAIL FROM command) HOT 1
- Loophole of rewriting destination address? HOT 5
- Is default hash length 4 safe enough? HOT 1
- 553 5.1.7 local part too long in HOT 6
- unknown canonical_classes value "header_recipien" in "envelope_recipient, header_recipien" HOT 2
- Systemd unit fails to start if postfix is not installed HOT 5
- Systemd service startup failure in PostSRSd 1.8 / `SRS_EXTRA_OPTIONS` empty argument HOT 3
- Rewrite sender addresses based on recipient domain HOT 6
- 100% CPU usage without further logs or ports opened HOT 7
- multiple domains must be separated by comma
- Old behaviour CMP0026 is deprecated and will be removed soon
- [Bug] Wrong systemd daemon generation HOT 1
- Testsuite too likely to create false positives
- Newly introduced systemd detection does not work HOT 1
- init script does not properly stop postsrsd on Debian Buster HOT 3
- Option to use unix sockets instead of TCP HOT 3
- SPF should ignore Reply-To HOT 1
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 postsrsd.