-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall-exim
More file actions
executable file
·25 lines (18 loc) · 727 Bytes
/
install-exim
File metadata and controls
executable file
·25 lines (18 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
set -e
# shellcheck disable=SC1091
. /etc/weblate-bootstrap
apt install -y exim4
sed -i \
-e "s#dc_eximconfig_configtype=.*#dc_eximconfig_configtype='satellite'#" \
-e "s#dc_local_interfaces=.*#dc_local_interfaces='127.0.0.1'#" \
-e "s#dc_readhost=.*#dc_readhost='$WEBLATE_DOMAIN'#" \
-e "s#dc_smarthost=.*#dc_smarthost='172.16.0.84'#" \
-e "s#dc_hide_mailname=.*#dc_hide_mailname='true'#" \
/etc/exim4/update-exim4.conf.conf
#cat >> /etc/exim4/passwd.client <<EOT
#mail.cihar.com:$WEBLATE_DOMAIN:$EXIM_PASS
#EOT
systemctl restart exim4
#echo "TODO: update smarthost credentials:"
#echo "$WEBLATE_DOMAIN:$(openssl passwd -6 -salt "$(openssl rand -hex 6)" "$EXIM_PASS"):666:0:99999:7::"