Skip to content

Commit

Permalink
* Fri Jun 09 2017 Stephane de Labrusse <stephdl@de-labrusse.fr> 0.1.1…
Browse files Browse the repository at this point in the history
…4-1.ns7

- Test if the dovecot log exists before to start the dovecot/sieve jails
  • Loading branch information
stephdl committed Jun 9, 2017
1 parent 4f1be6b commit 5d9746a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion nethserver-fail2ban.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: NethServer configuration for crontab
%define name nethserver-fail2ban
%define version 0.1.13
%define version 0.1.14
%define release 1
Name: %{name}
Version: %{version}
Expand Down Expand Up @@ -56,6 +56,9 @@ rm -rf $RPM_BUILD_ROOT
%dir %{_nseventsdir}/%{name}-update

%changelog
* Fri Jun 09 2017 Stephane de Labrusse <stephdl@de-labrusse.fr> 0.1.14-1.ns7
- Test if the dovecot log exists before to start the dovecot/sieve jails

* Wed May 03 2017 Stephane de Labrusse <stephdl@de-labrusse.fr> 0.1.13-1-ns7
- postfix-ddos jail updated

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
my $dovecot = $dovecot{status} || 'disabled';
return "\n#dovecot not used on this server" unless ($dovecot eq 'enabled');
return "\n#dovecot not used on this server" unless (($dovecot eq 'enabled') && (-f '/var/log/imap'));

my $Dovecot_status = $fail2ban{Dovecot_status} || 'true';
my $TCPPorts = $dovecot{TCPPorts} || '110,143,4190,993,995';
Expand Down
2 changes: 1 addition & 1 deletion root/etc/e-smith/templates/etc/fail2ban/jail.local/10sieve
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
my $sieve = $dovecot{status} || 'disabled';
return "\#sieve not used on this server" unless ($sieve eq 'enabled');
return "\n#sieve not used on this server" unless (($dovecot eq 'enabled') && (-f '/var/log/imap'));

my $Sieve_status = $fail2ban{Sieve_status} || 'true';
my $TCPPorts = $postfix{TCPPorts} || '25,465,587';
Expand Down

0 comments on commit 5d9746a

Please sign in to comment.