mirror of
https://github.com/decke/smtprelay.git
synced 2026-04-25 04:45:52 +03:00
[GH-ISSUE #79] Cannot use settings from ini file #16
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/smtprelay#16
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 @cristianlivella on GitHub (Jun 29, 2022).
Original GitHub issue: https://github.com/decke/smtprelay/issues/79
I don't know if I am doing something wrong, but it seems that reading the configuration from the ini file doesn't work.
If I try to run smtprelay with
./smtprelay -config smtprelay.ini, execution ends immediately without any output.Maybe there is something wrong with reading files, because the
-logfileparameter also seems not to work.Tried on Fedora 33 and Raspbian 9.9, builded with go1.18.3.
@HakunMatat4 commented on GitHub (Jul 13, 2022):
That is weird, it has to work.
This is how I run it:
Docker/Kubernetes containers:
"/usr/local/bin/smtprelay", "-config", "/etc/smtprelay/smtprelay.ini", "/var/log/smtprelay.log"Terminal:
/usr/local/bin/smtprelay -config /etc/smtprelay/smtprelay.iniThen I check the log file set with
-logfile@yannleretaille commented on GitHub (Aug 1, 2022):
I can confirm this seems to be an issue with the current master branch but not with the 1.8.0 release. When specifying a (valid) file with
-config, the program just ends with no output.@ghuntley commented on GitHub (Aug 2, 2022):
Confirmed; returns RC=1
@decke commented on GitHub (Aug 2, 2022):
Thanks for the reports, it should be fixed now!