Jon Steinhart wrote in
 <[email protected]>:
 |Ken Hornstein writes:
 |>>It's getting harder and harder to send mail to gmail users
 |>>unless your mail is DKIM-compliant.  I did some cursory looking
 |>>around and couldn't find any documentation about how to get
 |>>nmh to do that, but surely somebody has made it happen.
 |>>Pointers to info would be much appreciated.
 |>
 |> In theory you could configure a postproc that did it; I don't have a
 |> recipe for that, unfortunately.
 |>
 |> The email I send out using nmh _is_ DKIM signed, but on both this
 |> account and my work one I submit mail to our smarthost and the MTA there
 |> does the DKIM signatures; my limited, imperfect understanding is that is
 |> the way it is normally done and AFAIK there are no recipes to do DKIM
 |> signing at the MUA level (but probably someone has done it).
 |>
 |> --Ken
 |
 |It's a pain depending on the rest of your system configuration but I use
 |opendkim and it all works fine.

Hmm, small advertisement for the postfix case.

You could use my minimal s-dkim-sign, it only signs and has no
other dependencies but C runtime and OpenSSL.
It does it just flawlessly for over two years.
It used to have a Coverity code density of 0.00, but they changed
something and now it has 0.07.

You have to self-compile except on AlpineLinux (i think), but that
(make) and configuration is easy, and can be copy+paste from
manual at times.  But eg my config is

  #@ /etc/postfix/dkim.rc
  
  milter-macro sign, {daemon_name}, sign
  milter-macro verify, {daemon_name}, verify
  
  key rsa-sha256, citron, /etc/postfix/sdaoden.eu-dkim-pri-rsa.pem
  
  client localhost
  client .sdaoden.eu
  client verify, .
  
  domain-name sdaoden.eu
  
  header-sign *, BlahBlahBlah
  header-seal *, BlahBlahBlah
  ttl 666666
  
  remove a-r, !, .sdaoden.eu, \
          .freebsd.org
  remove mo-a-r, .sdaoden.eu, !
  remove a-a-r, .
  remove a-m-s, .
  remove a-s, .
  #, .com
  remove dkim, !, .sdaoden.eu, \
          .gmail.com, .messagingengine.com, \
          .iana.org \
          .freebsd.org, .ietf.org, .netbsd.org, .openbsd.org, .postfix.org
  remove mo-dkim, .
  
  remove aucy
  remove ip
  
  #verbose
  #verbose
  #verbose

All the remove lines can of course be left off, but at times you
have tremendous numbers of such headers that become essentially
useless immediately, or are already so when they enter on ingress.
(My MUA is configured to strip even more when actually saving
things, but still, the above saves a bit.)

  https://ftp.sdaoden.eu/s-dkim-sign-0.6.2.tar.gz

Add .asc for signature.
Just ring through on problems.

P.S.: i first wanted to write "a normal program", which would have
simplified testing a bit, as in, "here is a normal email" etc etc,
but turning this into milter stuff i had no fun in.
You *could* use the dkimpy stuff, it *does* separate the milter
from "the normal thing", so -- from memory -- turning this into
something you can easily use should be doable.

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to