mirror of
https://github.com/decke/smtprelay.git
synced 2026-04-25 04:45:52 +03:00
[PR #19] [MERGED] Move remaining config option parsing to ConfigLoad() #64
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#64
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?
📋 Pull Request Information
Original PR: https://github.com/decke/smtprelay/pull/19
Author: @JonathonReinhart
Created: 3/14/2021
Status: ✅ Merged
Merged: 4/1/2021
Merged by: @decke
Base:
master← Head:allow-any-sender-recipient📝 Commits (5)
a896ab2Move compilation of allowed_sender to ConfigLoad()7c0ba34Move compilation of allowed_recipients to ConfigLoad()76ef135Clarify allowed_sender/allowed_recipient empty string behavior22ef0c2Move SMTP auth setup to ConfigLoad()3debf41Adjust remote auth disabled check syntax📊 Changes
3 files changed (+90 additions, -43 deletions)
View changed files
📝
config.go(+76 -3)📝
main.go(+10 -38)📝
smtprelay.ini(+4 -2)📄 Description
Move remaining parsing of config options from server callbacks to
ConfigLoad():allowed_senderregex compilationallowed_recipientsregex compilationremote_auth,remote_user,remote_password)With this change, we can catch configuration errors during startup and avoid an error case during connection handling.
This also introduces a
nonetype forremote_auth, and makes it the default. This is a more explicit equivalent of an empty username/password before this change.This was identified during review of #13 and implementation of #15.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.