From 4a4b5dc52bcff37cb4a5c41ea4dd0fa8b8b51bb2 Mon Sep 17 00:00:00 2001 From: Mathijs van Veluw Date: Tue, 4 Feb 2025 17:11:56 +0100 Subject: [PATCH] remove less-then and greater-then signs from config values to prevent issues --- SMTP-Configuration.md | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/SMTP-Configuration.md b/SMTP-Configuration.md index 6107726..51d7ac4 100644 --- a/SMTP-Configuration.md +++ b/SMTP-Configuration.md @@ -2,12 +2,12 @@ You can configure vaultwarden to send emails via a SMTP agent: ```sh docker run -d --name vaultwarden \ - -e SMTP_HOST= \ - -e SMTP_FROM= \ + -e SMTP_HOST=smtp.domain.tld \ + -e SMTP_FROM=vaultwarden@domain.tld \ -e SMTP_PORT=587 \ -e SMTP_SECURITY=starttls \ - -e SMTP_USERNAME= \ - -e SMTP_PASSWORD= \ + -e SMTP_USERNAME=myusername \ + -e SMTP_PASSWORD=MyPassw0rd \ -v /vw-data/:/data/ \ -p 80:80 \ vaultwarden/server:latest @@ -78,26 +78,26 @@ In the end you well be shown a password (with spaces in between which are not th > [!NOTE] If that is not possible (because of your security settings), you can see [the section below about OAuth2 support](#oauth2-support) for more information. -StartTLS: -```ini - # Domains: gmail.com, googlemail.com - SMTP_HOST=smtp.gmail.com - SMTP_PORT=587 - SMTP_SECURITY=starttls - SMTP_FROM= - SMTP_USERNAME= - SMTP_PASSWORD= -``` - FullSSL: ```ini # Domains: gmail.com, googlemail.com SMTP_HOST=smtp.gmail.com SMTP_PORT=465 SMTP_SECURITY=force_tls - SMTP_FROM= - SMTP_USERNAME= - SMTP_PASSWORD= + SMTP_FROM=user@gmail.tld + SMTP_USERNAME=user@gmail.tld + SMTP_PASSWORD=Less-Secure-App-Passw0rd +``` + +StartTLS: +```ini + # Domains: gmail.com, googlemail.com + SMTP_HOST=smtp.gmail.com + SMTP_PORT=587 + SMTP_SECURITY=starttls + SMTP_FROM=user@gmail.tld + SMTP_USERNAME=user@gmail.tld + SMTP_PASSWORD=Less-Secure-App-Passw0rd ``` Also see: https://web.archive.org/web/20210925161633/https://webewizard.com/2019/09/17/Using-Lettre-With-Gmail/ @@ -112,9 +112,9 @@ Due to Microsoft requiring OAuth2 support this will not work anymore. See [the t SMTP_HOST=smtp-mail.outlook.com SMTP_PORT=587 SMTP_SECURITY=starttls - SMTP_FROM= - SMTP_USERNAME= - SMTP_PASSWORD= + SMTP_FROM=user@hotmail.tld + SMTP_USERNAME=user@hotmail.tld + SMTP_PASSWORD=MyPassw0rd SMTP_AUTH_MECHANISM="Login" ```