Gnus development mailing list
 help / color / mirror / Atom feed
From: "Adam Sjøgren" <asjo@koldfront.dk>
To: ding@gnus.org
Subject: Re: Handling DKIM for nntp articles
Date: Fri, 05 Jun 2020 17:58:50 +0200	[thread overview]
Message-ID: <87y2p1bj2d.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <873679czfu.fsf@tullinup.koldfront.dk>

Adam writes:

> Could Gnus somehow do the DKIM signing and add the appropriate headers?

Looks like it should be possible to simply run the article through
opendkim before posting:

  asjo@virgil:~$ cat /tmp/testfile.txt | sudo -u opendkim /usr/sbin/opendkim -bs -F 1591370389 -t -
  opendkim: (stdin):
  DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=koldfront.dk;
          s=mail; t=1591370389;
          bh=hqfL1ITTQ4B1RpkOnxmjCzjxNXe3XG5MEy6afWAA/T0=;
          h=From:To:Subject:Date:From;
          b=b09B3T1YBn9khocxOKBwg7K3B6l8CVkJkpnn/CYYBhzAVY04llRIf8er7uQxPuA19
           0moTf3b0scCZjIVaykukLVNvszX+PF7AaZonAgim+tejwcuAHJyQRGMCid+9J4X6w2
           T8fRSZ9G2oZXkxKGQuWopUtFvbpcrpe7Nd1fXeol/AuhcMMAzpM28GKTM5LBCBcq5q
           YLDibcJKnQkdGUZyFljMP0hHh4gWlouUW+5vyTqps4Ty0iMAcu/gc6GDuOosAxPij8
           S1B/xt97VXTkhoxFr48hvcoFZvIOq+cuEekyEbz56dqtLYb4R/EtXCsZObhFNARuky
           T0jbLG2O3h0yA==

This is with the content of the email I am replying to here, taken from
my sent-folder, in /tmp/testfile.txt - and the header output is
identical to the one my MTA added.

So now I just need to find the right hook to run the outgoing article
through opendkim in, and Bob's my uncle.


  Best regards,

    Adam


P.S. This reply sent via Gmane, so it won't have a DKIM-Signature:
     header.

-- 
 "All the truth in the world adds up to one big lie"        Adam Sjøgren
                                                       asjo@koldfront.dk



  parent reply	other threads:[~2020-06-05 15:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-05 15:19 Adam Sjøgren
2020-06-05 15:27 ` Emanuel Berg
2020-06-05 15:58 ` Adam Sjøgren [this message]
2020-06-05 17:18   ` Adam Sjøgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y2p1bj2d.fsf@tullinup.koldfront.dk \
    --to=asjo@koldfront.dk \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).