From 11c20250b973dfd60a5fb71addcf05fce566a1de Mon Sep 17 00:00:00 2001 From: Gilles Grandou Date: Mon, 16 Dec 2019 18:40:41 +0100 Subject: [PATCH] MailIgnore section can contains simple hostnames it's no longer needed to put host.subdomain --- dyndomain | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'] ]