Commento not able to send mails
-
Hello o/
Sadly Commento can not send mails, i am not sure if it is due to cloudron or commento itself. The Log says:Nov 19 13:44:39 => Start application Nov 19 13:44:39 2019/11/19 13:44:39 [INFO] database_connect.go:13 dbConnect(): opening connection to postgres: postgres://user3d78ccb5880a4fc7acea4c46d4070b03:46a460f2db5ebb9650239013535bd6031ec0687696300fbf41fe716493af0c4f7070be6a7e52fcc927636b7c99111f4c7f80826dc8489fdf6c7984d24b979634@postgresql/db3d78ccb5880a4fc7acea4c46d4070b03?sslmode=disable Nov 19 13:44:39 2019/11/19 13:44:39 [INFO] database_migrate.go:47 migrateFromDir(): 20 migrations already installed, looking for more Nov 19 13:44:39 2019/11/19 13:44:39 [INFO] database_migrate.go:91 migrateFromDir(): none found Nov 19 13:44:39 2019/11/19 13:44:39 [INFO] smtp_configure.go:39 smtpConfigure(): configuring smtp: mail:2465 Nov 19 13:44:39 2019/11/19 13:44:39 [WARNING] smtp_configure.go:48 smtpConfigure(): configuring smtp allowing self signed TLS certificates Nov 19 13:44:39 2019/11/19 13:44:39 [INFO] smtp_templates.go:28 smtpTemplatesLoad(): loading templates: [confirm-hex reset-hex domain-export domain-export-error] Nov 19 13:44:39 2019/11/19 13:44:39 [INFO] sigint.go:15 sigintCleanupSetup(): setting up SIGINT cleanup Nov 19 13:44:39 2019/11/19 13:44:39 [INFO] router.go:32 routesServe(): starting server on 0.0.0.0:8080 Nov 19 13:44:48 => Ensure directores Nov 19 13:44:48 => Ensure custom config file Nov 19 13:44:48 => Prepare environment Nov 19 13:44:48 => Start application Nov 19 13:44:48 2019/11/19 13:44:48 [INFO] database_connect.go:13 dbConnect(): opening connection to postgres: postgres://user3d78ccb5880a4fc7acea4c46d4070b03:46a460f2db5ebb9650239013535bd6031ec0687696300fbf41fe716493af0c4f7070be6a7e52fcc927636b7c99111f4c7f80826dc8489fdf6c7984d24b979634@postgresql/db3d78ccb5880a4fc7acea4c46d4070b03?sslmode=disable Nov 19 13:44:48 2019/11/19 13:44:48 [INFO] database_migrate.go:47 migrateFromDir(): 20 migrations already installed, looking for more Nov 19 13:44:48 2019/11/19 13:44:48 [INFO] database_migrate.go:91 migrateFromDir(): none found Nov 19 13:44:48 2019/11/19 13:44:48 [INFO] smtp_configure.go:39 smtpConfigure(): configuring smtp: mail:2465 Nov 19 13:44:48 2019/11/19 13:44:48 [WARNING] smtp_configure.go:48 smtpConfigure(): configuring smtp allowing self signed TLS certificates Nov 19 13:44:48 2019/11/19 13:44:48 [INFO] smtp_templates.go:28 smtpTemplatesLoad(): loading templates: [confirm-hex reset-hex domain-export domain-export-error] Nov 19 13:44:48 2019/11/19 13:44:48 [INFO] sigint.go:15 sigintCleanupSetup(): setting up SIGINT cleanup Nov 19 13:44:48 2019/11/19 13:44:48 [INFO] router.go:32 routesServe(): starting server on 0.0.0.0:8080 Nov 19 13:45:54 2019/11/19 13:45:54 [ERROR] smtp_owner_reset_hex.go:19 smtpOwnerResetHex(): cannot send reset email: gomail: could not send email 1: gomail: invalid address "=?UTF-8?q?XXXXXXXXXXXX<post@XXXXXXX.XX>?=": mail: expected single address, got "?="
I would appreciate any help!
-
This should definitely work. In fact, @nebulon submitted a patch to commento just to make email sending work which I believe is part of the Cloudron package already - https://gitlab.com/commento/commento/merge_requests/88 . I will let @nebulon comment
-
I just did a verification on my instance and it can send emails as such (already the initial user-registration requires that to work).
Not sure how you triggeredNov 19 13:45:54 2019/11/19 13:45:54 [ERROR] smtp_owner_reset_hex.go:19 smtpOwnerResetHex(): cannot send reset email: gomail: could not send email 1: gomail: invalid address "=?UTF-8?q?XXXXXXXXXXXX<post@XXXXXXX.XX>?=": mail: expected single address, got "?="
But something does look odd with that email address. Does the address by any chance contain special characters, which may break something in commento?
-
Hey @nebulon
no I don't think that the adress does contain any special characters. I just exchanged the complete adress with "xxx..." for privacy reasons.
It is a complete normal email adress, with characters from a-z and the TLD is .cc
It is also the first email being registered in this instance, right after the setup.Just for control - i will reinstall the app and try another emailadress, one which is hosted at protonmail.com and report back.
o/ -
@girish it would be great if this behavior was described in the cloudron package documentation. it's good that i have now fixed all my email problems in cloudron, but it would have been even better if i had known that the ü in my last name was causing the problems i wanted to work around