1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

disable postgrey when using encryption-at-rest. the postgrey database will be moving to user-data

This commit is contained in:
downtownallday 2022-09-21 09:06:52 -04:00
parent 65a3c7e243
commit ae0c69f3b9
2 changed files with 3 additions and 5 deletions

View File

@ -18,6 +18,7 @@ if [ -e "$EHDD_IMG" ]; then
echo "** Disabling system services **"
systemctl disable --quiet postfix
systemctl disable --quiet dovecot
systemctl disable --quiet postgrey
systemctl disable --quiet cron
systemctl disable --quiet nginx
systemctl disable --quiet php8.0-fpm

View File

@ -15,6 +15,8 @@ if [ -s /etc/mailinabox.conf ]; then
systemctl start php8.0-fpm
systemctl start dovecot
systemctl start postfix
# postgrey's main database and local client whitelist are in user-data
systemctl restart postgrey
systemctl start nginx
systemctl start cron
#systemctl start nsd
@ -22,10 +24,5 @@ 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.
#
# TODO: this should be 'reload' but is broken in jammy (reload fails on a systemctl permissions issue accessing postgrey's pid file)
systemctl restart postgrey
fi