diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2019-01-24 16:09:34 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2019-01-24 16:09:34 +0100 |
commit | 2fe2e3c32178824afcb8df04d98821c9e684d2b7 (patch) | |
tree | 471796dc071dad9f6d51ecda805dab1304703b68 /sigexec.com-gen-dkim-key.sh | |
parent | 6dadce6fb8fb248de7d5563b10539f0aee358329 (diff) |
Add generation of DKIM key script for sigexec.com
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'sigexec.com-gen-dkim-key.sh')
-rwxr-xr-x | sigexec.com-gen-dkim-key.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sigexec.com-gen-dkim-key.sh b/sigexec.com-gen-dkim-key.sh new file mode 100755 index 0000000..d9aa9e1 --- /dev/null +++ b/sigexec.com-gen-dkim-key.sh @@ -0,0 +1,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 |