mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Rename fail2ban syslog 'rainloop' to 'snappymail'
This commit is contained in:
parent
0a95e2c6dc
commit
98c6fa0675
10 changed files with 21 additions and 21 deletions
|
|
@ -46,7 +46,7 @@ class Syslog extends \MailSo\Log\Driver
|
|||
$mDesc = \implode($this->sNewLine, $mDesc);
|
||||
}
|
||||
|
||||
\openlog('rainloop', LOG_ODELAY, LOG_USER);
|
||||
\openlog('snappymail', LOG_ODELAY, LOG_USER);
|
||||
$result = \syslog($this->iLogLevel, $mDesc);
|
||||
\closelog();
|
||||
return $result;
|
||||
|
|
|
|||
|
|
@ -958,7 +958,7 @@ class Actions
|
|||
{
|
||||
$this->LoggerAuth()->Write($this->compileLogParams($sLine, $oAccount, false, $aAdditionalParams));
|
||||
}
|
||||
if ($this->Config()->Get('logs', 'auth_logging', false) && \openlog('rainloop', 0, \LOG_AUTHPRIV))
|
||||
if ($this->Config()->Get('logs', 'auth_logging', false) && \openlog('snappymail', 0, \LOG_AUTHPRIV))
|
||||
{
|
||||
\syslog(\LOG_ERR, $this->compileLogParams('Auth failed: ip={request:ip} user={imap:login}', $oAccount, false, $aAdditionalParams));
|
||||
\closelog();
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ trait Admin
|
|||
$this->LoggerAuthHelper(null, $this->getAdditionalLogParamsByUserLogin($sLogin, true));
|
||||
if ($this->Config()->Get('logs', 'auth_logging', false)
|
||||
&& $this->Config()->Get('security', 'allow_admin_panel', true)
|
||||
&& \openlog('rainloop', 0, \LOG_AUTHPRIV))
|
||||
&& \openlog('snappymail', 0, \LOG_AUTHPRIV))
|
||||
{
|
||||
\syslog(\LOG_ERR, $this->compileLogParams('Admin Auth failed: ip={request:ip} user='.$sLogin));
|
||||
\closelog();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue