|
|
@ -1,5 +1,5 @@ |
|
|
|
{ |
|
|
|
{ |
|
|
|
our $action = "action = smeserver[port=\"<port>\", protocol=<protocol>, bantime=<bantime>]"; |
|
|
|
our $action = "action = smeserver[port=\"<port>\", protocol=<protocol>, bantime=<bantime>]"; |
|
|
|
if (($fail2ban{'Mail'} || 'disabled') eq 'enabled'){ |
|
|
|
if (($fail2ban{'Mail'} || 'disabled') eq 'enabled'){ |
|
|
|
my $dest = $fail2ban{'MailRecipient'} || 'root'; |
|
|
|
my $dest = $fail2ban{'MailRecipient'} || 'root'; |
|
|
|
$action .= " sendmail[name=<name>, dest=$dest]\n"; |
|
|
|
$action .= " sendmail[name=<name>, dest=$dest]\n"; |
|
|
|