From f26b3af5cf849f8fbb9ec62a14e8555a6fd08f8f Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Thu, 6 May 2021 13:38:46 -0700 Subject: [PATCH] set qualify_domain --- README.md | 5 ++--- install.sh | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 83f211f..07d9fef 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# vmail-stack +# Vmail Stack ## Install ``` @@ -8,5 +8,4 @@ cd vmail-stack bash install.sh ``` - - +Check that qualify_domain has been properly configured in /etc/exim4/exim_local.conf diff --git a/install.sh b/install.sh index 33c6b36..039b864 100755 --- a/install.sh +++ b/install.sh @@ -98,6 +98,7 @@ chown debian-spamd:mail /etc/spamassassin/sql.cf chmod 640 /etc/spamassassin/sql.cf # exim config +maildomain=`hostname -d` 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 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 chown Debian-exim:Debian-exim /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|example.com|$maildomain|g" /etc/exim4/exim_local.conf # dovecot config mkdir /etc/dovecot/sites.d @@ -141,9 +144,6 @@ chmod 644 /usr/lib/systemd/system/vmail-cron.* systemctl daemon-reload systemctl start vmail-cron.timer -chmod 755 sbin/* -cp sbin/* /usr/local/sbin/ - # download and install roundcubemail # cd /usr/local/src/ # wget --continue --quiet https://github.com/roundcube/roundcubemail/releases/download/1.4.11/roundcubemail-1.4.11-complete.tar.gz