parent
d941c985ae
commit
97d352dda1
8 changed files with 50 additions and 37 deletions
@ -1,7 +1,7 @@ |
||||
{ |
||||
our $action = "action = smeserver[port=\"<port>\", protocol=<protocol>, bantime=<bantime>]"; |
||||
if (($fail2ban{'Mail'} || 'disabled') eq 'enabled'){ |
||||
my $dest = $fail2ban{'MailRecipient'} || 'root'; |
||||
$action .= " sendmail[name=<name>, dest=$dest]\n"; |
||||
} |
||||
|
||||
our $mail = $fail2ban{'Mail'} || 'disabled'; |
||||
our $maildest = $fail2ban{'MailRecipient'} || 'root'; |
||||
return ''; |
||||
|
||||
} |
||||
|
Loading…
Reference in new issue