Giter Club home page Giter Club logo

Comments (7)

emersion avatar emersion commented on July 20, 2024

https://github.com/emersion/go-msgauth/search?q=Return-Path

Not sure where your issue comes from, but it's not from go-msgauth. I'd suggest opening a downstream issue.

from go-msgauth.

itrack avatar itrack commented on July 20, 2024

Yes, it is not, but the return path is part of an email header, it should be ignored and not signed by dkim.Sign.

Now the signature looks like this:
DKIM-Signature: a=rsa-sha256; bh=[* * ];
c=relaxed/relaxed; d=domain.com;
h=Content-Type:X-Complaints-To:Campaign-Id:List-Unsubscribe:Signedby:Return-Path:Sender:Precedence:Message-Id:Feedback-Id:Subject:Message-Id:To:From:Date:Mime-Version;
s=default; t=1641899925; v=1;
b=[
* * *]

from go-msgauth.

emersion avatar emersion commented on July 20, 2024

The library users tells go-msgauth which fields should be signed. They are responsible for not signing fields which shouldn't be.

from go-msgauth.

itrack avatar itrack commented on July 20, 2024

I apologize, I was wrong thinking that the library follows the protocol rules 😄

from go-msgauth.

emersion avatar emersion commented on July 20, 2024

The RFC indicates this requirement as a "SHOULD". Hence, the library won't forbid library users from doing the wrong thing here.

If it was a "MUST", I';d be fine with returning an error if the caller does the wrong thing. That's not the case here.

from go-msgauth.

itrack avatar itrack commented on July 20, 2024

Yes, but SpamAssassin sees the signature as invalid if it contains Return-Path

from go-msgauth.

itrack avatar itrack commented on July 20, 2024

SpamAssassin Score: -4.8
Message is NOT marked as spam
Points breakdown:
-5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/,
high trust
[91.247.179.194 listed in list.dnswl.org]
-0.0 SPF_HELO_PASS SPF: HELO matches SPF record
0.0 HTML_MESSAGE BODY: HTML included in message
0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
valid
0.1 DKIM_INVALID DKIM or DK signature exists, but is not valid

from go-msgauth.

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.