|
@@ -38,7 +38,7 @@ function add_email_hostname {
|
38
|
38
|
extra_email_hostname="$1"
|
39
|
39
|
email_hostnames=$(grep "dc_other_hostnames" /etc/exim4/update-exim4.conf.conf | awk -F "'" '{print $2}')
|
40
|
40
|
if [[ "$email_hostnames" != *"$extra_email_hostname"* ]]; then
|
41
|
|
- sed -i "s|dc_other_hostnames=.*|dc_other_hostnames='$email_hostnames;extra_email_hostname'|g" /etc/exim4/update-exim4.conf.conf
|
|
41
|
+ sed -i "s|dc_other_hostnames=.*|dc_other_hostnames='$email_hostnames;$extra_email_hostname'|g" /etc/exim4/update-exim4.conf.conf
|
42
|
42
|
update-exim4.conf
|
43
|
43
|
dpkg-reconfigure --frontend noninteractive exim4-config
|
44
|
44
|
systemctl restart saslauthd
|