[fix] no '.' apparently in dkim config

This commit is contained in:
Laurent Peuch 2016-09-18 18:46:33 +02:00
parent 2c0c53d06f
commit 8ced0b390e

View file

@ -273,7 +273,7 @@ def domain_dns_conf(domain, ttl=None):
'(?=.*(;[\s]*|")p=(?P<p>[^";]+))'), dkim_content, re.M|re.S
)
if dkim:
result += '\n{host}. {ttl} IN TXT "v={v}; k={k}; p={p}"'.format(
result += '\n{host} {ttl} IN TXT "v={v}; k={k}; p={p}"'.format(
host='{0}.{1}'.format(dkim.group('host'), domain), ttl=ttl,
v=dkim.group('v'), k=dkim.group('k'), p=dkim.group('p')
)