[Dovecot] Drop logs
parent
ff53dd58fb
commit
4715245697
|
@ -115,7 +115,6 @@ EOF
|
||||||
cat <<EOF > /var/lib/dovecot/app-passdb.lua
|
cat <<EOF > /var/lib/dovecot/app-passdb.lua
|
||||||
function auth_password_verify(req, pass)
|
function auth_password_verify(req, pass)
|
||||||
if req.domain == nil then
|
if req.domain == nil then
|
||||||
req.log_info(req, "Domain cannot be empty")
|
|
||||||
return dovecot.auth.PASSDB_RESULT_USER_UNKNOWN, "No such user"
|
return dovecot.auth.PASSDB_RESULT_USER_UNKNOWN, "No such user"
|
||||||
end
|
end
|
||||||
local cur,errorString = con:execute(string.format([[SELECT mailbox, password FROM app_passwd
|
local cur,errorString = con:execute(string.format([[SELECT mailbox, password FROM app_passwd
|
||||||
|
@ -125,7 +124,6 @@ function auth_password_verify(req, pass)
|
||||||
local row = cur:fetch ({}, "a")
|
local row = cur:fetch ({}, "a")
|
||||||
while row do
|
while row do
|
||||||
if req.password_verify(req, row.password, pass) == 1 then
|
if req.password_verify(req, row.password, pass) == 1 then
|
||||||
req.log_info(req, string.format("User %s logged in with app password", row.mailbox))
|
|
||||||
cur:close()
|
cur:close()
|
||||||
return dovecot.auth.PASSDB_RESULT_OK, "password=" .. pass
|
return dovecot.auth.PASSDB_RESULT_OK, "password=" .. pass
|
||||||
end
|
end
|
||||||
|
|
|
@ -172,7 +172,7 @@ services:
|
||||||
- sogo
|
- sogo
|
||||||
|
|
||||||
dovecot-mailcow:
|
dovecot-mailcow:
|
||||||
image: mailcow/dovecot:1.101
|
image: mailcow/dovecot:1.102
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysql-mailcow
|
- mysql-mailcow
|
||||||
dns:
|
dns:
|
||||||
|
|
Loading…
Reference in New Issue