9 lines
224 B
Bash
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"
|