mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-08-04 21:50:40 +02:00
Remove \n from dkim txt output
Some DNS providers (like cloudflare) do not allow in dkim txt record \n char. Fix is removing new line symbols (\n).
This commit is contained in:
@@ -67,7 +67,7 @@ is_object_valid 'mail' 'DOMAIN' "$domain"
|
||||
|
||||
# Parsing domain keys
|
||||
if [ -e "$USER_DATA/mail/$domain.pub" ]; then
|
||||
pub=$(cat $USER_DATA/mail/$domain.pub |grep -v "KEY-----")
|
||||
pub=$(cat $USER_DATA/mail/$domain.pub |grep -v "KEY-----" |tr -d "\n\r")
|
||||
pub=$(echo "$pub" |sed ':a;N;$!ba;s/\n/\\n/g')
|
||||
else
|
||||
pub="DKIM-SUPPORT-IS-NOT-ACTIVATED"
|
||||
|
||||
Reference in New Issue
Block a user