Testmail CLI dosent work correctly. #284

Closed
opened 2026-02-27 14:59:00 -05:00 by deekerman · 5 comments
Owner

Originally created by @majster95 on GitHub (Sep 13, 2024).

Description

Hi, I'm trying to setup SMTP mailer.

I put my SMTP settings and run testmail function, i received "Testmail successfully sent" output but i didnt received any email.
Then, I set wrong password to check for the output and for my suprise I also received "Testmail successfully sent", so that function for sure dosent work correctly.

Btw, Is any chance that Hetzner blocks SMTP requests and that's I cannot send any mail through Vikunja ?

Best regards

Vikunja Version

unstable

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

Please select

Screenshots

No response

Originally created by @majster95 on GitHub (Sep 13, 2024). ### Description Hi, I'm trying to setup SMTP mailer. I put my SMTP settings and run testmail function, i received "Testmail successfully sent" output but i didnt received any email. Then, I set wrong password to check for the output and for my suprise I also received "Testmail successfully sent", so that function for sure dosent work correctly. Btw, Is any chance that Hetzner blocks SMTP requests and that's I cannot send any mail through Vikunja ? Best regards ### Vikunja Version unstable ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? Please select ### Screenshots _No response_
deekerman 2026-02-27 14:59:00 -05:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@kolaente commented on GitHub (Sep 13, 2024):

I put my SMTP settings and run testmail function, i received "Testmail successfully sent" output but i didnt received any email.

Did you check the logs of your mail server?

You can also enable more mail logs in Vikunja: https://vikunja.io/docs/config-options#mail

Then, I set wrong password to check for the output and for my suprise I also received "Testmail successfully sent" output, so that function for sure dosent work correctly.

The cli does not ask for a password. Where did you set a password?

@kolaente commented on GitHub (Sep 13, 2024): >I put my SMTP settings and run testmail function, i received "Testmail successfully sent" output but i didnt received any email. Did you check the logs of your mail server? You can also enable more mail logs in Vikunja: https://vikunja.io/docs/config-options#mail > Then, I set wrong password to check for the output and for my suprise I also received "Testmail successfully sent" output, so that function for sure dosent work correctly. The cli does not ask for a password. Where did you set a password?
Author
Owner

@majster95 commented on GitHub (Sep 13, 2024):

I put my SMTP settings and run testmail function, i received "Testmail successfully sent" output but i didnt received any email.

Did you check the logs of your mail server?

You can also enable more mail logs in Vikunja: https://vikunja.io/docs/config-options#mail

Then, I set wrong password to check for the output and for my suprise I also received "Testmail successfully sent" output, so that function for sure dosent work correctly.

The cli does not ask for a password. Where did you set a password?

I set my password for SMTP by VIKUNJA_MAILER_PASSWORD env.

services:
  vikunja:
    image: vikunja/vikunja:unstable
    environment:
      VIKUNJA_SERVICE_PUBLICURL: website
      VIKUNJA_DATABASE_HOST: db
      VIKUNJA_DATABASE_PASSWORD: password
      VIKUNJA_DATABASE_TYPE: mysql
      VIKUNJA_DATABASE_USER: vikunja
      VIKUNJA_DATABASE_DATABASE: vikunja
      VIKUNJA_SERVICE_ENABLEREGISTRATION: true
      VIKUNJA_SERVICE_JWTSECRET:  secret
      VIKUNJA_MAILER_ENABLED: true
      VIKUNJA_MAILER_HOST: smtp-mail.outlook.com
      VIKUNJA_MAILER_PORT: 587
      VIKUNJA_MAILER_USERNAME: account@outlook.com
      VIKUNJA_MAILER_PASSWORD: password 
      VIKUNJA_MAILER_FROMEMAIL: email@outlook.com
      VIKUNJA_MAILER_FORCESSL: false
      VIKUNJA_MAILER_AUTHTYPE: login

Update:

Ok, now i got more detailed output with debug log level. I'll try to investigate it more and come with an answer.

Thank you

@majster95 commented on GitHub (Sep 13, 2024): > > I put my SMTP settings and run testmail function, i received "Testmail successfully sent" output but i didnt received any email. > > Did you check the logs of your mail server? > > You can also enable more mail logs in Vikunja: https://vikunja.io/docs/config-options#mail > > > Then, I set wrong password to check for the output and for my suprise I also received "Testmail successfully sent" output, so that function for sure dosent work correctly. > > The cli does not ask for a password. Where did you set a password? I set my password for SMTP by VIKUNJA_MAILER_PASSWORD env. ``` services: vikunja: image: vikunja/vikunja:unstable environment: VIKUNJA_SERVICE_PUBLICURL: website VIKUNJA_DATABASE_HOST: db VIKUNJA_DATABASE_PASSWORD: password VIKUNJA_DATABASE_TYPE: mysql VIKUNJA_DATABASE_USER: vikunja VIKUNJA_DATABASE_DATABASE: vikunja VIKUNJA_SERVICE_ENABLEREGISTRATION: true VIKUNJA_SERVICE_JWTSECRET: secret VIKUNJA_MAILER_ENABLED: true VIKUNJA_MAILER_HOST: smtp-mail.outlook.com VIKUNJA_MAILER_PORT: 587 VIKUNJA_MAILER_USERNAME: account@outlook.com VIKUNJA_MAILER_PASSWORD: password VIKUNJA_MAILER_FROMEMAIL: email@outlook.com VIKUNJA_MAILER_FORCESSL: false VIKUNJA_MAILER_AUTHTYPE: login ``` Update: Ok, now i got more detailed output with debug log level. I'll try to investigate it more and come with an answer. Thank you
Author
Owner

@majster95 commented on GitHub (Sep 13, 2024):

I still dont receive any email

2024-09-13T08:30:57.864798309Z: INFO    ▶ cmd/func12 002 Sending testmail...
2024-09-13T08:30:57.91493268Z: DEBUG    ▶ [MAIL] 003 EHLO 06f3b9808f93
2024-09-13T08:30:57.927409548Z: DEBUG   ▶ [MAIL] 004 250 changed_here.outlook.office365.com Hello [changed here]
SIZE 157286400
PIPELINING
DSN
ENHANCEDSTATUSCODES
STARTTLS
8BITMIME
BINARYMIME
CHUNKING
SMTPUTF8
2024-09-13T08:30:57.927576257Z: DEBUG   ▶ [MAIL] 005 STARTTLS
2024-09-13T08:30:57.939929403Z: DEBUG   ▶ [MAIL] 006 220 2.0.0 SMTP server ready
2024-09-13T08:30:57.940054943Z: DEBUG   ▶ [MAIL] 007 EHLO 06f3b9808f93
2024-09-13T08:30:58.006206862Z: DEBUG   ▶ [MAIL] 008 250 changed_here.outlook.office365.com Hello [changed here]
SIZE 157286400
PIPELINING
DSN
ENHANCEDSTATUSCODES
AUTH LOGIN XOAUTH2
8BITMIME
BINARYMIME
CHUNKING
SMTPUTF8
2024-09-13T08:30:58.006348683Z: DEBUG   ▶ [MAIL] 009 NOOP
2024-09-13T08:31:03.012112149Z: DEBUG   ▶ [MAIL] 00a 250 2.0.0 OK
2024-09-13T08:31:03.012299768Z: INFO    ▶ cmd/func12 00b Testmail successfully sent.
@majster95 commented on GitHub (Sep 13, 2024): I still dont receive any email ``` 2024-09-13T08:30:57.864798309Z: INFO ▶ cmd/func12 002 Sending testmail... 2024-09-13T08:30:57.91493268Z: DEBUG ▶ [MAIL] 003 EHLO 06f3b9808f93 2024-09-13T08:30:57.927409548Z: DEBUG ▶ [MAIL] 004 250 changed_here.outlook.office365.com Hello [changed here] SIZE 157286400 PIPELINING DSN ENHANCEDSTATUSCODES STARTTLS 8BITMIME BINARYMIME CHUNKING SMTPUTF8 2024-09-13T08:30:57.927576257Z: DEBUG ▶ [MAIL] 005 STARTTLS 2024-09-13T08:30:57.939929403Z: DEBUG ▶ [MAIL] 006 220 2.0.0 SMTP server ready 2024-09-13T08:30:57.940054943Z: DEBUG ▶ [MAIL] 007 EHLO 06f3b9808f93 2024-09-13T08:30:58.006206862Z: DEBUG ▶ [MAIL] 008 250 changed_here.outlook.office365.com Hello [changed here] SIZE 157286400 PIPELINING DSN ENHANCEDSTATUSCODES AUTH LOGIN XOAUTH2 8BITMIME BINARYMIME CHUNKING SMTPUTF8 2024-09-13T08:30:58.006348683Z: DEBUG ▶ [MAIL] 009 NOOP 2024-09-13T08:31:03.012112149Z: DEBUG ▶ [MAIL] 00a 250 2.0.0 OK 2024-09-13T08:31:03.012299768Z: INFO ▶ cmd/func12 00b Testmail successfully sent. ```
Author
Owner

@kolaente commented on GitHub (Sep 13, 2024):

What do the logs of your mail server say?

@kolaente commented on GitHub (Sep 13, 2024): What do the logs of your mail server say?
Author
Owner

@majster95 commented on GitHub (Sep 13, 2024):

It seems it was a problem with SMTP server, got it working with Gmail.

Thank you

@majster95 commented on GitHub (Sep 13, 2024): It seems it was a problem with SMTP server, got it working with Gmail. Thank you
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vikunja-go-vikunja#284
No description provided.