From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25917 invoked from network); 5 Jun 2020 17:19:23 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 5 Jun 2020 17:19:23 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1jhFza-00068j-1P; Fri, 05 Jun 2020 12:18:54 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jhFzV-00065u-FB for ding@lists.math.uh.edu; Fri, 05 Jun 2020 12:18:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jhFzF-005LxN-I9 for ding@lists.math.uh.edu; Fri, 05 Jun 2020 12:18:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lmzQTeoF3RrPN6UuU0MbIrxqrSL40qMlsq3QGd0PVhg=; b=FQn0sBSQXMqGC5nTRZqDG0Fkyu Q6StuSrqQmwYxyKmOQ8i9+4+gwoZoeFJTJG+dY5V8o6hel6AHdTOYAPwHFdWpGbYqtTbv9NkSbn78 D0tvY7xWvW+leuCPV0NpYqb7DzRkMYPuqif19WVIppMvlAWPlEnXBs+hBNIzvFviPzjA=; Received: from ciao.gmane.io ([159.69.161.202]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhFz8-0003oT-Or for ding@gnus.org; Fri, 05 Jun 2020 19:18:28 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jhFz7-0007ml-1o for ding@gnus.org; Fri, 05 Jun 2020 19:18:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Subject: Re: Handling DKIM for nntp articles Date: Fri, 05 Jun 2020 19:18:20 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <877dwlbfdv.fsf@tullinup.koldfront.dk> References: <873679czfu.fsf@tullinup.koldfront.dk> <87y2p1bj2d.fsf@tullinup.koldfront.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:Q8dzd2G8eZ0z8M79EZYxRHlJgHY= OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk 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