Browse Source

new: added postfix satellite install for mail php function and mail cli command.

postgres
root 11 years ago
parent
commit
aff411f883
  1. 20
      precise/www/hooks/install
  2. 1
      precise/www/metadata.yaml

20
precise/www/hooks/install

@ -35,3 +35,23 @@ a2enmod ssl rewrite
/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

1
precise/www/metadata.yaml

@ -6,5 +6,6 @@ description: |
Installs a HTTP Apache server.
config-resources:
- /etc/apache2
- /etc/postfix
data-resources:
- /var/www
Loading…
Cancel
Save