Allow config to have multiple remotes.

This will enable development teams to test emails from
a system like mailcatcher while also having the email
delivered to the indented mailbox.
This commit is contained in:
Mark Gardner
2022-02-25 07:37:12 -06:00
parent 4f1148d77b
commit 4221919689
8 changed files with 239 additions and 112 deletions

View File

@@ -87,27 +87,25 @@
; If not set, mails are discarded.
; GMail
;remote_host = smtp.gmail.com:587
;remotes = smtp://user:pass@smtp.gmail.com:587
; Mailgun.org
;remote_host = smtp.mailgun.org:587
;remotes = smtp://user:pass@smtp.mailgun.org:587
; Mailjet.com
;remote_host = in-v3.mailjet.com:587
;remotes = smtp://user:pass@in-v3.mailjet.com:587
; Ignore remote host certificates
;remote_skip_verify = false
;remotes = smtp://user:pass@server:2525?skipVerify
; Authentication credentials on outgoing SMTP server
;remote_user =
;remote_pass =
; Authentication method on outgoing SMTP server
; (none, plain, login)
;remote_auth = none
; Login Authentication method on outgoing SMTP server
;remotes = smtp://user:pass@server:2525?auth=login
; Sender e-mail address on outgoing SMTP server
;remote_sender =
;remotes = smtp://user:pass@server:2525/overridden@email.com?auth=login
; Multiple remotes
;remotes = smtp://127.0.0.1:1025 smtp://user:pass@smtp.mailgun.org:587
; Pipe messages to external command
;command = /usr/local/bin/script