From f1fc6301ece0a76012675813ef484f67619e93d4 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Mon, 1 Jun 2020 20:03:37 +0100
Subject: [PATCH] Make list of lowpri domains configurable

---
 roles/mail/templates/postfix-out/transport.pcre | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/roles/mail/templates/postfix-out/transport.pcre b/roles/mail/templates/postfix-out/transport.pcre
index fc96b401..883a6e66 100644
--- a/roles/mail/templates/postfix-out/transport.pcre
+++ b/roles/mail/templates/postfix-out/transport.pcre
@@ -1,4 +1,6 @@
 # Send high-volume, high-spam traffic onto the lower-priority
 # smtp transport.
 /(yahoo|hotmail|live)(\.[a-z]{2,3}){1,2}$/ smtp-lowpri:
-/tiscali\.it$/ smtp-lowpri:
+{% for pattern in postfix_low_priority_domains | default([]) %}
+/{{ pattern }}/ smtp-lowpri:
+{% endfor %}
-- 
GitLab