mailcow.yml aktualisiert

This commit is contained in:
olli 2023-09-30 08:23:14 +02:00
parent bc7c1bb9e3
commit 593e5bdef7

View File

@ -402,12 +402,12 @@
for list in $rbllist for list in $rbllist
do do
opts="$opts -s $list" rblopts="$opts -s $list"
done done
# only run al 6:2Xh # only run at 6:2Xh
if date +%H:%M | egrep -q "^06:2" if date +%H:%M | egrep -q "^06:2"
then 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 then
g_echo_error "$(grep -v ' not listed by ' ${g_tmp}/rbloutput)" g_echo_error "$(grep -v ' not listed by ' ${g_tmp}/rbloutput)"
fi fi