nagios-plugins-standard was renamed to monitoring-plugins-standard in 2014
[mirror/dsa-puppet.git] / modules / exim / manifests / mx.pp
index c30bd4c..f1ea5bb 100644 (file)
@@ -1,6 +1,7 @@
 class exim::mx inherits exim {
        include clamav
        include postgrey
+       include fail2ban::exim
 
        file { '/etc/exim4/ccTLD.txt':
                source => 'puppet:///modules/exim/common/ccTLD.txt',
@@ -13,19 +14,6 @@ class exim::mx inherits exim {
                notify  => Service['exim4'],
        }
 
-       # 20181010 many connections:
-       #  188.165.219.27
-       #  125.72.232.*
-       #  140.224.61.*
-       #  117.24.36.0/22
-       #  115.235.157.28
-       #  113.110.47.180
-       #  121.226.141.*
-       @ferm::rule { 'dsa-mail-abusers':
-               prio  => "000",
-               rule  => "saddr (188.165.219.27 125.72.232.0/24 140.224.61.0/24 117.24.38.0/22 115.235.157.28 113.110.47.180 121.226.141.0/24) DROP",
-       }
-
        # MXs used as smarthosts
        @ferm::rule { 'dsa-exim-submission':
                description => 'Allow SMTP',
@@ -43,7 +31,7 @@ class exim::mx inherits exim {
                port => 587,
                hostname => "$::fqdn",
        }
-       package { 'nagios-plugins-standard':
+       package { 'monitoring-plugins-standard':
                ensure => installed,
        }