1 fe371fc9 2019-09-05 martijn .\" $OpenBSD$
3 fe371fc9 2019-09-05 martijn .\" Copyright (c) 2019 Martijn van Duren <martijn@openbsd.org>
5 fe371fc9 2019-09-05 martijn .\" Permission to use, copy, modify, and distribute this software for any
6 fe371fc9 2019-09-05 martijn .\" purpose with or without fee is hereby granted, provided that the above
7 fe371fc9 2019-09-05 martijn .\" copyright notice and this permission notice appear in all copies.
9 fe371fc9 2019-09-05 martijn .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 fe371fc9 2019-09-05 martijn .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 fe371fc9 2019-09-05 martijn .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 fe371fc9 2019-09-05 martijn .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 fe371fc9 2019-09-05 martijn .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 fe371fc9 2019-09-05 martijn .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 fe371fc9 2019-09-05 martijn .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 fe371fc9 2019-09-05 martijn .Dd $Mdocdate$
18 fe371fc9 2019-09-05 martijn .Dt FILTER-DKIMSIGN 8
21 fe371fc9 2019-09-05 martijn .Nm filter-dkimsign
22 fe371fc9 2019-09-05 martijn .Nd add dkim signature to messages
23 fe371fc9 2019-09-05 martijn .Sh SYNOPSIS
25 fe371fc9 2019-09-05 martijn .Op Fl tz
26 fe371fc9 2019-09-05 martijn .Op Fl a Ar algorithm
27 fe371fc9 2019-09-05 martijn .Op Fl c Ar canonicalization
28 fe371fc9 2019-09-05 martijn .Op Fl h Ar headers
29 fe371fc9 2019-09-05 martijn .Op Fl x Ar seconds
30 fe371fc9 2019-09-05 martijn .Fl d Ar domain
31 fe371fc9 2019-09-05 martijn .Fl k Ar file
32 fe371fc9 2019-09-05 martijn .Fl s Ar selector
33 fe371fc9 2019-09-05 martijn .Sh DESCRIPTION
35 fe371fc9 2019-09-05 martijn adds a dkim signature to the message.
36 fe371fc9 2019-09-05 martijn The following flags are supported:
37 fe371fc9 2019-09-05 martijn .Bl -tag -width Ds
38 fe371fc9 2019-09-05 martijn .It Fl a Ar algorithm
39 fe371fc9 2019-09-05 martijn The algorithm to use.
40 fe371fc9 2019-09-05 martijn This implementation only supports rsa cryptography.
41 fe371fc9 2019-09-05 martijn Only sha256 should be used for hashing, since other algorithms are most likely
42 fe371fc9 2019-09-05 martijn not supported by verifiers.
43 fe371fc9 2019-09-05 martijn Defaults to
44 fe371fc9 2019-09-05 martijn .Ar rsa-sha256 .
45 fe371fc9 2019-09-05 martijn .It Fl c Ar canonicalization
46 fe371fc9 2019-09-05 martijn The canonicalization algorithm used to sign the messge.
47 fe371fc9 2019-09-05 martijn Defaults to
48 fe371fc9 2019-09-05 martijn .Ar simple/simple .
49 fe371fc9 2019-09-05 martijn .It Fl d Ar domain
50 fe371fc9 2019-09-05 martijn The domain where the public key can be found.
51 fe371fc9 2019-09-05 martijn .It Fl h Ar headers
52 fe371fc9 2019-09-05 martijn The email headers which are included in the mail signature.
53 fe371fc9 2019-09-05 martijn Per RFC this option requires at least the from header to be included.
54 fe371fc9 2019-09-05 martijn The headers are specified by separating them with a colon.
55 fe371fc9 2019-09-05 martijn The default is
56 fe371fc9 2019-09-05 martijn from:reply-to:subject:date:to:cc:resent-date:resent-from:resent-to:resent-cc:in-reply-to:references:list-id:list-help:list-unsubscribe:list-subscribe:list-post:list-owner:list-archive .
57 fe371fc9 2019-09-05 martijn .It Fl k Ar file
59 fe371fc9 2019-09-05 martijn should point to a file containing the RSA private key to sign the messages.
60 fe371fc9 2019-09-05 martijn .It Fl s Ar selector
61 fe371fc9 2019-09-05 martijn The selector within the _domainkey subdomain of
62 fe371fc9 2019-09-05 martijn .Ar domain
63 fe371fc9 2019-09-05 martijn where the public key can be found.
65 fe371fc9 2019-09-05 martijn Add the time of signing to the dkim header.
66 fe371fc9 2019-09-05 martijn .It Fl x Ar seconds
67 fe371fc9 2019-09-05 martijn Add the amount of
68 fe371fc9 2019-09-05 martijn .Ar seconds
69 fe371fc9 2019-09-05 martijn the signature is valid to the dkim header.
71 fe371fc9 2019-09-05 martijn Add the mail headers used in the dkim signature to the dkim header.
72 fe371fc9 2019-09-05 martijn If a second
74 fe371fc9 2019-09-05 martijn is specified all headers will be included in the dkim header.
75 fe371fc9 2019-09-05 martijn Useful for debugging purposes.
77 fe371fc9 2019-09-05 martijn .Sh SEE ALSO
78 fe371fc9 2019-09-05 martijn .Xr smtpd 8