summaryrefslogtreecommitdiff
path: root/sigexec.com-gen-dkim-key.sh
blob: d9aa9e1051c92405dea4f014b2eb79ee66fe025e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if [ $# -lt 1 ]; then
    >&2 echo "Usage: $0 selector"
    exit 1
fi

selector=$1

mkdir --parents /etc/dkimkeys/sigexec.com/
opendkim-genkey \
    -D /etc/dkimkeys/sigexec.com/ \
    -d sigexec.com \
    -s "$selector" \
    -r