|
@ -35,3 +35,23 @@ a2enmod ssl rewrite |
|
|
|
|
|
|
|
|
/etc/init.d/apache2 restart |
|
|
/etc/init.d/apache2 restart |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## |
|
|
|
|
|
## Install Mail utils (for php mail command and crond script mail) |
|
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
|
|
MAIL_DOMAINNAME=${MAIL_DOMAINNAME:-"localdomain"} |
|
|
|
|
|
MAIL_SATTELITE_RELAYHOST=${MAIL_SATTELITE_RELAYHOST:-} |
|
|
|
|
|
|
|
|
|
|
|
debconf-set-selections <<< "postfix postfix/mailname string ${LXC_NAME}.${MAIL_DOMAINNAME}" |
|
|
|
|
|
debconf-set-selections <<< "postfix postfix/main_mailer_type select 'Local only'" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
apt-get install -y postfix mailutils |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
postconf inet_interfaces=loopback-only |
|
|
|
|
|
|
|
|
|
|
|
[ -z "$MAIL_SATTELITE_RELAYHOST" ] && postconf relayhost="$MAIL_SATTELITE_RELAYHOST" |
|
|
|
|
|
postfix reload |
|
|
|
|
|
|