mirror of
https://github.com/Mailu/Mailu.git
synced 2025-02-05 13:05:02 +02:00
Set default of AUTH_RATELIMIT_SUBNET to False. Increase default AUTH_RATELIMIT value.
This commit is contained in:
parent
bfb2665d58
commit
588904078e
@ -34,8 +34,8 @@ DEFAULT_CONFIG = {
|
|||||||
'POSTMASTER': 'postmaster',
|
'POSTMASTER': 'postmaster',
|
||||||
'TLS_FLAVOR': 'cert',
|
'TLS_FLAVOR': 'cert',
|
||||||
'INBOUND_TLS_ENFORCE': False,
|
'INBOUND_TLS_ENFORCE': False,
|
||||||
'AUTH_RATELIMIT': '10/minute;1000/hour',
|
'AUTH_RATELIMIT': '1000/minute;10000/hour',
|
||||||
'AUTH_RATELIMIT_SUBNET': True,
|
'AUTH_RATELIMIT_SUBNET': False,
|
||||||
'DISABLE_STATISTICS': False,
|
'DISABLE_STATISTICS': False,
|
||||||
# Mail settings
|
# Mail settings
|
||||||
'DMARC_RUA': None,
|
'DMARC_RUA': None,
|
||||||
|
@ -41,7 +41,7 @@ The ``AUTH_RATELIMIT`` holds a security setting for fighting attackers that
|
|||||||
try to guess user passwords. The value is the limit of failed authentication attempts
|
try to guess user passwords. The value is the limit of failed authentication attempts
|
||||||
that a single IP address can perform against IMAP, POP and SMTP authentication endpoints.
|
that a single IP address can perform against IMAP, POP and SMTP authentication endpoints.
|
||||||
|
|
||||||
If ``AUTH_RATELIMIT_SUBNET`` is ``True`` (which is the default), the ``AUTH_RATELIMIT``
|
If ``AUTH_RATELIMIT_SUBNET`` is ``True`` (default: False), the ``AUTH_RATELIMIT``
|
||||||
rules does also apply to auth requests coming from ``SUBNET``, especially for the webmail.
|
rules does also apply to auth requests coming from ``SUBNET``, especially for the webmail.
|
||||||
If you disable this, ensure that the rate limit on the webmail is enforced in a different
|
If you disable this, ensure that the rate limit on the webmail is enforced in a different
|
||||||
way (e.g. roundcube plug-in), otherwise an attacker can simply bypass the limit using webmail.
|
way (e.g. roundcube plug-in), otherwise an attacker can simply bypass the limit using webmail.
|
||||||
|
@ -51,7 +51,7 @@ Or in plain english: if receivers start to classify your mail as spam, this post
|
|||||||
<label>Authentication rate limit (per source IP address)</label>
|
<label>Authentication rate limit (per source IP address)</label>
|
||||||
<!-- Validates number input only -->
|
<!-- Validates number input only -->
|
||||||
<p><input class="form-control" style="width: 7%; display: inline;" type="number" name="auth_ratelimit_pm"
|
<p><input class="form-control" style="width: 7%; display: inline;" type="number" name="auth_ratelimit_pm"
|
||||||
value="10" required > / minute
|
value="10000" required > / minute
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
1
towncrier/newsfragments/1867.feature
Normal file
1
towncrier/newsfragments/1867.feature
Normal file
@ -0,0 +1 @@
|
|||||||
|
Changed default value of AUTH_RATELIMIT_SUBNET to false. Increased default value of the rate limit in setup utility (AUTH_RATELIMIT) to a higher value.
|
Loading…
x
Reference in New Issue
Block a user