First commit

This commit is contained in:
Myve 2024-08-09 12:50:33 +00:00
commit 7b58f82156
21 changed files with 1951 additions and 0 deletions

10
build/run/bin/list-dkim Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
for domain in /etc/opendkim/keys/*/default.txt
do
# In your DNS manager, create a TXT record, enter default._domainkey in the name field
echo -e "\n\e[1;34mUpdate DKIM TXT on DNS registrar and press any key to continue\e[5m...\e[0m"
echo -e "\e[3m# Use default._domainkey in the host field"
echo -e "# Check with 'opendkim-testkey -d ${domain} -s default'"
echo -e "# Or visit https://www.dmarcanalyzer.com/dkim/dkim-checker/\e[0m"
cat ${domain} | sed 's/.*( //' | sed 's/ ).*//' | sed 's/"//g' | sed 's/^[ \t]*//g' | sed ':a;N;$!ba;s/\n//g'
done