From 5e358594af7bb07d8b6fbdd5e1cdb80f27e927ab Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 2 May 2013 03:58:12 +0200 Subject: [PATCH] Fix imap jail syntax --- root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot index 2fa1e96..fe23700 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service15dovecot @@ -4,9 +4,9 @@ my $status = $dovecot{'status'} || 'enabled'; return "" if ($status ne 'enabled'); my @ports = (); push @ports, ($imap{'TCPPort'} || '143') - if (($imap{status'} || 'disabled') eq 'enabled'); + if (($imap{'status'} || 'disabled') eq 'enabled'); push @ports, ($imaps{'TCPPort'} || '993') - if (($imaps{status'} || 'disabled') eq 'enabled'); + if (($imaps{'status'} || 'disabled') eq 'enabled'); my $port = join (",", @ports); $OUT .=<<"EOF";