From 43fb65050db91b19cf8dd94e9b56fcd7b3843c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xe=CC=81fir=20Destiny?= Date: Fri, 7 Oct 2016 19:50:45 +0200 Subject: [PATCH] forgot the showdns --- commands/exim_showdns.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 commands/exim_showdns.sh diff --git a/commands/exim_showdns.sh b/commands/exim_showdns.sh new file mode 100644 index 0000000..8546707 --- /dev/null +++ b/commands/exim_showdns.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +DNS=$(openssl rsa -in /etc/exim4/dkim.key -pubout) +DNS=$(echo ${DNS} | sed "s/ //g" | sed "s/.*Y-----\(.*\)-----E.*/\1/g") +echo -e '\t\t10800 IN MX 10 ' +echo -e '\t\t10800 IN TXT "v=spf1 a -all"' +echo -e '_domainkey\t10800 IN TXT "o=~; r=postmaster@"' +echo -e "x._domainkey\t10800 IN TXT \"v=DKIM1; k=rsa; p=${DNS}\"" +echo -e '_dmarc\t\t10800 IN TXT "v=DMARC1; p=quarantine"'