Giter Club home page Giter Club logo

Comments (8)

roehling avatar roehling commented on June 15, 2024

Due to the way postsrsd is invoked by postfix, it cannot distinguish local delivery from forwarding. You have to exclude it explicitly.

from postsrsd.

Basili0 avatar Basili0 commented on June 15, 2024

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.

roehling avatar roehling commented on June 15, 2024

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.

fauno avatar fauno commented on June 15, 2024

i'd suggest a whitelist approach so the rewritten domains could match postfix's domains :)

from postsrsd.

fauno avatar fauno commented on June 15, 2024

sorry i misread!

from postsrsd.

MuhKuh7 avatar MuhKuh7 commented on June 15, 2024

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.

roehling avatar roehling commented on June 15, 2024

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.

nyetwurk avatar nyetwurk commented on June 15, 2024

Why is this closed? I have the same issue with local mail, and local virtual mailboxes

from postsrsd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.