diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index 6aae5905b3d378aaedbdc72f67e00716c7f1ca82..e66e0de7fc9676dea78f8f339cd274b8923c72f1 100755 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -97,6 +97,12 @@ echo "Adding email accounts used by system senders (drive, ...)" docker-compose exec -T postfixadmin /postfixadmin/scripts/postfixadmin-cli mailbox add drive@$DOMAIN --password $DRIVE_SMTP_PASSWORD --password2 $DRIVE_SMTP_PASSWORD --name "drive" --email-other $ALT_EMAIL docker-compose exec -T postfixadmin /postfixadmin/scripts/postfixadmin-cli mailbox add $SMTP_FROM --password $SMTP_PW --password2 $SMTP_PW --name "welcome" --email-other $ALT_EMAIL +echo "Setting technical email aliases to $ALT_EMAIL" +docker-compose exec -T postfixadmin /postfixadmin/scripts/postfixadmin-cli alias update abuse@$DOMAIN --goto $ALT_EMAIL +docker-compose exec -T postfixadmin /postfixadmin/scripts/postfixadmin-cli alias update hostmaster@$DOMAIN --goto $ALT_EMAIL +docker-compose exec -T postfixadmin /postfixadmin/scripts/postfixadmin-cli alias update postmaster@$DOMAIN --goto $ALT_EMAIL +docker-compose exec -T postfixadmin /postfixadmin/scripts/postfixadmin-cli alias update webmaster@$DOMAIN --goto $ALT_EMAIL + echo "Setting the right domain in welcome templates" docker-compose exec -T welcome find /var/www/html/invite_template/ -type f -exec sed -i "s/ecloud\.global/$DOMAIN/g" {} \; @@ -121,4 +127,5 @@ echo "========================================================================== echo "Your signup link:" bash scripts/generate-signup-link.sh --user-email $ALT_EMAIL +echo -e "\n\n\n" echo "Please reboot the server now"