5
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
VERSION_CLI='1.0.8'
|
VERSION_CLI='1.0.8'
|
||||||
VERSION_DAEMON='0.16.8'
|
VERSION_DAEMON='0.16.9'
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ case "${1}" in
|
|||||||
/usr/bin/true
|
/usr/bin/true
|
||||||
fi
|
fi
|
||||||
/usr/bin/chown --quiet --recursive 'stalwart':'root' '/etc/stalwart'
|
/usr/bin/chown --quiet --recursive 'stalwart':'root' '/etc/stalwart'
|
||||||
/usr/bin/install --directory --group='stalwart' --mode='750' --owner='root' '/var/lib/stalwart'
|
/usr/bin/install --directory --group='root' --mode='770' --owner='stalwart' '/var/lib/stalwart'
|
||||||
/usr/bin/install --directory --group='stalwart' --mode='750' --owner='stalwart' '/var/log/stalwart'
|
/usr/bin/install --directory --group='stalwart' --mode='750' --owner='stalwart' '/var/log/stalwart'
|
||||||
/usr/bin/install --directory --group='stalwart' --mode='750' --owner='stalwart' '/var/logrotate/stalwart'
|
/usr/bin/install --directory --group='stalwart' --mode='750' --owner='stalwart' '/var/logrotate/stalwart'
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -16,5 +16,19 @@ case "${1}" in
|
|||||||
--disabled-login \
|
--disabled-login \
|
||||||
'stalwart' > '/dev/null' 2>&1
|
'stalwart' > '/dev/null' 2>&1
|
||||||
fi
|
fi
|
||||||
|
/usr/bin/echo "#########################################################################"
|
||||||
|
/usr/bin/echo "# #"
|
||||||
|
/usr/bin/echo "# ! Run this commands as User 'stalwart' and follow the instructios ! #"
|
||||||
|
/usr/bin/echo "# ! to initialize the Stalwart Mail Server ! #"
|
||||||
|
/usr/bin/echo "# #"
|
||||||
|
/usr/bin/echo "# /usr/bin/sudo --user='stalwart' \ #"
|
||||||
|
/usr/bin/echo "# /usr/sbin/stalwart \ #"
|
||||||
|
/usr/bin/echo "# --config '/etc/stalwart/config.json' #"
|
||||||
|
/usr/bin/echo "# #"
|
||||||
|
/usr/bin/echo "# /bin/chmod '0640' '/etc/stalwart/config.json' #"
|
||||||
|
/usr/bin/echo "# #"
|
||||||
|
/usr/bin/echo "# /bin/chgrp 'root' '/etc/stalwart/config.json' #"
|
||||||
|
/usr/bin/echo "# #"
|
||||||
|
/usr/bin/echo "######################################################################'##"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
# Environment variables for the Stalwart service.
|
# Environment variables for the Stalwart service.
|
||||||
# Uncomment and edit an entry to override its default.
|
|
||||||
|
|
||||||
# Override the hostname used in HTTP responses
|
# Override the hostname used in HTTP responses
|
||||||
STALWART_HOSTNAME=mail.example.com
|
STALWART_HOSTNAME=mx.example.com
|
||||||
|
|
||||||
# Override the public base URL published in OAuth, OIDC, and JMAP discovery
|
# Override the public base URL published in OAuth, OIDC, and JMAP discovery
|
||||||
# documents. Accepts scheme, host, optional port, and optional path prefix.
|
# documents. Accepts scheme, host, optional port, and optional path prefix.
|
||||||
STALWART_PUBLIC_URL=https://mail.example.com
|
STALWART_PUBLIC_URL=https://mx.example.com
|
||||||
|
|
||||||
# Enable bootstrap / recovery mode on startup. Accepted: 1, true. Default: false.
|
# Enable bootstrap / recovery mode on startup. Accepted: 1, true. Default: false.
|
||||||
STALWART_RECOVERY_MODE=false
|
STALWART_RECOVERY_MODE=false
|
||||||
@@ -16,15 +15,3 @@ STALWART_RECOVERY_MODE_LOG_LEVEL=info
|
|||||||
|
|
||||||
# HTTP port used in recovery mode. Default: 8080.
|
# HTTP port used in recovery mode. Default: 8080.
|
||||||
STALWART_RECOVERY_MODE_PORT=8080
|
STALWART_RECOVERY_MODE_PORT=8080
|
||||||
|
|
||||||
# Fixed administrator credentials — format: username:password
|
|
||||||
# Default: a temporary random password is generated and printed to the logs.
|
|
||||||
#STALWART_RECOVERY_ADMIN=admin:changeme
|
|
||||||
|
|
||||||
# Cluster role assigned to this node. Must match a role name defined in the
|
|
||||||
# cluster registry. Leave unset for a standalone (non-clustered) deployment.
|
|
||||||
STALWART_ROLE=standalone
|
|
||||||
|
|
||||||
# Push-notification shard this node is responsible for, when running in a
|
|
||||||
# cluster.
|
|
||||||
STALWART_PUSH_SHARD=0
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Stalwart Mail & Collaboration Server
|
Description=Stalwart Mail & Collaboration Server
|
||||||
ConditionPathExists=/etc/stalwart.toml
|
ConditionPathExists=/etc/stalwart/config.json
|
||||||
StartLimitBurst=3
|
StartLimitBurst=3
|
||||||
StartLimitIntervalSec=60
|
StartLimitIntervalSec=60
|
||||||
Conflicts=postfix.service sendmail.service exim4.service
|
Conflicts=postfix.service sendmail.service exim4.service
|
||||||
|
|||||||
Reference in New Issue
Block a user