Added ways to change EHLO domain

This commit is contained in:
Val
2014-11-07 15:12:15 +00:00
parent 379450308a
commit 0cf0824ff5
3 changed files with 11 additions and 5 deletions

View File

@@ -1,3 +1,7 @@
if [ -f /mail_settings/myhostname ]; then
sed -i -e "s/myhostname = localhost/myhostname = $(sed 's:/:\\/:g' /mail_settings/myhostname)/" /etc/postfix/main.cf
fi
# configure mail delivery to dovecot
cp /mail_settings/aliases /etc/postfix/virtual
cp /mail_settings/domains /etc/postfix/virtual-mailbox-domains