2
0
forked from drew/smtprelay

feat: Add support for ignoring certs

This commit is contained in:
Dries De Peuter
2021-12-08 14:41:27 +01:00
parent 6c691f3cea
commit 03d109ff8b
3 changed files with 12 additions and 2 deletions

View File

@@ -36,6 +36,7 @@ var (
allowedUsers = flag.String("allowed_users", "", "Path to file with valid users/passwords")
command = flag.String("command", "", "Path to pipe command")
remoteHost = flag.String("remote_host", "", "Outgoing SMTP server")
remoteSkipVerify = flag.Bool("remote_skip_verify", false, "Ignore invalid remote certificates")
remoteUser = flag.String("remote_user", "", "Username for authentication on outgoing SMTP server")
remotePass = flag.String("remote_pass", "", "Password for authentication on outgoing SMTP server")
remoteAuthStr = flag.String("remote_auth", "none", "Auth method on outgoing SMTP server (none, plain, login)")