mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
In between commit, updated matrix and optimized mailu
This commit is contained in:
24
roles/web-app-mailu/templates/ratelimit.conf.j2
Normal file
24
roles/web-app-mailu/templates/ratelimit.conf.j2
Normal file
@@ -0,0 +1,24 @@
|
||||
# AUTOGENERATED by Ansible – Rspamd ratelimits
|
||||
# Mount path in container: /overrides/ratelimit.conf (read-only)
|
||||
|
||||
rates {
|
||||
{# Optional global defaults for authenticated SMTP senders #}
|
||||
authenticated = {
|
||||
bucket = [{
|
||||
burst = {{ MAILU_RSPAMD_LIMITS_DEFAULTS.BURST | int }};
|
||||
rate = "{{ MAILU_RSPAMD_LIMITS_DEFAULTS.RATE }}";
|
||||
}];
|
||||
}
|
||||
|
||||
{# Per-user limits: require both .limits.rate and .limits.burst #}
|
||||
{% for uname, u in users.items() %}
|
||||
{% if (u.limits.rate | default(false) and u.limits.burst | default(false)) %}
|
||||
"user={{ u.email }}" = {
|
||||
bucket = [{
|
||||
burst = {{ u.limits.burst | int }};
|
||||
rate = "{{ u.limits.rate }}";
|
||||
}];
|
||||
};
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
}
|
Reference in New Issue
Block a user