• GitHub
  • Documentation
  • Discord
  • Donate
search
  • chevron_right Threads
  • label Support

Email Setup

yottabit
Nov. 17, 2024
chat_bubble_outline 13
  • check_circle
  • link
    yottabit
    Members 15 posts
    Nov. 17, 2024, 1:38 a.m. Nov. 17, 2024, 1:38 a.m.
    link

    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. :)

  • link
    rafalp
    Project Lead 1979 posts
    Nov. 17, 2024, 1:40 a.m. Nov. 17, 2024, 1:40 a.m.
    link

    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.

  • link
    yottabit
    Members 15 posts
    Nov. 17, 2024, 1:45 a.m. Nov. 17, 2024, 1:45 a.m.
    link

    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?

  • link
    rafalp
    Project Lead 1979 posts
    Nov. 17, 2024, 1:47 a.m. Nov. 17, 2024, 1:47 a.m.
    link

    Did you use this guide to install your Misago instance?

  • link
    yottabit
    Members 15 posts
    Nov. 17, 2024, 1:49 a.m. Nov. 17, 2024, 1:49 a.m.
    link

    I did not fully go through the guide, no. I will do that before posting again moving forward.

  • link
    yottabit
    Members 15 posts
    Nov. 20, 2024, 9:34 p.m. Nov. 20, 2024, 9:34 p.m.
    link

    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!

  • link
    rafalp
    Project Lead 1979 posts
    Nov. 20, 2024, 9:44 p.m. Nov. 20, 2024, 9:44 p.m.
    link
    check_box

    Marked as best answer by Nov. 20, 2024, 10:03 p.m..

    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.

  • link
    yottabit
    Members 15 posts
    Nov. 20, 2024, 9:54 p.m. Nov. 20, 2024, 9:54 p.m.
    link

    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?

  • link
    rafalp
    Project Lead 1979 posts
    Nov. 20, 2024, 9:56 p.m. Nov. 20, 2024, 9:56 p.m.
    link

    Nope, just restarting to reload env variables is okay.

  • link
    yottabit
    Members 15 posts
    Nov. 20, 2024, 9:57 p.m. Nov. 20, 2024, 9:57 p.m.
    link

    How do I reload env variables?

  • link
    rafalp
    Project Lead 1979 posts
    Nov. 20, 2024, 9:58 p.m. Nov. 20, 2024, 9:58 p.m.
    link

    ./appctl restart

  • link
    yottabit
    Members 15 posts
    Nov. 20, 2024, 9:59 p.m. Nov. 20, 2024, 9:59 p.m.
    link

    I see that now in ./appctl. Thank you, rafalp. I appreciate your help.

  • link
    yottabit
    Members 15 posts
    Nov. 20, 2024, 11:41 p.m. Nov. 20, 2024, 11:41 p.m.
    link

    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.

  • link
    rafalp
    Project Lead 1979 posts
    Nov. 20, 2024, 11:49 p.m. Nov. 20, 2024, 11:49 p.m.
    link

    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

arrow_upward Go to top
  • This site uses cookies to gather statistical data for use in traffic analysis.
  • GitHub
  • Documentation
  • Discord
  • Donate
  • Terms of service
  • Privacy policy
powered by misago