[GH-ISSUE #79] Cannot use settings from ini file #16

Closed
opened 2026-02-26 18:32:58 +03:00 by kerem · 4 comments
Owner

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 -logfile parameter also seems not to work.

Tried on Fedora 33 and Raspbian 9.9, builded with go1.18.3.

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 `-logfile` parameter also seems not to work. Tried on Fedora 33 and Raspbian 9.9, builded with go1.18.3.
kerem closed this issue 2026-02-26 18:32:58 +03:00
Author
Owner

@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.ini

Then I check the log file set with -logfile

<!-- gh-comment-id:1182703464 --> @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.ini` Then I check the log file set with `-logfile`
Author
Owner

@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.

<!-- gh-comment-id:1201299651 --> @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.
Author
Owner

@ghuntley commented on GitHub (Aug 2, 2022):

When specifying a (valid) file with -config, the program just ends with no output.

Confirmed; returns RC=1

<!-- gh-comment-id:1202106439 --> @ghuntley commented on GitHub (Aug 2, 2022): > When specifying a (valid) file with -config, the program just ends with no output. Confirmed; returns RC=1
Author
Owner

@decke commented on GitHub (Aug 2, 2022):

Thanks for the reports, it should be fixed now!

<!-- gh-comment-id:1202325651 --> @decke commented on GitHub (Aug 2, 2022): Thanks for the reports, it should be fixed now!
Sign in to join this conversation.
No labels
bug
pull-request
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/smtprelay#16
No description provided.