amazon-web-servicesamazon-sesbitnamidiscourse

discourse can't send email


i installed a discourse on AWS bitnami edu3d.co. I did the following things but still can't send the login verification email.

Thank you!


Solution

  • The problem is solved. I guess problem is that I set the username and password wrongly.

    smtp_address = ''
    smtp_port = 587
    smtp_domain = 'edu3d.co'
    smtp_user_name = ''
    smtp_password = ''
    smtp_enable_start_tls = true
    smtp_authentication = login
    

    If you have problem in setting smtp for the discourse installed on AWS EC2 bitnami. You can do the following checks.

    I found 25 is not responding and 465 sometimes broke too, 587 works well.

    How I find the problem

    I really can't figure out why the smtp setting is 'correct' but i just can't receive the email. So I changed to gmail, the setting is a bit easier than AWS SES. After change, I received the email immediately but it says the login method is not secure so Google blocked it. This proves the smtp setting is working. And according to previous test, my VM instance can connect to the smtp server. So there should have something wrong in the smtp setting.

    I go to AWS SES, intending to check the my credential. But I can only create a new one. So I did, then I found I misunderstood the username and password. After change, the email is working. Great!

    The following instruction is very helpful! https://docs.bitnami.com/bch/apps/discourse/configuration/configure-smtp/