set qualify_domain

This commit is contained in:
Matthew Saunders Brown 2021-05-06 13:38:46 -07:00
parent 5b2f1749ac
commit f26b3af5cf
2 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# vmail-stack # Vmail Stack
## Install ## Install
``` ```
@ -8,5 +8,4 @@ cd vmail-stack
bash install.sh bash install.sh
``` ```
Check that qualify_domain has been properly configured in /etc/exim4/exim_local.conf

View File

@ -98,6 +98,7 @@ chown debian-spamd:mail /etc/spamassassin/sql.cf
chmod 640 /etc/spamassassin/sql.cf chmod 640 /etc/spamassassin/sql.cf
# exim config # exim config
maildomain=`hostname -d`
sed -i 's/size 10M/daily/g' /etc/logrotate.d/exim4-paniclog sed -i 's/size 10M/daily/g' /etc/logrotate.d/exim4-paniclog
install --owner=Debian-exim --group=Debian-exim --mode=640 /dev/null /etc/exim4/relay_domains install --owner=Debian-exim --group=Debian-exim --mode=640 /dev/null /etc/exim4/relay_domains
cp etc/exim4/* /etc/exim4/ cp etc/exim4/* /etc/exim4/
@ -108,7 +109,9 @@ chown Debian-exim:Debian-exim /etc/exim4/return-resender.sh
chmod 640 /etc/exim4/return-resender.sh chmod 640 /etc/exim4/return-resender.sh
chown Debian-exim:Debian-exim /etc/exim4/skip_greylisting_hosts chown Debian-exim:Debian-exim /etc/exim4/skip_greylisting_hosts
chmod 640 /etc/exim4/skip_greylisting_hosts chmod 640 /etc/exim4/skip_greylisting_hosts
sed -i "s|example.com|$maildomain|g" /etc/exim4/skip_greylisting_hosts
sed -i "s|password|$VMAILPASS|g" /etc/exim4/exim_local.conf sed -i "s|password|$VMAILPASS|g" /etc/exim4/exim_local.conf
sed -i "s|example.com|$maildomain|g" /etc/exim4/exim_local.conf
# dovecot config # dovecot config
mkdir /etc/dovecot/sites.d mkdir /etc/dovecot/sites.d
@ -141,9 +144,6 @@ chmod 644 /usr/lib/systemd/system/vmail-cron.*
systemctl daemon-reload systemctl daemon-reload
systemctl start vmail-cron.timer systemctl start vmail-cron.timer
chmod 755 sbin/*
cp sbin/* /usr/local/sbin/
# download and install roundcubemail # download and install roundcubemail
# cd /usr/local/src/ # cd /usr/local/src/
# wget --continue --quiet https://github.com/roundcube/roundcubemail/releases/download/1.4.11/roundcubemail-1.4.11-complete.tar.gz # wget --continue --quiet https://github.com/roundcube/roundcubemail/releases/download/1.4.11/roundcubemail-1.4.11-complete.tar.gz