diff options
-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 |