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

dovecot: added timeout option when sa-rules cannot be downloaded #6025

Merged
merged 2 commits into from
Aug 19, 2024

Conversation

DerLinkman
Copy link
Member

Contribution Guidelines

What does this PR include?

Improvement of SA-Rules Download upon Dovecot Start/Restart

Short Description

Issue #6018 described a circumstance when dovecot is restarted, that the sa-rules are not downloaded (definitely a bug on the host machine, as it should work flawlessly) and therefore dovecot is not started. As the sa-rules are not necessary for mailcow to operate, we can exclude this after 10 failed tries...

Affected Containers

  • dovecot
  • rspamd

Did you run tests?

What did you tested?

If tested the build of Dovecot (worked) and the normal startup (worked too)

I also tested the exclusion of the script by modifing the timeout times and modifiying the wrong url (simulating a network failure), after X tries he's skipping the sa-rule download like wanted.

What were the final results? (Awaited, got)

I've had to set the exit code to 0 instead of 1 as the dovecot process wouldn't started afterwards if not exited 0. That changed it worked!

@DerLinkman DerLinkman linked an issue Aug 19, 2024 that may be closed by this pull request
5 tasks
@DerLinkman DerLinkman merged commit cb50d08 into staging Aug 19, 2024
2 checks passed
@DerLinkman DerLinkman deleted the fix/6018 branch August 19, 2024 09:08
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.

Dovecot not starting anymore
1 participant