docker/pwgen/dkim-key.sh

9 lines
224 B
Bash
Raw Permalink Normal View History

2021-01-09 18:06:20 +00:00
#!/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"