home · contact · privacy
Replace hostname in postfix/main.cf with proper value on post-install.
[config] / jessie_postinstall.sh
index 587f30b35dbc3214b34b7d411a7eec49de051211..98e8a8182b51b04ddecd2233df61b00628b3fbab 100755 (executable)
@@ -182,6 +182,7 @@ if [ "$1" = "server" ]; then
     DEBIAN_FRONTEND=noninteractive apt-get -y install getmail4 procmail mutt \
         postfix maildrop
     cp config/systemfiles/main.cf /etc/postfix/main.cf
+    sed -i 's/HOSTNAME/'.$2.'/g' /etc/postfix/main.cf
     cp config/systemfiles/aliases /etc/aliases
     newaliases
     service postfix restart