Hello,
Seeking help to properly setup Email system for users to receive the activation token in their email. Been having a little trouble with this.
Any help would be appreciated. :)
Hello,
Seeking help to properly setup Email system for users to receive the activation token in their email. Been having a little trouble with this.
Any help would be appreciated. :)
Hello,
What email provider are you using? Are you sure the configuration data you've entered in wizard on installation is correct? You can always change it later by using ./appctl email
.
I am using Ionos email address that is linked to my domain, and I am not sure if I've even entered data in wizard on installation (what would this look like? Not sure if I know what wizard is..).
Where would I be able to change this with the info (./appctl email) you provided?
Did you use this guide to install your Misago instance?
I did not fully go through the guide, no. I will do that before posting again moving forward.
Hello again,
I went back and setup Misago using the wizard you created, removed previous installations of Misago I setup where I was not using Docker. Everything went smooth with the wizard installation, but when I try to create new user, I am getting an error in the Registration form although a new user is created in the database (I can see this from Admin Control Panel). Any ideas of what I could be doing wrong here? I setup email using smtp with ionos, included the correct username and password I use with ionos, the email I am using for admin (admin@mydomain.com). Any help would be appreciated!
This sounds 100% like incorrect email credentials. Which is why Misago fails to send welcome email, producing error.
You can confirm this looking in the logs in logs
directory.
I think I see what the issue is here: "ValueError: EMAIL_USE_TLS/EMAIL_USE_SSL are mutually exclusive, so only set one of those settings to True.". I have changed the email settings to only SSL using SMTP port 465. Do I need to rebuild docker and/or collect static for this to be in effect?
Nope, just restarting to reload env variables is okay.
How do I reload env variables?
./appctl restart
I see that now in ./appctl. Thank you, rafalp. I appreciate your help.
I still seem to be facing issues after rebuilding and restarting Misago container, "raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'Authentication credentials invalid')", here is a bit provide more information to help with troubleshooting:
Change e-mail configuration? [N/y]: y
Which e-mail provider do you want to use?
0 - None (disables sending e-mails)
1 - SMTP
2 - Gmail (gmail.com)
3 - Mailjet (mailjet.com)
4 - SendinBlue (sendinblue.com)
Enter choice's number [0/1/2/3/4/5]: 1
Enter your SMTP host (eg. "smtp.myprovider.com"): smtp.ionos.com
Enter your SMTP user name: 309** (This is my Ionos "Customer ID"; I've also tried using the email address I use to login with Ionos, no luck)
Enter your SMTP user password (optinal but recommended): ***
Enable SSL [N/y]: y
Enable TLS [N/y]: n
Enter your SMTP port: 465
Enter your site's e-mail address: admin@mydomain.com
Enter your sender name (eg. "Misago Forums", optional): My Website
Changes saved. Remember to run "./appctl rebuild" to rebuild and restart Misago container to use new configuration.
I have no idea what credentials are valid ones for Ionos, but their email program setup guide points that username should be email address and not customer ID. This makes sense because I would assume you can have multiple email addresses on single customer ID. Likewise you should have password per mail address and not your customer ID. Also, I would try alternative port 587 with TLS instead of SSL, this is what's working for Gmail.
I've also tried using the email address
Yeah, if they are anything like other hosting providers I've dealt with, they will have in customer panel somewhere an option for you to create email addresses together with passwords.
Added later: yup, you have to purchase email account from them if you want to use them as e-mail provider for your site: www.ionos.com/office-solutions/create-an-email-address#plans