You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... the documentation does not mention anything about my problem
... there are no open or closed issues that are related to my problem
Description
I suspect a bug in loading username and password from file, as required by the SMTP notification. This may be related to Unsupported external secret #799. I'm running Diun with Docker Compose:
For testing the notification, I use diun notif test inside the running docker container. When I specify the password with DIUN_NOTIF_MAIL_PASSWORD, as shown in the commented line above, it works and a test email is sent. As soon as I use DIUN_NOTIF_MAIL_PASSWORDFILE, I get the following error:
This is the corresponding entry in the mail.log on the receiving mail server:
Feb 4 11:50:01 yyy postfix/submission/smtpd[27927]: warning: xxx: SASL PLAIN authentication failed:
Feb 4 11:50:01 yyy postfix/submission/smtpd[27927]: disconnect from xxx ehlo=2 starttls=1 auth=0/1 quit=1 unknown=0/1 commands=4/6
The same happens when I use DIUN_NOTIF_MAIL_USERNAMEFILE. I verified that the password in the file via cat -e /run/secrets/smtp_password, it is correct and has no additional line breaks etc. I set the access rights to 777 for testing:
drwxr-xr-x 2 root root 4.0K Feb 4 12:28 .
drwxr-xr-x 1 root root 4.0K Feb 4 12:28 ..
-rwxrwxrwx 1 root root 65 Feb 4 12:11 smtp_password
-rwxrwxrwx 1 root root 24 Feb 4 12:26 smtp_user
Since it works with directly specifying the password, the password in the mounted secret file seems to be correct, the access rights seem to be correct and it works with the password being specified directly, I conclude that there is a bug here.
Can you please confirm?
Expected behaviour
The SMTP notification should be sent when the password is specified via a file.
Actual behaviour
No SMTP notification is sent when the password is specified via a file, only when it is specified directly.
Support guidelines
I've found a bug and checked that ...
Description
I suspect a bug in loading username and password from file, as required by the SMTP notification. This may be related to Unsupported external secret #799. I'm running Diun with Docker Compose:
For testing the notification, I use
diun notif test
inside the running docker container. When I specify the password withDIUN_NOTIF_MAIL_PASSWORD
, as shown in the commented line above, it works and a test email is sent. As soon as I useDIUN_NOTIF_MAIL_PASSWORDFILE
, I get the following error:diun: error: rpc error: code = Unknown desc = 535 5.7.8 Error: authentication failed:
This is the corresponding entry in the
mail.log
on the receiving mail server:The same happens when I use
DIUN_NOTIF_MAIL_USERNAMEFILE
. I verified that the password in the file viacat -e /run/secrets/smtp_password
, it is correct and has no additional line breaks etc. I set the access rights to 777 for testing:Since it works with directly specifying the password, the password in the mounted secret file seems to be correct, the access rights seem to be correct and it works with the password being specified directly, I conclude that there is a bug here.
Can you please confirm?
Expected behaviour
The SMTP notification should be sent when the password is specified via a file.
Actual behaviour
No SMTP notification is sent when the password is specified via a file, only when it is specified directly.
Steps to reproduce
docker exec -it diun sh
diun notif test
Diun version
4.29.0
Docker info
Docker Compose config
Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: