Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c550f011 authored by Akhil's avatar Akhil 🙂
Browse files

Merge branch 'smu44-master-patch-01982' into 'master'

Setting technical email aliases automatically

See merge request !81
parents ffc32c72 5f3ac316
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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"