From 39a07bd3a37687600a7a3b22b523acf5ce9db4c9 Mon Sep 17 00:00:00 2001
From: downtownallday <downtownallday@gmail.com>
Date: Thu, 15 Apr 2021 06:27:09 -0400
Subject: [PATCH] when encryption-at-rest is enabled, ensure postgrey loads the
 local client whitelist file after a re-mount

---
 ehdd/startup.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ehdd/startup.sh b/ehdd/startup.sh
index 42d707ff..df687997 100755
--- a/ehdd/startup.sh
+++ b/ehdd/startup.sh
@@ -13,5 +13,8 @@ if [ -s /etc/mailinabox.conf ]; then
     systemctl start fail2ban
     systemctl restart mailinabox
     systemctl start miabldap-capture
+    # since postgrey's local client whitelist is in user-data, reload
+    # to ensure postgrey daemon has it
+    systemctl reload postgrey
 fi