Code Monkey home page Code Monkey logo

Comments (9)

roehling avatar roehling commented on May 30, 2024

Currently, the exclusion mechanism works with domain names only. I haven't tested this, but you could try and add a file-based lookup table to the canonical_maps like

sender_canonical_maps = dbm:/etc/postfix/no-srs, tcp:127.0.0.1:10001

and put a no-op rewrite for all excluded addresses in there:

Let me know if that works.

from postsrsd.

bjoe2k4 avatar bjoe2k4 commented on May 30, 2024

I was thinking about that a while ago as well. When external mails (with arbitrary sender address) are delivered to a local mailbox, the envelope-sender will still be rewritten by postsrsd in the proposed setup. Somehow postsrsd would have to know when to rewrite the envelope sender based on the envelope recipient (i.e. something like recipient_dependent_sender_canonical_maps, which obviously does not exist in postfix).

from postsrsd.

 avatar commented on May 30, 2024

I have tried your suggestion above of canonical_maps. Unfortunately it does not seem to work. Emails delivered to local address still got rewritten.

from postsrsd.

bjoe2k4 avatar bjoe2k4 commented on May 30, 2024

Did you resolve it?

from postsrsd.

 avatar commented on May 30, 2024

Unfortunately no.

from postsrsd.

MuhKuh7 avatar MuhKuh7 commented on May 30, 2024

So there is no way to disable SRS for a local virtual mailbox?

from postsrsd.

bjoe2k4 avatar bjoe2k4 commented on May 30, 2024

There is, but you have to have two set up two postfix instances (which isn't too hard). A receiving instance, that only decodes SRS, listens on the public ip and devlivers to mailboxes i.e. via delivery agents or lmtp and a sending one, that is set up as usual, but only listens on loopback. For the receiving one, you have to set the default smtp transport to the sending one.

from postsrsd.

MuhKuh7 avatar MuhKuh7 commented on May 30, 2024

I was also thinking about something like this, but how do you encode SRS in your setup?

Example 1: Mail from gmail to my server on a virtual alias map to forward the mail to yahoo
In this case SRS needs to ne applied to the mail so yahoo has a SRS return path.

Example 2: Mail from gamil to my server on a virtual mailbox. Here I do not need any SRS on the return path.

However, both cases also need to handle incoming mail already having SRS encoded addresses and in both cases bounces need to be handled correctly.

from postsrsd.

bjoe2k4 avatar bjoe2k4 commented on May 30, 2024

Example 1: gmail --> postfix-in --> postfix-out (+SRS encode) --> yahoo
Example 2: gmail --> postfix-in --> dovecot
Bounce should work as expected, since both instances are able to decode SRS. postfix-in will decode multi-hop bounces and postfix-out will decode single-hop bounces. Just tested a single-hop bounce, works as expected.

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.