Skip to content

Commit

Permalink
avoid creating duplicate mail records
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Jul 27, 2020
1 parent 0ee87e1 commit 0774ffe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plogical/dnsUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 0774ffe

Please sign in to comment.