mailman-check: also make sure we avoid backscatter spam
[ansible.git] / roles / email / files / mailman-check
index 0a5d9deba46979faf8dc035ecdf27d3e2c939b17..5894a1e6805814f6b2ea27ec1943cadf152a67b7 100755 (executable)
@@ -10,5 +10,9 @@ if not ((mlist.dmarc_moderation_action in (1, 2) and mlist.dmarc_quarantine_mode
     print "List",mlist.real_name,"by",(', '.join(mlist.owner)),"is not configured to deal with DMARC."
 if mlist.reply_goes_to_list != 0 and not mlist.first_strip_reply_to:
     print "List",mlist.real_name,"by",(', '.join(mlist.owner)),"provides an inconsistent Reply-To treatment."
     print "List",mlist.real_name,"by",(', '.join(mlist.owner)),"is not configured to deal with DMARC."
 if mlist.reply_goes_to_list != 0 and not mlist.first_strip_reply_to:
     print "List",mlist.real_name,"by",(', '.join(mlist.owner)),"provides an inconsistent Reply-To treatment."
+if mlist.generic_nonmember_action == 2:
+    print "List",mlist.real_name,"by",(', '.join(mlist.owner)),"is prone to backscatter spam due to reject notifications"
+if mlist.generic_nonmember_action == 1 and mlist.respond_to_post_requests:
+    print "List",mlist.real_name,"by",(', '.join(mlist.owner)),"is prone to backscatter spam due to hold notifications"
 EOF
 done
 EOF
 done