Code Monkey home page Code Monkey logo

Comments (7)

raimue avatar raimue commented on May 30, 2024 3

It is probably the problem with quoting in the systemd unit that I described in this comment on an older issue: #44 (comment)

Check the parameters with ps aux |grep postsrsd. You will probably see postsrsd ... -X"exclude1 exclude2 exclude3" with literal quotes being passed to postsrsd. Which means this is actually taken as "exclude1 and exclude3", while exclude2 would be fine.

Adding some dummy at the front and back avoids the problem, but it would be even better to fix the systemd unit file.

from postsrsd.

roehling avatar roehling commented on May 30, 2024 1

@raimue The systemd unit file proves to be a source of unending pain joy...

@tedeasydns PostSRSd sees nothing but the sender's email address (via the canonical lookup mechanism), so all rewrite decision have to be based on the sender's email address only, plus some system-wide configuration items (e.g. the domain name to which addresses are rewritten). For a more complex setup, PostSRSd would have to run as milter. I've been thinking about implementing a milter mode, but my time is rather limited and I haven't gotten around to do it yet...

from postsrsd.

otetard avatar otetard commented on May 30, 2024

After an upgrade from 1.2 to 1.4 (using Debian backport packages), I encountered the same issue.

from postsrsd.

roehling avatar roehling commented on May 30, 2024

Hm, I'll need to do some more digging. The executable itself handles everything fine on my end. Maybe it's a problem with the startup scripts not passing the -X option properly?

from postsrsd.

tedeasydns avatar tedeasydns commented on May 30, 2024

Thanks for the replies, and sorry it took me a while to get back to this. It turns out the problem I was having seems to have been an understanding on what basis the exemption is being made. The exemptions seem to work for the domain sending the email, where as I was thinking to exempt domains using the mailserver for forwarding or backup mail spool. Is that correct? That when you put example.com in the exemptions, that refers to not rewriting email which is sent from example.com, not exempting email sent to example.com from SRS rewrite? Some of our clients using various forms of forwarding to mail systems they control are interested in having email to their domains not subjected to the SRS rewrite. Can you point me in the right direction to be able to exempt domains we are handling mail for from the SRS system?

from postsrsd.

zhavranek avatar zhavranek commented on May 30, 2024

See #74, you must write postsrsd ... -X"exclude1 exclude2 exclude3 " (ending space added). I think it's a bug in the postsrsd.

from postsrsd.

roehling avatar roehling commented on May 30, 2024

See #74

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.