Discourse Forum Setup
Jump to navigation
Jump to search
- Pick domain for trial (probably bobbushman.com)
- Correction - using experiencemaking.com since email is already set up
- Setup email for domain
- AWS Mail
- Cheating - Experiencemaking.com is already set up. :D
- DNS registry setup
- Cheating - Experiencemaking.com is already set up. :D
- Admin account for Let's Encrypt cert
- created forum.admin@experiencemaking.com
- AWS Mail
- Create Lightsail node
- Created a $5 node.
- Assigned static IP: 44.238.32.225
- opened port 443 (HTTPS) through firewall
- DNS registry for forum.experiencemaking.com
- done
- Login successful. It's alive!
- Apt Update
- sudo apt update
- sudo apt dist-upgrade -y
- sudo reboot # if needed
- Install Extras
- sudo apt install git
- sudo apt install netcat
- Install Discourse
- https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md
- $ sudo -s
- $ git clone https://github.com/discourse/discourse_docker.git /var/discourse
- $ cd /var/discourse
- Going to take a stab at doing this without SPF. I've already got DKIM, and Amazon SES does ses.amazon.com SPF. We'll see. Easy enough to try again.
- $ ./discourse-setup
- Hostname : forum.experiencemaking.com
- Email : forum.admin@experiencemaking.com
- SMTP address : smtp.mail.us-west-2.awsapps.com
- SMTP port : 465
- SMTP username : discourse.admin@experiencemaking.com
- SMTP password : password1.no.really.I.used.password1.haha.entertainment
- Let's Encrypt : forum.admin@experiencemaking.com
- Register Admin Account
- Twice as entertaining
- Troubles with email
- Tried SES and Workmail endpoints, STARTTLS and SSL/TLS, 587 and 465, bob and discourse.admin, telnet confirmed connectivity, sent email using Thunderbird. No dice with Discourse.
- I think the next step is to set up a local SMTP server that forwards to Workmail
- https://meta.discourse.org/t/net-readtimeout-when-sending-email-after-install/56856
- https://meta.discourse.org/t/not-able-to-send-email-net-readtimeout/98419/15
- Considering DigitalOcean
- Some people with the same email problem mentioned that everything "just works" on DigitalOcean, so I went and took a look.
- Pricing seems reasonable, not significantly higher than AWS Lightsail.
- Looked for their solutions to email. They have two:
- Quick and easy integration with GMail SMTP. Maybe they also have a free testicle punching service but I wont be using that either.
- Install your own SMTP server. OK, so that whole "everything just works on DigitalOcean" thing is less of a solution than I thought.
- However, they do have a tutorial on installing SMTP on Debian 10, so that will help me move forward on Ligtsail:
- https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-as-a-send-only-smtp-server-on-debian-10
- Side note: I hate setting up SMTP servers. But it's been a few years since the last time, maybe it's easier now.
- ------------------
- Set ports (at some point)
- Install Docker
Appendix: AWS SMTP Test Settings
Email Send form Command Line
$ ./launcher enter app $ curl --url 'smtps://smtp.mail.us-west-2.awsapps.com:465' --ssl-reqd \ --mail-from 'foo@bar.com' --mail-rcpt 'foo@traxel.com' \ --upload-file mail1.txt --user 'login:pass'
One
DISCOURSE_SMTP_ADDRESS: email-smtp.us-west-2.amazonaws.com DISCOURSE_SMTP_PORT: 587 DISCOURSE_SMTP_USER_NAME: bob@experiencemaking.com DISCOURSE_SMTP_PASSWORD: "Password" DISCOURSE_SMTP_AUTHENTICATION: "login" DISCOURSE_SMTP_ENABLE_START_TLS: true
DISCOURSE_HOSTNAME=forum.experiencemaking.com SMTP_ADDRESS=email-smtp.us-west-2.amazonaws.com DEVELOPER_EMAILS=bob@experiencemaking.com SMTP_PASSWORD=Password SMTP_PORT=587 SMTP_USER_NAME=bob@experiencemaking.com LETSENCRYPT_ACCOUNT_EMAIL=forum.admin@experiencemaking.com
Sending mail to bob@traxel.com. . . Testing sending to bob@traxel.com using email-smtp.us-west-2.amazonaws.com:587. SMTP server connection successful. Sending to bob@traxel.com. . . Sending mail failed. Replacing: SMTP_PASSWORD Replacing: LETSENCRYPT_ACCOUNT_EMAIL Replacing: DEVELOPER_EMAILS Replacing: DISCOURSE_DB_PASSWORD Replacing: Sending mail to