docker/pwgen/dkim-key.sh
2021-01-09 21:06:20 +03:00

9 lines
224 B
Bash

#!/usr/bin/bash
/usr/bin/opendkim-genkey -d $1 2>/dev/null
TXT=$(cat default.txt |base64 -w 0)
PRIVATE=$(cat default.private |base64 -w 0)
echo "dkim:
- name: default
default.txt: $TXT
default.private: $PRIVATE"