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 19:18:20 +0200	[thread overview]
Message-ID: <877dwlbfdv.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <87y2p1bj2d.fsf@tullinup.koldfront.dk>

Adam writes:

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

Adding this:

  (add-hook 'message-send-news-hook 'asjo-add-dkim-signature)

  (defun asjo-add-dkim-signature ()
    "Add a DKIM-signature: header."
    (save-excursion
      (message-goto-eoh)
      (insert (asjo-generate-dkim-signature))))

  (defun asjo-generate-dkim-signature ()
    "Genedate DKIM signature from current buffer by calling opendkim."
    (save-excursion
      (shell-command-on-region (point-min) (point-max) "sudo -u opendkim /usr/sbin/opendkim -bs -t - | awk 'NR > 1'" " *asjo-generate-dkim-output")
      (with-current-buffer " *asjo-generate-dkim-output"
        (buffer-string))))

to my .gnus, along with installing and configuring opendkim on my laptop
and adding the new key to news._domainkey in DNS, I think/hope it's now
working.


  Best regards,

    Adam

-- 
 "Ours is wicked cool."                                     Adam Sjøgren
                                                       asjo@koldfront.dk



      reply	other threads:[~2020-06-05 17:19 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
2020-06-05 17:18   ` Adam Sjøgren [this message]

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=877dwlbfdv.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).