Page MenuHomeDevCentral

get-dkim-dns-entries.sh
No OneTemporary

get-dkim-dns-entries.sh

#!/bin/sh
# -------------------------------------------------------------
# Nasqueron mail services
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Created: 2017-01-14
# License: Trivial work, not eligible to copyright
# Source file: roles/mailserver/dkim/files/bin/get-dkim-dns-entries.sh
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
# Parses arguments
if [ $# -eq 0 ]
then
echo "Usage: $(basename "$0") <domain>"
exit 1
fi
DOMAIN=$1
DIR=/etc/opendkim/keys/$DOMAIN
if [ ! -d "$DIR" ]
then
echo "Directory not found: $DIR"
exit 2
fi
for f in "$DIR"/*.txt
do
get-dkim-dns-entry "$f"
done

File Metadata

Mime Type
text/x-shellscript
Expires
Sun, Oct 11, 21:29 (15 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4091324
Default Alt Text
get-dkim-dns-entries.sh (930 B)

Event Timeline