2
0
forked from drew/smtprelay

make possible #91.

- add strict_sender bool configuration value
- if strict_sender set as true use for outgoing mail only SMTPs with sender matches to from address
This commit is contained in:
Sergey Zonov
2022-10-15 17:32:52 +07:00
parent 42d111695d
commit 5b5f738410
2 changed files with 16 additions and 3 deletions

View File

@@ -45,6 +45,7 @@ var (
allowedUsers = flagset.String("allowed_users", "", "Path to file with valid users/passwords")
command = flagset.String("command", "", "Path to pipe command")
remotesStr = flagset.String("remotes", "", "Outgoing SMTP servers")
strictSender = flagset.Bool("strict_sender", false, "Use only SMTP servers with Sender matches to From")
// additional flags
_ = flagset.String("config", "", "Path to config file (ini format)")