23 lines
504 B
Plaintext
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');
|
|
|
|
}
|