mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-27 02:10:52 +08:00
updated installer script to enable loop detection
This commit is contained in:
parent
911c766c5d
commit
f239504651
3 changed files with 3 additions and 2 deletions
|
@ -12,4 +12,4 @@ collection="zone-queue"
|
||||||
# Hashing secret for loop detection
|
# Hashing secret for loop detection
|
||||||
# Must be shared with haraka-plugin-wildduck
|
# Must be shared with haraka-plugin-wildduck
|
||||||
# If not set then looping is not tracked
|
# If not set then looping is not tracked
|
||||||
loopSecret=""
|
#loopSecret="secret value"
|
|
@ -53,6 +53,7 @@ group=\"wildduck\"
|
||||||
emailDomain=\"$MAILDOMAIN\"" | cat - /etc/wildduck/wildduck.toml > temp && mv temp /etc/wildduck/wildduck.toml
|
emailDomain=\"$MAILDOMAIN\"" | cat - /etc/wildduck/wildduck.toml > temp && mv temp /etc/wildduck/wildduck.toml
|
||||||
|
|
||||||
sed -i -e "s/localhost:3000/$HOSTNAME/g;s/localhost/$HOSTNAME/g;s/2587/587/g" /etc/wildduck/wildduck.toml
|
sed -i -e "s/localhost:3000/$HOSTNAME/g;s/localhost/$HOSTNAME/g;s/2587/587/g" /etc/wildduck/wildduck.toml
|
||||||
|
sed -i -e "s/secret value/$SRS_SECRET/g;s/#loopSecret/loopSecret/g" /etc/wildduck/sender.toml
|
||||||
|
|
||||||
cd /opt/wildduck
|
cd /opt/wildduck
|
||||||
npm install --production --unsafe-perm --no-optional --no-package-lock --no-audit --ignore-scripts --no-shrinkwrap
|
npm install --production --unsafe-perm --no-optional --no-package-lock --no-audit --ignore-scripts --no-shrinkwrap
|
||||||
|
|
|
@ -99,7 +99,7 @@ virus=true
|
||||||
error=false' > config/clamd.ini
|
error=false' > config/clamd.ini
|
||||||
|
|
||||||
cp plugins/wildduck/config/wildduck.yaml config/wildduck.yaml
|
cp plugins/wildduck/config/wildduck.yaml config/wildduck.yaml
|
||||||
sed -i -e "s/secret value/$SRS_SECRET/g" config/wildduck.yaml
|
sed -i -e "s/secret value/$SRS_SECRET/g;s/#loopSecret/loopSecret/g" config/wildduck.yaml
|
||||||
|
|
||||||
# Ensure required files and permissions
|
# Ensure required files and permissions
|
||||||
echo "d /opt/haraka 0755 deploy deploy" > /etc/tmpfiles.d/haraka.conf
|
echo "d /opt/haraka 0755 deploy deploy" > /etc/tmpfiles.d/haraka.conf
|
||||||
|
|
Loading…
Reference in a new issue