1 |
diff -Nur e-smith-email-5.6.0.old/createlinks e-smith-email-5.6.0/createlinks |
2 |
--- e-smith-email-5.6.0.old/createlinks 2006-03-14 14:23:58.000000000 -0500 |
3 |
+++ e-smith-email-5.6.0/createlinks 2020-12-11 09:36:24.311000000 -0500 |
4 |
@@ -71,7 +71,6 @@ |
5 |
#-------------------------------------------------- |
6 |
$event = "email-update"; |
7 |
|
8 |
-safe_symlink("adjust", "root/etc/e-smith/events/$event/services2adjust/masq"); |
9 |
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/smtp-auth-proxy"); |
10 |
|
11 |
#-------------------------------------------------- |
12 |
@@ -116,15 +116,19 @@ |
13 |
$event = "ip-change"; |
14 |
|
15 |
#-------------------------------------------------- |
16 |
+# actions for e-smith-email-update event: |
17 |
+#-------------------------------------------------- |
18 |
+$event = "e-smith-email-update"; |
19 |
+# systemd-specific action mandatory for this package-update event |
20 |
+event_link("systemd-reload", $event, "89"); |
21 |
+event_link("systemd-default", $event, "88"); |
22 |
+safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/smtp-auth-proxy"); |
23 |
+ |
24 |
+#-------------------------------------------------- |
25 |
# actions for pseudonym-{create,delete,modify} |
26 |
#-------------------------------------------------- |
27 |
foreach $event ( qw(pseudonym-create pseudonym-modify pseudonym-delete) ) |
28 |
{ |
29 |
} |
30 |
|
31 |
-safe_symlink("daemontools", "root/etc/rc.d/init.d/smtp-auth-proxy"); |
32 |
-service_link_enhanced("smtp-auth-proxy", "S75", "7"); |
33 |
-service_link_enhanced("smtp-auth-proxy", "K50", "6"); |
34 |
-service_link_enhanced("smtp-auth-proxy", "K50", "0"); |
35 |
-service_link_enhanced("smtp-auth-proxy", "K50", "1"); |
36 |
|
37 |
diff -Nur e-smith-email-5.6.0.old/root/usr/lib/systemd/system/smtp-auth-proxy.service e-smith-email-5.6.0/root/usr/lib/systemd/system/smtp-auth-proxy.service |
38 |
--- e-smith-email-5.6.0.old/root/usr/lib/systemd/system/smtp-auth-proxy.service 1969-12-31 19:00:00.000000000 -0500 |
39 |
+++ e-smith-email-5.6.0/root/usr/lib/systemd/system/smtp-auth-proxy.service 2020-12-11 09:31:29.447000000 -0500 |
40 |
@@ -0,0 +1,12 @@ |
41 |
+[Unit] |
42 |
+Description=Koozali SME Server SMTP auth proxy |
43 |
+After=network.target remote-fs.target |
44 |
+ |
45 |
+[Service] |
46 |
+Type=simple |
47 |
+ExecStartPre=/sbin/e-smith/service-status smtp-auth-proxy |
48 |
+ExecStart=/usr/local/sbin/smtp-auth-proxy.pl |
49 |
+ |
50 |
+[Install] |
51 |
+WantedBy=sme-server.target |
52 |
+ |