Settings hot reloading - Part 4

This commit is contained in:
mdecimus
2024-03-26 18:40:41 +01:00
parent d8af9b4576
commit 170ff38d1f
120 changed files with 2286 additions and 2594 deletions

View File

@@ -45,9 +45,9 @@ linger = 1
tos = 1
[certificate."default"]
cert = "file://{CERT}"
private-key = "file://{PK}"
cert = "%{file:{CERT}}%"
private-key = "%{file:{PK}}%"
[certificate."other"]
cert = "file://{CERT}"
private-key = "file://{PK}"
cert = "%{file:{CERT}}%"
private-key = "%{file:{PK}}%"

View File

@@ -3,8 +3,10 @@ match = "remote_ip == '127.0.0.1'"
key = ["remote_ip", "authenticated_as"]
concurrency = 100
rate = "50/30s"
enable = true
[[throttle]]
key = "sender_domain"
concurrency = 10000
enable = true

View File

@@ -1,5 +1,5 @@
require ["variables", "extlists", "reject"];
if string :list "${env.helo_domain}" "local/invalid-ehlos" {
reject "551 5.1.1 Your domain '${env.helo_domain}' has been blacklisted.";
if eval "contains(['spammer.org', 'spammer.net'], env.helo_domain)" {
reject "551 5.1.1 Your domain '${env.helo_domain}' has been blocklisted.";
}