Test if DKIM generated file exist

This commit is contained in:
Alan Garcia 2014-01-16 10:18:51 +00:00
parent 749996bfbf
commit 9210deb971
1 changed files with 4 additions and 1 deletions

View File

@ -164,7 +164,10 @@ dns_regenerate() {
grep -q "^$domain alternc._domainkey.$domain\$" /etc/opendkim/SigningTable || echo "$domain alternc._domainkey.$domain" >> /etc/opendkim/SigningTable
fi
# we add alternc._domainkey with the proper key
file="$(echo -e "$file" ; cat "/etc/opendkim/keys/$domain/alternc.txt")"
if [ -r "/etc/opendkim/keys/$domain/alternc.txt" ] ; then
file="$(echo -e "$file" ; cat "/etc/opendkim/keys/$domain/alternc.txt")"
fi
fi
##### OpenDKIM signature management - END