Skip to content
Permalink
Browse files
avoid creating duplicate mail records
  • Loading branch information
usmannasir committed Jul 27, 2020
1 parent 0ee87e1 commit 0774ffea96c9e27e4d2f55bcbbc777ac01307b6d
Showing 1 changed file with 2 additions and 1 deletion.
@@ -441,7 +441,8 @@ def dnsTemplate(domain, admin):

## Mail Record

DNS.createDNSRecord(zone, 'mail.' + actualSubDomain, "A", ipAddress, 0, 3600)
if ('mail.%s' % (actualSubDomain)).find('mail.mail') == -1:
DNS.createDNSRecord(zone, 'mail.' + actualSubDomain, "A", ipAddress, 0, 3600)

# CNAME Records.

0 comments on commit 0774ffe

Please sign in to comment.