From a47a6608a426eee573c4b961bb9b0183bce57db6 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 8 Jan 2024 19:53:36 +0000 Subject: [PATCH] Added welcome email for starter bundle --- lib/functions.sh | 148 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) diff --git a/lib/functions.sh b/lib/functions.sh index 5c53e13..fdc25f9 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -456,6 +456,154 @@ docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" - cat /federated/apps/mail/data/root/certs/mailfile rm /federated/apps/mail/data/root/certs/mailfile } +print_details_starter() { +cat > /federated/apps/mail/data/root/certs/mailfile < +
+Dear Federated Customer, +

+Please read this note in its entirety since it has some important information for you to get the best use +out of your Federated Core. If you ever get stuck for whatever reason, please reach out to us for support: +

+Website: https://support.federated.computer
+Phone: 970-722-8715
+Email: support@federated.computer
+

+We are here to help you, the Customer, get the most out of your Federated Core. +

+All documentation for your Federated Core can be found at https://documentation.federated.computer. +There you'll find tips for how to use your Core and the various open source applications bundled with +your Core. +

+

Domain Information

+This is your domain: $DOMAIN +

+If you just signed up for Federated Core, your domain is a temporary domain (example: starts with F...). Please do not change the admin password (see below) until you switch to your own domain name (example: mustache.com). We use the admin account and password for your temporary domain to re-configure all the software for your new/permanent domain. If you have a question about this, send us an email to support@federated.computer. +

+When you are ready to switch over to your own yourdomain.com send us an e-mail at support@federated.computer and let us know you are done migrating your data, have pointed DNS correctly, and ready for us to switch. We also need to know the yourdomain.com you will be using. +

+For setting DNS records you will need to set your glue records for your own yourdomain.com to be: +

+ns1.yourdomain.com - $EXTERNALIP
+ns2.yourdomain.com - $EXTERNALIP
+

+And your authoritative: +

+ns1.yourdomain.com
+ns2.yourdomain.com
+

+If you have questions about DNS records, please send us an email at support@federated.computer so that we can help you. +

+

Admin User

+

+There is an "admin" or administrative use that has access to everything on your Federated Core. +Here are the credentials for that user. +

+Username = "admin@$DOMAIN"
+Password = "$ADMINPASS" +

+

Applications

+ + ++++++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Thanks for your support!

+

+Thank you for your support of Federated Computer. We really appreciate it and hope you have a very successful +time with Federated Core. +

+Again, if we can be of any assistance, please don't hesitate to get in touch. +

+Support: https://support.federated.computer
+Phone: (970) 722-8715
+Email: support@federated.computer
+

+It's your computer. Let's make it work for you! + +EOF + +# Send out e-mail from mail container with details +docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Welcome to Federated\" admin@$DOMAIN < /root/certs/mailfile" +docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Welcome to Federated\" $EMAIL < /root/certs/mailfile" +cat /federated/apps/mail/data/root/certs/mailfile +rm /federated/apps/mail/data/root/certs/mailfile +} print_details() { cat > /federated/apps/mail/data/root/certs/mailfile <

ServiceLinkUser / PassAccessDocsDescription
Panelpanel.$DOMAINadmin@$DOMAIN
admin password above
All users in panel have access using user@$DOMAINClick hereUse panel to create user accounts for your team and change passwords
Emailnextcloud.$DOMAIN
WebMail application
admin@$DOMAIN
admin password above
All users in panel can access their own mail accounts through Nextcloud or mail client using user@$DOMAINClick hereThis is your own private e-mail service accessed through Nextcloud webmail or configure a mail client with SMTP mail.$DOMAIN (port 465), and IMAP mail.$DOMAIN (port 993)
Nextcloudnextcloud.$DOMAINadmin@$DOMAIN
admin password above
All users in panel have access using user@$DOMAINClick hereThe Nextcloud Suite replaces google workspace which provides mail, calendar, contacts, notes, tasks, files, word processing, spreadsheets, project management, slides, and pictures
Autodiscoveryautodiscover.$DOMAINNo loginNo user accessClick hereAuto discovery is a service to provide automatic mail configurations for mail clients
Vaultwardenvaultwarden.$DOMAINCreate your own userUser access is separate from panel. Create your own initial userClick hereVaultwarden is a password manager
PowerDNSpowerdns.$DOMAINadmin@$DOMAIN
admin password above
User access is separate from panelClick herePowerDNS is a powerful tool for managing DNS of your domain