mirror of
https://github.com/glenndehaan/unifi-voucher-site.git
synced 2026-05-09 08:25:29 +02:00
[GH-ISSUE #44] SMTP Issue #24
Labels
No labels
bug
enhancement
pull-request
question
question
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/unifi-voucher-site#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @g-guglielmi on GitHub (Oct 8, 2024).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/44
Originally assigned to: @glenndehaan on GitHub.
The problem
Even when specifying the "SMTP_SECURE: false" parameter in the configuration file, the connection to the local mail server using the private IP gives the error "[Mail] Hostname/IP does not match certificate's altnames: IP: 10.xxx.xxx.xxx is not in the cert's list:".
It would be nice to add a skip certificate check parameter. I found the following parameter online for the nodemailer connection:
What version of UniFi Voucher Site has the issue?
4.1.3
What was the last working version of UniFi Voucher Site?
No response
What type of installation are you running?
Docker
Anything in the logs that might be useful for us?
Additional information
Another strange behaviour.
To work around this issue, I created in docker a "hosts file entry", so that I was using the correct hostname and not the local IP.
But this also doesn't work. I get a "Connection Timeout error". The unifi network app on the same docker host with this configuration works perfectly.
@glenndehaan commented on GitHub (Oct 8, 2024):
Hi @ginlik1996,
I have just released version 4.1.4. This should fix 2 issues.
The other issue you describe with the hosts file is indeed another strange one. The problem here is that this is not an easy one for me to reproduce. Therefore I hope that these 2 patches will fix the issue without you requiring to hotfix the hosts file.
@g-guglielmi commented on GitHub (Oct 8, 2024):
Thank you for the fast response!
I'll try it ASAP.
The strange thing with the host entry, is that if i open the console i can ping it and it gets resolved correctly.
But if the fix that you implemented works as expected i won't bother to use the host entry.
Thanks!
@g-guglielmi commented on GitHub (Oct 8, 2024):
Tested the new release and now is working correctly using the "SMTP_SECURE" variable.
Thanks for the amazing work!