Test if DKIM generated file exist
This commit is contained in:
parent
749996bfbf
commit
9210deb971
|
@ -164,8 +164,11 @@ dns_regenerate() {
|
||||||
grep -q "^$domain alternc._domainkey.$domain\$" /etc/opendkim/SigningTable || echo "$domain alternc._domainkey.$domain" >> /etc/opendkim/SigningTable
|
grep -q "^$domain alternc._domainkey.$domain\$" /etc/opendkim/SigningTable || echo "$domain alternc._domainkey.$domain" >> /etc/opendkim/SigningTable
|
||||||
fi
|
fi
|
||||||
# we add alternc._domainkey with the proper key
|
# we add alternc._domainkey with the proper key
|
||||||
|
|
||||||
|
if [ -r "/etc/opendkim/keys/$domain/alternc.txt" ] ; then
|
||||||
file="$(echo -e "$file" ; cat "/etc/opendkim/keys/$domain/alternc.txt")"
|
file="$(echo -e "$file" ; cat "/etc/opendkim/keys/$domain/alternc.txt")"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
##### OpenDKIM signature management - END
|
##### OpenDKIM signature management - END
|
||||||
|
|
||||||
# Replace the vars by their values
|
# Replace the vars by their values
|
||||||
|
|
Loading…
Reference in New Issue