Fix maxretry and action order in qpsmtpd jail conf

tags/0.0.1
Daniel Berteaud 12 years ago
parent 57b7e17789
commit 2d41499e2e
  1. 2
      root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service20qpsmtpd

@ -16,8 +16,8 @@ $OUT .=<<"EOF";
enabled = true enabled = true
filter = qpsmtpd filter = qpsmtpd
logpath = /var/log/*qpsmtpd/current logpath = /var/log/*qpsmtpd/current
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
maxretry = $max maxretry = $max
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF EOF
$OUT .= " smeserver-sendmail[name=\"Qpsmtpd\",dest=$maildest]\n" $OUT .= " smeserver-sendmail[name=\"Qpsmtpd\",dest=$maildest]\n"

Loading…
Cancel
Save