diff --git a/mailcow.yml b/mailcow.yml index eb26525..60bb035 100644 --- a/mailcow.yml +++ b/mailcow.yml @@ -402,12 +402,12 @@ for list in $rbllist do - opts="$opts -s $list" + rblopts="$opts -s $list" done - # only run al 6:2Xh + # only run at 6:2Xh if date +%H:%M | egrep -q "^06:2" then - if ! rblcheck $opts -- {{inventory_hostname}} mail.{{inventory_hostname}} $(curl -s https://checkipv4.dedyn.io) $(curl -s https://checkipv6.dedyn.io) >${g_tmp}/rbloutput 2>&1 + if ! rblcheck $rblopts -- {{inventory_hostname}} mail.{{inventory_hostname}} $(curl -s https://checkipv4.dedyn.io) $(curl -s https://checkipv6.dedyn.io) >${g_tmp}/rbloutput 2>&1 then g_echo_error "$(grep -v ' not listed by ' ${g_tmp}/rbloutput)" fi