YunoHost-Apps / listmonk_ynh

Listmonk package for YunoHost
https://listmonk.app/
GNU General Public License v3.0
4 stars 2 forks source link

Emails are not sent #3

Closed xplosionmind closed 2 years ago

xplosionmind commented 2 years ago

Describe the bug

Any sort of email, campaigns, subscription confirmations, test emails for campaign preview… none of them is effectively sent. DNS Records are correctly configured, there must be some bug in the app itself.

Context

Steps to reproduce

Expected behavior

Emails should arrive in the inbox.

ericgaspar commented 2 years ago

It may be worth sharing your SMTP settings.

xplosionmind commented 2 years ago

Thanks a lot! The point is that I do not know to which mailserver should I point listmonk to! I believed it provided a mailserver itself

ericgaspar commented 2 years ago

There is no mail settings on the configuration file. So everything is set through the admin interface. You can try to set Host to localhost on Port 25

xplosionmind commented 2 years ago

This is my current config, and it is not working. I tried using any authentication method, using my YunoHost username and password.

Screen Shot 2022-04-13 at 1 52 24 PM
xplosionmind commented 2 years ago

Update: I attempted using every authentication method with port 587, too.

Furthermore, I noticed that apparently my 72 characters password is shortened to one of 8. Might this be the problem? The password is alpha-numeric only.

Screen Shot 2022-04-13 at 2 01 52 PM

⬆️ Before applying settings ⬆️


Screen Shot 2022-04-13 at 2 02 01 PM

⬆️ after applying settings ⬆️

ericgaspar commented 2 years ago

I have managed to send emails please see this tutorial: https://www.youtube.com/watch?v=fAOBqgR9Yfo

xplosionmind commented 2 years ago

Sorry @ericgaspar, but I configured my mailserver the same as it is in the video, and it still does not work

Screen Shot 2022-04-13 at 2 42 23 PM Screen Shot 2022-04-13 at 2 43 02 PM
ericgaspar commented 2 years ago

what are the logs saying? (left column tab)

xplosionmind commented 2 years ago
2022/04/13 14:41:34v2.1.0 (0ecfb89 2022-02-12T15:27:45Z)
2022/04/13 14:41:34reading config: config.toml
2022/04/13 14:41:34connecting to db: localhost:5432/listmonk
2022/04/13 14:41:34media upload provider: s3
2022/04/13 14:41:34loaded email (SMTP) messenger: tommi@localhost
2022/04/13 14:41:34loaded email (SMTP) messenger: @
2022/04/13 14:41:46error sending message in campaign Test: subscriber 9037d59f-efd1-4478-8ad3-dbd060d2f493: tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config
2022/04/13 14:41:52error sending message in campaign Test campaign: subscriber 9037d59f-efd1-4478-8ad3-dbd060d2f493: tls: either ServerName or InsecureSkipVerify must be specified in the tls.Config

Apparently there is some TLS problem but the subscriber in question is my email surfing@tommi.space and it is working perfectly.

ericgaspar commented 2 years ago

I don't know what to say... Try to be as close as that (remove username, password, uncheck skip TLS verification...) Capture d’écran 5

And don't forget to save the settings.

Be sure to delete the other SMTP config

xplosionmind commented 2 years ago

Ok, wonderful! It now works!