smeserver-fail2ban/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service35SOGo
2013-05-03 00:05:59 +02:00

23 lines
504 B
Plaintext

{
my $status = $sogod{'status'} || 'disabled';
return "" if ($status ne 'enabled');
my @ports = ();
push @ports, (${'httpd-e-smith'}{'TCPPort'} || '80');
push @ports, ($modSSL{'TCPPort'} || '443');
my $port = join (",", @ports);
$OUT .=<<"EOF";
[sogo]
enabled = true
filter = sogo
logpath = /var/log/sogo/sogo.log
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " smeserver-sendmail[name=\"SOGo\",dest=$maildest]\n"
if ($mail eq 'enabled');
}