Google SMTP not working

I am simply trying to get activation emails working on my tutor installation. I am not worried about if its from my Google workspace server or the tutor default. I have tried both and never get the activation email. I have seen this posted many times here but the solutions did not work for me. Hereare my logs

forum_1          | I, [2021-11-17T03:23:36.004401 #23]  INFO -- : source=rack-timeout id=29a5ccfc25ec4687c761297616890b6c timeout=20000ms service=22ms state=completed
forum_1          | 172.18.0.9 - - [17/Nov/2021:03:23:36 +0000] "PUT /api/v1/users/6?request_id=703543d8-90e7-4e34-835d-ccc103f7332f HTTP/1.1" 200 47 0.0233
lms_1            | 2021-11-17 03:23:36,012 INFO 7 [audit] [user 6] [ip 76.111.59.169] register.py:260 - Login success on new account creation - gjaiolfjekfmew
lms-worker_1     | 2021-11-17 03:23:36,072 INFO 106 [celery.app.trace] [user None] [ip None] trace.py:125 - Task common.djangoapps.student.tasks.send_activation_email[461c8ed1-895b-4f2b-9d01-5392f24c2832] succeeded in 0.09749814699171111s: None
nginx_1          | 172.18.0.7 - - [17/Nov/2021:03:23:36 +0000] http://giza.empowrco.org "POST /api/user/v2/account/registration/ HTTP/1.1" 200 78 "https://giza.empowrco.org/register?next=%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0" "76.111.59.169"
lms_1            | [pid: 7|app: 0|req: 53/231] 172.18.0.13 () {64 vars in 1443 bytes} [Wed Nov 17 03:23:35 2021] POST /api/user/v2/account/registration/ => generated 78 bytes in 500 msecs (HTTP/1.0 200) 14 headers in 3223 bytes (1 switches on core 0)
lms_1            | 2021-11-17 03:23:36,618 INFO 115 [tracking] [user 6] [ip 76.111.59.169] logger.py:41 - {"name": "/", "context": {"user_id": 6, "path": "/", "course_id": "", "org_id": ""}, "username": "gjaiolfjekfmew", "session": "dbcea2a0152de29689954b9ee0063519", "ip": "76.111.59.169", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0", "host": "giza.empowrco.org", "referer": "https://giza.empowrco.org/register?next=%2F", "accept_language": "en-US,en;q=0.5", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2021-11-17T03:23:36.618403+00:00", "event_type": "/", "event_source": "server", "page": null}
nginx_1          | 172.18.0.7 - - [17/Nov/2021:03:23:36 +0000] http://giza.empowrco.org "GET / HTTP/1.1" 302 0 "https://giza.empowrco.org/register?next=%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0" "76.111.59.169"
lms_1            | [pid: 115|app: 0|req: 54/232] 172.18.0.13 () {58 vars in 3154 bytes} [Wed Nov 17 03:23:36 2021] GET / => generated 0 bytes in 32 msecs (HTTP/1.0 302) 8 headers in 529 bytes (1 switches on core 0)
lms_1            | 2021-11-17 03:23:36,684 INFO 7 [tracking] [user 6] [ip 76.111.59.169] logger.py:41 - {"name": "/dashboard", "context": {"user_id": 6, "path": "/dashboard", "course_id": "", "org_id": ""}, "username": "gjaiolfjekfmew", "session": "dbcea2a0152de29689954b9ee0063519", "ip": "76.111.59.169", "agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0", "host": "giza.empowrco.org", "referer": "https://giza.empowrco.org/register?next=%2F", "accept_language": "en-US,en;q=0.5", "event": "{\"GET\": {}, \"POST\": {}}", "time": "2021-11-17T03:23:36.684163+00:00", "event_type": "/dashboard", "event_source": "server", "page": null}
nginx_1          | 172.18.0.7 - - [17/Nov/2021:03:23:36 +0000] http://giza.empowrco.org "GET /dashboard HTTP/1.1" 200 18206 "https://giza.empowrco.org/register?next=%2F" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0" "76.111.59.169"
lms_1            | [pid: 7|app: 0|req: 54/233] 172.18.0.13 () {58 vars in 3172 bytes} [Wed Nov 17 03:23:36 2021] GET /dashboard => generated 18206 bytes in 116 msecs (HTTP/1.0 200) 7 headers in 508 bytes (1 switches on core 0)
nginx_1          | 172.18.0.7 - - [17/Nov/2021:03:23:36 +0000] http://giza.empowrco.org "GET /static/js/commerce/credit.e4a82bfe5f09.js HTTP/1.1" 200 1333 "https://giza.empowrco.org/dashboard" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0" "76.111.59.169"
lms_1            | [pid: 115|app: -1|req: -1/234] 172.18.0.13 () {54 vars in 3083 bytes} [Wed Nov 17 03:23:36 2021] GET /static/js/commerce/credit.e4a82bfe5f09.js => generated 1333 bytes in 0 msecs via sendfile() (HTTP/1.0 200) 3 headers in 125 bytes (0 switches on core 0)
lms_1            | [pid: 7|app: -1|req: -1/235] 172.18.0.13 () {54 vars in 3071 bytes} [Wed Nov 17 03:23:36 2021] GET /static/js/dashboard.08f8029f1954.js => generated 13528 bytes in 0 msecs via sendfile() (HTTP/1.0 200) 3 headers in 126 bytes (0 switches on core 0)
nginx_1          | 172.18.0.7 - - [17/Nov/2021:03:23:36 +0000] http://giza.empowrco.org "GET /static/js/dashboard.08f8029f1954.js HTTP/1.1" 200 13528 "https://giza.empowrco.org/dashboard" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0" "76.111.59.169"
redis_1          | 1:M 17 Nov 2021 03:26:44.060 * 10 changes in 300 seconds. Saving...
redis_1          | 1:M 17 Nov 2021 03:26:44.061 * Background saving started by pid 303
redis_1          | 303:C 17 Nov 2021 03:26:44.065 * DB saved on disk
redis_1          | 303:C 17 Nov 2021 03:26:44.067 * RDB: 0 MB of memory used by copy-on-write
redis_1          | 1:M 17 Nov 2021 03:26:44.161 * Background saving terminated with success

It seems to say the send activation email task succeeded but no email was actually sent.

I needed to enable less secure apps on my google account

https://support.google.com/accounts/answer/6010255?hl=en

1 Like

You’ll be happy to learn that a dedicated tutorial is in the works: docs: add tutorial on using Google Mail as an SMTP server by regisb · Pull Request #534 · overhangio/tutor · GitHub