Adding IP address to logs for 535 LOGIN errors, to use with fail2ban (#301)
This commit is contained in:
parent
3d40ea7280
commit
dc7ac3c696
@ -76,7 +76,7 @@ sub SASL {
|
||||
else {
|
||||
$msg =
|
||||
uc($mechanism)
|
||||
. " authentication failed for $user"
|
||||
. " authentication failed for $user from $ENV{TCPREMOTEIP}"
|
||||
. ($msg ? " - $msg" : '');
|
||||
$session->respond(535, $msg);
|
||||
$session->log(LOGDEBUG, $msg); # already logged by $session->respond
|
||||
|
Loading…
Reference in New Issue
Block a user