Rename fail2ban syslog 'rainloop' to 'snappymail'

This commit is contained in:
djmaze 2020-09-30 14:31:12 +02:00
parent 0a95e2c6dc
commit 98c6fa0675
10 changed files with 21 additions and 21 deletions

View file

@ -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;

View file

@ -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();

View file

@ -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();