MailingListDeadmanFirstPass
Revision as of 22:14, 9 January 2022 by RobertBushman (talk | contribs) (Created page with " = DeadmanDAO Mailman Build-out = == Create Instance == # go to interserver # create a single slice instance ($6/mo at this time) ## Debian ## KVM # Log in root@ip.address us...")
DeadmanDAO Mailman Build-out
Create Instance
- go to interserver
- create a single slice instance ($6/mo at this time)
- Debian
- KVM
- Log in root@ip.address using password you provided
apt-get update apt-get upgrade apt-get install sudo
Set SPF
apt-get install net-tools ifconfig
That'll give you the ip4 and ip6 addresses, which go into the DNS text record:
- v=spf1 ip4:66.23.226.216 ip6:fe80::216:3eff:fe24:10e1 -all
Set Other DNS
- A Record, diffie, 66.23.226.216
- A Record, @, 66.23.226.216
- CNAME Record, www, diffie.deadmandao.com
- CNAME Record, mail, diffie.deadmandao.com
- TXT Record, diffe, v=spf1 ip4:66.23.226.216 ip6:fe80::216:3eff:fe24:10e1 -all
- MX Record, deadmandao.com, mail.deadmandao.com, 10
Set Hostname
apt-get install emacs-nox emacs -nw /etc/hostname diffie emacs -nw /etc/hosts 66.23.226.216 diffie.deadmandao.com diffie reboot hostname hostname --all-fqdn dnsdomainname
Webserver
Move this to after getting Mailman installed.
apt-get install apache2
Put something up in /var/www/html
Add TLS/SSL
https://certbot.eff.org/instructions?ws=apache&os=debianbuster
Add Snapd
sudo apt update sudo apt install snapd sudo snap install core sudo snap refresh core
Snap Install Certbot
sudo snap install --classic certbot sudo ln -s /snap/bin/certbot /usr/bin/certbot
Get a Cert for Apache
sudo certbot --apache -d deadmandao.com -d www.deadmandao.com -d mail.deadmandao.com -d diffie.deadmandao.com
SMTP Server
apt-get install postfix
deadmandao.com is the host domain
Mailman
Install PIP
sudo apt install python3-pip
Django Command Reference
Run the dev webserver
python manage.py runserver
Pull all the static files to a single location (for serving via Apache, for example)
python manage.py collectstatic
Install Mailman3 Full Suite
Lots of dependencies here.
sudo apt install mailman3-full
Enable UWSGI, Link Mailman
Something Like
sudo a2enmod proxy_uwsgi sudo ln -s /etc/mailman3/apache.conf /etc/apache2/sites-available/100-mailman.conf sudo a2ensite 100-mailman sudo service apache2 restart