FILTER-DKIMSIGN(8)

NAME
filter-dkimsign - add dkim signature to messages

SYNOPSIS
filter-dkimsign [-tz] [-a algorithm] [-c canonicalization] [-h headers] [-x seconds] -d domain -k file -s selector

DESCRIPTION
filter-dkimsign adds a dkim signature to the message. The following flags are supported:

-a algorithm
    The algorithm to use. This implementation only supports rsa cryptography. Only sha256 should be used for hashing, since other algorithms are most likely not supported by verifiers. Defaults to rsa-sha256.

-c canonicalization
    The canonicalization algorithm used to sign the messge. Defaults to simple/simple.

-d domain
    The domain where the public key can be found. This option can be specified multiple times to select the best domain during signing. If specified multiple times it looks at the domain component of the first mailbox in the from-header and tries to find a match. If no exact match can be found it looks for the closest parent domain. If no matches can be the first domain specified will be used.

-h headers
    The email headers which are included in the mail signature. Per RFC this option requires at least the from header to be included. The headers are specified by separating them with a colon. The default is 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 .

-k file
    file should point to a file containing the RSA private key to sign the messages.

-s selector
    The selector within the _domainkey subdomain of domain where the public key can be found.

-t  Add the time of signing to the dkim header.

-x seconds
    Add the amount of seconds the signature is valid to the dkim header.

-z  Add the mail headers used in the dkim signature to the dkim header. If a second -z is specified all headers will be included in the dkim header. Useful for debugging purposes.

SEE ALSO
smtpd(8)