SMTP error #1160
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1160
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
I would like to say thanks for Vikunja product 🤙
I test it and maybe propose it on my customers!
I have an error when I test SMTP configuration. I test two SMTP configurations but I always the same error:
Error sending test mail: EOF
with CLI andmail/func1 0a6 Error during connect to smtp server: %s EOF
when I used frontend reset password.Maybe this issue can help you to understand this error... I change all password by
<private>
and all domain bytask.example.org
.CLI Test
Docker compose file
version
Are you sure the mailserver port is correct? And whether it uses TLS or not?
Can you check if you can send emails with the unstable version?
@konrad thanks, it's my config:
VIKUNJA_MAILER_PORT: "465" -> VIKUNJA_MAILER_PORT: "587"
or
VIKUNJA_MAILER_FORCESSL: false -> VIKUNJA_MAILER_FORCESSL: true
sorry for inconvenience!
Hi,
Could you point out where I can find the config file to change my mailserver settings? Having the same issue, I'm not getting the email when I hit "Reset Password".
Thanks
@agichim How are you hosting it? With docker, you'll likely need to create additional env variables in your config. If you're not hosting with docker and don't have a config file, you'll need to create one. Check out the docs about supported locations.
I'm hosting via YunoHost. I found the config.yml file (which is exactly like the sample one) in
etc/vikunja
. But I get that I don't have to edit that file? I still need to create one?I'm reading the docs but can't really understand where exactly I have to create the config file.
I'm not well versed in server configuration. Just learning as I go.
UPDATE:
So I keep forgetting to check the YunoHost repo README for each app. I know where to create the config.yml file. I'm still not sure how the content needs to look like, that will require more knowledge than what I have currently.
But, I got in the API docs of my instance and on the Reset password section I get this error message
{"message":"missing or malformed jwt"}
. I'll look into the Vikunja docs tomorrow, unsure I know what I'm looking for.Cheers
If you have a config file, you'll need to edit it.
In the config there's a section about the mailer: https://kolaente.dev/vikunja/api/src/branch/main/config.yml.sample#L120-L140
That's where you need to configure your mailserver credentials.
The password reset works best when you use it through the frontend. You shouldn't need to use the api manually.
Just to understand this correctly, I have a file in
etc/vikunja
, it looks exactly like the sample file you linked to above and that's the file I have to edit?Yes.
There is something that I'm missing. This is my mailer config and it doesn't work. Again, I'm a newbie with some of these things.
You need an SMTP server account to send mails. Then enter these credentials in the host, username, password and port options.
I'm feeling terrible to be such a bother.
I'm pretty sure it's all configured OK but it's not working.
I have also restarted the server after editing the config file.
Are you able to send a testmail through the command https://vikunja.io/docs/cli/#testmail?
What error message do you get?
Yes! I received the testmail instantly.
When I click "Reset password" it confirms the email was sent. No error message.
I also checked SPAM folder. Emails don't land there.
I also tried to reset password via CLI without parameters and it didn't send the email. But I did just manage to change the password via CLI and it worked. I'll do that for now.
Thanks for the follow-up though.
What's the name of the log file I should check to see why the email doesn't get sent?
What does the log section look like? Like the one that ships with yunohost https://github.com/YunoHost-Apps/vikunja_ynh/blob/master/conf/config.yml#L121-L141
If you have the standard logger set to file, it will put everything in a file in /var/log. If it is set to stdout you'll need to check somewhere else, probably systemd. I don't really know how that works with yunohost so I'd advise you to either set the logger to file and check the file or ask in the GitHub repo https://github.com/YunoHost-Apps/vikunja_ynh/issues
I've seen your last comment, I just don't have the necessary time to look at it calmly.