mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
Implement #2213: slow transports
This commit is contained in:
parent
9a99f4253b
commit
7166e7d2b2
@ -80,7 +80,7 @@ virtual_mailbox_maps = ${podop}mailbox
|
||||
|
||||
# Mails are transported if required, then forwarded to Dovecot for delivery
|
||||
relay_domains = ${podop}transport
|
||||
transport_maps = ${podop}transport
|
||||
transport_maps = lmdb:/etc/postfix/transport.map, ${podop}transport
|
||||
virtual_transport = lmtp:inet:{{ LMTP_ADDRESS }}
|
||||
|
||||
# Sender and recipient canonical maps, mostly for SRS
|
||||
|
@ -15,6 +15,22 @@ outclean unix n - n - 0 cleanup
|
||||
-o header_checks=pcre:/etc/postfix/outclean_header_filter.cf
|
||||
-o nested_header_checks=
|
||||
|
||||
# Polite policy
|
||||
polite unix - - n - - smtp
|
||||
-o syslog_name=postfix-polite
|
||||
-o polite_destination_concurrency_limit=3
|
||||
-o polite_destination_rate_delay=0
|
||||
-o polite_destination_recipient_limit=20
|
||||
-o polite_destination_concurrency_failed_cohort_limit=10
|
||||
|
||||
# Turtle policy
|
||||
turtle unix - - n - - smtp
|
||||
-o syslog_name=postfix-turtle
|
||||
-o turtle_destination_concurrency_limit=1
|
||||
-o turtle_destination_rate_delay=1
|
||||
-o turtle_destination_recipient_limit=5
|
||||
-o turtle_destination_concurrency_failed_cohort_limit=10
|
||||
|
||||
# Internal postfix services
|
||||
pickup unix n - n 60 1 pickup
|
||||
cleanup unix n - n - 0 cleanup
|
||||
|
@ -74,9 +74,10 @@ if os.path.exists("/overrides/mta-sts-daemon.yml"):
|
||||
else:
|
||||
conf.jinja("/conf/mta-sts-daemon.yml", os.environ, "/etc/mta-sts-daemon.yml")
|
||||
|
||||
if not os.path.exists("/etc/postfix/tls_policy.map.lmdb"):
|
||||
open("/etc/postfix/tls_policy.map", "a").close()
|
||||
os.system("postmap /etc/postfix/tls_policy.map")
|
||||
for policy in ['tls_policy', 'transport']:
|
||||
if not os.path.exists(f'/etc/postfix/{policy}.map.lmdb'):
|
||||
open(f'/etc/postfix/{policy}.map', 'a').close()
|
||||
os.system(f'postmap /etc/postfix/{policy}.map')
|
||||
|
||||
if "RELAYUSER" in os.environ:
|
||||
path = "/etc/postfix/sasl_passwd"
|
||||
|
Loading…
Reference in New Issue
Block a user