Skip to content

Commit

Permalink
dovecot: disable anvil authentication penalty
Browse files Browse the repository at this point in the history
fix #441
  • Loading branch information
missytake committed Oct 30, 2024
1 parent 3098afb commit 87c124e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
- add guide to migrate chatmail to a new server
([#429](https://github.com/deltachat/chatmail/pull/429))

- disable anvil authentication penalty
([#414](https://github.com/deltachat/chatmail/pull/444)

- increase `request_queue_size` for UNIX sockets to 1000.
([#437](https://github.com/deltachat/chatmail/pull/437))

Expand Down
9 changes: 9 additions & 0 deletions cmdeploy/src/cmdeploy/dovecot/dovecot.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ service imap-login {
process_min_avail = 10
}

service anvil {
# We are disabling anvil penalty on failed login attempts
# because it can only detect brute forcing by IP address
# not by username. As the correct IP address is not handed
# to dovecot anyway, it is more of hindrance than of use.
# See <https://www.dovecot.org/list/dovecot/2012-May/135485.html> for details.
unix_listener anvil-auth-penalty { mode = 0 }
}

ssl = required
ssl_cert = </var/lib/acme/live/{{ config.mail_domain }}/fullchain
ssl_key = </var/lib/acme/live/{{ config.mail_domain }}/privkey
Expand Down

0 comments on commit 87c124e

Please sign in to comment.