feat(app): send through the configured relay with TLS and authentication
- Read the relay password and CA file at startup; refuse to start on an unusable one - Pass TLS mode, server name, CA pool, credentials and EHLO name to the SMTP relay - Default the EHLO name to the host name - Test an authenticating STARTTLS relay, a wrong password (mail stays queued) and the startup checks - Document external relays in the README and the example config
This commit is contained in:
parent
b4e8644757
commit
a6601caed7
1 changed files with 263 additions and 2 deletions
|
|
@ -6,6 +6,11 @@ lmtp:
|
|||
allow: [172.16.0.0/12] # LMTP has no authentication: list who may connect (here: the Docker networks)
|
||||
relay:
|
||||
addr: postfix:25
|
||||
# To send through an external relay (SES, Mailgun, a smarthost) instead:
|
||||
# addr: smtp.example.com:587
|
||||
# tls: starttls
|
||||
# username: user
|
||||
# password_file: /run/secrets/relay-password
|
||||
concurrency: 4 # simultaneous deliveries
|
||||
web:
|
||||
listen: 0.0.0.0:8081 # public archive and unsubscribe pages; "" disables them
|
||||
|
|
|
|||
Loading…
Reference in a new issue