mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-02-27 01:13:11 +08:00
36 lines
1 KiB
TOML
36 lines
1 KiB
TOML
#############################################
|
|
# SMTP Sieve interpreter configuration
|
|
#############################################
|
|
|
|
[sieve.smtp]
|
|
from-name = "Automated Message"
|
|
from-addr = "no-reply@%{DEFAULT_DOMAIN}%"
|
|
return-path = ""
|
|
#hostname = "%{HOST}%"
|
|
no-capability-check = true
|
|
sign = ["rsa"]
|
|
|
|
[sieve.smtp.limits]
|
|
redirects = 3
|
|
out-messages = 5
|
|
received-headers = 50
|
|
cpu = 50000
|
|
nested-includes = 5
|
|
duplicate-expiry = "7d"
|
|
|
|
[sieve.smtp.scripts]
|
|
#connect = '''require ["variables", "extlists", "reject"];
|
|
# if string :list "${env.remote_ip}" "default/blocked-ips" {
|
|
# reject "Your IP '${env.remote_ip}' is not welcomed here.";
|
|
# }'''
|
|
|
|
#ehlo = '''require ["variables", "extlists", "reject"];
|
|
# if string :list "${env.helo_domain}" "default/blocked-domains" {
|
|
# reject "551 5.1.1 Your domain '${env.helo_domain}' has been blacklisted.";
|
|
# }'''
|
|
|
|
#mail = '''require ["variables", "envelope", "reject"];
|
|
# if envelope :localpart :is "from" "known_spammer" {
|
|
# reject "We do not accept SPAM.";
|
|
# }'''
|
|
|