Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP-FPM] Fix dovecot auth fail on clean_sasl_log event #6061

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from

Conversation

FreddleSpl0it
Copy link
Collaborator

Contribution Guidelines

What does this PR include?

Short Description

In some cases, the sasl_log table can grow very large. The SQL event clean_sasl_log is scheduled to clean the sasl_log table daily. However, if the table has many rows, this process can cause deadlocks, which may result in failed Dovecot authentication attempts.

Sep  3 11:43:11 e2cac3ae951b dovecot: auth: Error: auth client 0 disconnected with 1 pending requests: EOF
Sep  3 11:43:52 e2cac3ae951b dovecot: auth: Error: auth-worker: Auth request was queued for 41 seconds, 0 left in queue (see auth_worker_max_count)

Affected Containers

  • PHP-FPM

Did you run tests?

What did you tested?

I inserted 200,000 rows into the sasl_log table and triggered the SQL event. During its processing, SMTP and IMAP logins failed, and Dovecot produced errors. To resolve this, I created a PHP script that runs as a cron job and clears the sasl_log table in batches. This approach allowed logins to continue while the table was being cleared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant