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 2bbd253
Showing 1 changed file with 9 additions and 0 deletions.
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 2bbd253

Please sign in to comment.