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