diff --git a/dyndomain b/dyndomain index b3d71f9..ada442a 100755 --- a/dyndomain +++ b/dyndomain @@ -33,7 +33,8 @@ def load_conf(): zone_subdomain = conf['Zone']['subdomain'].lower() mail_from = conf['Mail']['from'] mail_to = conf['Mail']['to'] - mail_ignore_list = [ host for host in conf['MailIgnore'] ] + mail_ignore_list = [ host.lower() for host in conf['MailIgnore'] ] + mail_ignore_list = [ '.'.join([h, zone_subdomain]) if not h.endswith('.'+zone_subdomain) else h for h in mail_ignore_list ] hosts_list = [ host.lower() for host in conf['Hosts'] ] hosts_ipv4_nat_list = [ host.lower() for host in conf['NatHosts'] ]