Added welcome email for creator package
This commit is contained in:
parent
619af7a583
commit
1c1939cdba
167
lib/functions.sh
167
lib/functions.sh
@ -461,6 +461,173 @@ 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_creator() {
|
||||
cat > /federated/apps/mail/data/root/certs/mailfile <<EOF
|
||||
<html>
|
||||
<img src="https://www.federated.computer/images/logo.png" alt="" /><br>
|
||||
Dear Federated Customer,
|
||||
<p>
|
||||
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:
|
||||
<p>
|
||||
Website: https://support.federated.computer<br>
|
||||
Phone: 970-722-8715<br>
|
||||
Email: support@federated.computer<br>
|
||||
<p>
|
||||
We are here to help you, the Customer, get the most out of your Federated Core.
|
||||
<p>
|
||||
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.
|
||||
<p>
|
||||
<h4>Domain Information</h4>
|
||||
This is your domain: <b>$DOMAIN</b>
|
||||
<p>
|
||||
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.
|
||||
<p>
|
||||
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.
|
||||
<p>
|
||||
For setting DNS records you will need to set your glue records for your own yourdomain.com to be:
|
||||
<p>
|
||||
ns1.yourdomain.com - $EXTERNALIP<br>
|
||||
ns2.yourdomain.com - $EXTERNALIP<br>
|
||||
<p>
|
||||
And your authoritative:
|
||||
<p>
|
||||
ns1.yourdomain.com<br>
|
||||
ns2.yourdomain.com<br>
|
||||
<p>
|
||||
If you have questions about DNS records, please send us an email at support@federated.computer so that we can help you.
|
||||
<p>
|
||||
<h4>Admin User</h4>
|
||||
<p>
|
||||
There is an "admin" or administrative use that has access to everything on your Federated Core.
|
||||
Here are the credentials for that user.
|
||||
<p>
|
||||
Username = "admin@$DOMAIN"<br>
|
||||
Password = "$ADMINPASS"
|
||||
<p>
|
||||
<h4>Applications</h4>
|
||||
<style type="text/css">
|
||||
.tg {border-collapse:collapse;border-spacing:0;}
|
||||
.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
|
||||
overflow:hidden;padding:10px 5px;word-break:normal;}
|
||||
.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;
|
||||
font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
|
||||
.tg .tg-cul6{border-color:inherit;color:#340096;text-align:left;text-decoration:underline;vertical-align:top}
|
||||
.tg .tg-acii{background-color:#FFF;border-color:inherit;color:#333;text-align:left;vertical-align:top}
|
||||
.tg .tg-0hty{background-color:#000000;border-color:inherit;color:#ffffff;font-weight:bold;text-align:left;vertical-align:top}
|
||||
.tg .tg-kwiq{border-color:inherit;color:#000000;text-align:left;vertical-align:top;word-wrap:break-word}
|
||||
.tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top}
|
||||
</style>
|
||||
<table class="tg" style="undefined;table-layout: fixed; width: 996px">
|
||||
<colgroup>
|
||||
<col style="width: 101.333333px">
|
||||
<col style="width: 203.333333px">
|
||||
<col style="width: 200.333333px">
|
||||
<col style="width: 200.333333px">
|
||||
<col style="width: 77.333333px">
|
||||
<col style="width: 220.333333px">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="tg-0hty">Service</th>
|
||||
<th class="tg-0hty">Link</th>
|
||||
<th class="tg-0hty">User / Pass</th>
|
||||
<th class="tg-0hty">Access</th>
|
||||
<th class="tg-0hty">Docs</th>
|
||||
<th class="tg-0hty">Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Panel</td>
|
||||
<td class="tg-kwiq"><a href="https://panel.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">panel.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">All users in panel have access using user@$DOMAIN</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/panel" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Use panel to create user accounts for your team and change passwords</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Email</td>
|
||||
<td class="tg-kwiq"><a href="https://nextcloud.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">nextcloud.$DOMAIN</span></a><br>WebMail application</td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">All users in panel can access their own mail accounts through Nextcloud or mail client using user@$DOMAIN</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/getting_started/welcome" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">This 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)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Nextcloud</td>
|
||||
<td class="tg-kwiq"><a href="https://nextcloud.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">nextcloud.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">All users in panel have access using user@$DOMAIN</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/nextcloud" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">The Nextcloud Suite replaces google workspace which provides mail, calendar, contacts, notes, tasks, files, word processing, spreadsheets, project management, slides, and pictures</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Autodiscovery</td>
|
||||
<td class="tg-kwiq"><a href="https://autodiscover.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">autodiscover.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">User access is separate from panel</td>
|
||||
<td class="tg-kwiq"><a href="https://documentation.federated.computer/docs/getting_started/welcome/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Auto discovery is a service to provide automatic mail configurations for mail clients</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Vaultwarden</td>
|
||||
<td class="tg-kwiq"><a href="https://vaultwarden.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">vaultwarden.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">Create your own user</td>
|
||||
<td class="tg-kwiq">User access is separate from panel. Create your own initial user</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/vaultwarden" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Vaultwarden is a password manager</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">PowerDNS</td>
|
||||
<td class="tg-kwiq"><a href="https://powerdns.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">powerdns.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">User access is separate from panel</td>
|
||||
<td class="tg-kwiq"><a href="https://documentation.federated.computer/docs/core_applications/powerdns" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">PowerDNS is a powerful tool for managing DNS of your domain</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Element</td>
|
||||
<td class="tg-kwiq"><a href="https://element.$DOMAIN/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">element.$DOMAIN</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">All users added in panel can access element / matrix with their own user@$DOMAIN account</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/core_applications/element" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Element (a Slack replacement) provides you the ability to chat with those on your team and outside of your team</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tg-kwiq">Wordpress</td>
|
||||
<td class="tg-kwiq"><a href="https://www.$DOMAIN/login" target="_blank" rel="noopener noreferrer"><span style="color:#340096">www.$DOMAIN/login</span></a></td>
|
||||
<td class="tg-kwiq">admin@$DOMAIN<br>admin password above</td>
|
||||
<td class="tg-kwiq">User access is separate from panel</td>
|
||||
<td class="tg-cul6"><a href="https://documentation.federated.computer/docs/getting_started/welcome/" target="_blank" rel="noopener noreferrer"><span style="color:#340096">Click here</span></a></td>
|
||||
<td class="tg-kwiq">Wordpress is a dynamic content management solution used by 10s of millions of websites around the globe</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<h4>Thanks for your support!</h4>
|
||||
<p>
|
||||
Thank you for your support of Federated Computer. We really appreciate it and hope you have a very successful
|
||||
time with Federated Core.
|
||||
<p>
|
||||
Again, if we can be of any assistance, please don't hesitate to get in touch.
|
||||
<p>
|
||||
Support: https://support.federated.computer<br>
|
||||
Phone: (970) 722-8715<br>
|
||||
Email: support@federated.computer<br>
|
||||
<p>
|
||||
It's <b>your</b> computer. Let's make it work for you!
|
||||
</html>
|
||||
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_team() {
|
||||
cat > /federated/apps/mail/data/root/certs/mailfile <<EOF
|
||||
<html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user