From 012fda3ba9c05048a89efe3cdc64d57028f137cd Mon Sep 17 00:00:00 2001
From: Jean-Philippe Pialasse <jpp@koozali.org>
Date: Tue, 24 Sep 2024 22:29:24 -0400
Subject: [PATCH] * Thu Apr 25 2024 Jean-Philippe Pialasse <jpp@koozali.org>
 11.0.0-8.sme - move qmail template from qpsmtpd [SME: 9492]  
 badrcptto,badmailfrom,rcpthosts are for qmail-smtpd, they were used by
 qpsmtpd   as a direct remplacement, some file override them now, moving to
 qmail   alternative would be to drop them as long as qpsmptd is used in front

---
 createlinks          | 50 ++++++++++++++++++++++----------------------
 smeserver-qmail.spec |  4 ++--
 2 files changed, 27 insertions(+), 27 deletions(-)

diff --git a/createlinks b/createlinks
index a447a07..1e62ef2 100755
--- a/createlinks
+++ b/createlinks
@@ -6,7 +6,7 @@ use File::Path;
 
 # email-conf - console-save, bootstrap-console-save, domain-create, domain-delete,
 # ip-change, email-update, host-create, host-delete, host-modify, post-upgrade
-
+# rcpthosts template was in smeserver qpsmtpd, and not used if qpsmtpd in use anymore 
 
 foreach (qw(
 		badmailfrom
@@ -29,31 +29,31 @@ foreach (qw(
 		virtualdomains
 	))
 {
-    templates2events("/var/qmail/control/$_", qw(
-	console-save
-	bootstrap-console-save
-	domain-create
-	domain-delete
-	ip-change
-	email-update
-	host-create
-	host-delete
-	host-modify
-	post-upgrade
-	smeserver-qmail-update
-	));
-}
+  templates2events("/var/qmail/control/$_", qw(
+            console-save
+            bootstrap-console-save
+            domain-create
+            domain-delete
+            ip-change
+            email-update
+            host-create
+            host-delete
+            host-modify
+            post-upgrade
+            smeserver-qmail-update
+      ));
 
-templates2events("/var/qmail/control/badrcptto", qw(
-                        user-create
-                        user-delete
-                        user-modify
-                        group-create
-                        group-delete
-                        group-modify
-                        pseudonym-create
-                        pseudonym-delete
-                        pseudonym-modify
+
+  templates2events("/var/qmail/control/badrcptto", qw(
+            user-create
+            user-delete
+            user-modify
+            group-create
+            group-delete
+            group-modify
+            pseudonym-create
+            pseudonym-delete
+            pseudonym-modify
         ));
 }
 
diff --git a/smeserver-qmail.spec b/smeserver-qmail.spec
index ce8f2f6..6dd7096 100644
--- a/smeserver-qmail.spec
+++ b/smeserver-qmail.spec
@@ -4,7 +4,7 @@ Summary: startup scripts for Dan Bernstein's qmail package
 %define name smeserver-qmail
 Name: %{name}
 %define version 11.0.0
-%define release 7
+%define release 8
 Version: %{version}
 Release: %{release}%{?dist}
 License: GPL
@@ -29,7 +29,7 @@ Provides: e-smith-qmail
 AutoReqProv: no
 
 %changelog
-* Thu Apr 25 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-7.sme
+* Thu Apr 25 2024 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-8.sme
 - move qmail template from qpsmtpd [SME: 9492]
   badrcptto,badmailfrom,rcpthosts are for qmail-smtpd, they were used by qpsmtpd
   as a direct remplacement, some file override them now, moving to qmail