Skip to content

Commit 06c5398

Browse files
authored
docs: Added email test steps (#291)
* docs: Added email test steps #267 * Added known issue from #290 * Clarified DAVx5 known issue * Added instructions for gmail app passwords
1 parent e2c752f commit 06c5398

1 file changed

Lines changed: 42 additions & 1 deletion

File tree

docs/email-guide.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,30 @@ In order to send out emails, you need a working SMTP service - you can host your
66

77
The entire email configuration is stored in the `MSMTPRC` environment variable.
88

9+
> [!Tip]
10+
> After you have set up your configuration, you can run a quick test by sending an email from the command line.
11+
>
12+
> This is especially helpful when you do not receive emails from Baikal and you want to narrow down the error.
13+
>
14+
> 1. Start your Baikal container with the SMTP configuration
15+
> 1. Open a command prompt inside the Baikal container
16+
>
17+
> ```sh
18+
> docker exec -it <conatiner_name> /bin/sh
19+
> ```
20+
>
21+
> 1. Send an email
22+
>
23+
> ```sh
24+
> echo "Hello world." | msmtp -a default your-email-address@example.com
25+
> ```
26+
927
## Generic SMTP server
1028
1129
If you have an SMTP server without security in place, i.e. no authentication or SSL/TLS/STARTTLS, then you only have to configure the SMTP server name. Needless to say it's highly recommended to have authentication and TLS in place.
1230
1331
```yaml
32+
# docker-compose.yaml
1433
services:
1534
baikal:
1635
image: ckulka/baikal:nginx
@@ -25,6 +44,7 @@ services:
2544
If you have TLS and authentication in place, add the following configuration parameters:
2645
2746
```yaml
47+
# docker-compose.yaml
2848
services:
2949
baikal:
3050
image: ckulka/baikal:nginx
@@ -47,11 +67,22 @@ See [examples/docker-compose.email.yaml](../examples/docker-compose.email.yaml)
4767
4868
## Gmail
4969
50-
If you use Gmail as your SMTP server, you have to first allow less secure apps (sendmail) to use Gmail, see [Less secure apps & your Google Account](https://support.google.com/accounts/answer/6010255?hl=en#zippy=).
70+
> [!IMPORTANT]
71+
> Username/password authentication using seems to be no longer available.
72+
>
73+
> For more details, see [Less secure apps & your Google Account](https://support.google.com/accounts/answer/6010255).
74+
75+
If you use Gmail as your SMTP server, you have create an app password:
76+
77+
1. Enable two-factor authentication (2FA): <https://myaccount.google.com/signinoptions/twosv>
78+
2. Create an app password: <https://myaccount.google.com/u/0/apppasswords>
79+
80+
For more details on app passwords, see [Sign in with app passwords](https://support.google.com/accounts/answer/185833).
5181
5282
Once that is done, use the following configuration:
5383
5484
```yaml
85+
# docker-compose.yaml
5586
services:
5687
baikal:
5788
image: ckulka/baikal:nginx
@@ -70,3 +101,13 @@ services:
70101
```
71102
72103
See [examples/docker-compose.sendmail-gmail.yaml](../examples/docker-compose.email-gmail.yaml) for a starter template.
104+
105+
## Known issues
106+
107+
### DAVx5 but usernames are not an emails
108+
109+
When using DAVx5, then your Baikal usernames must be email addresses, otherwise email invitations will not be sent out.
110+
111+
For more details, see <https://manual.davx5.com/accounts_collections.html#account-names>.
112+
113+
Kodus to @deathblade666 for finding this out in <https://github.com/ckulka/baikal-docker/issues/290#issuecomment-3136438356>.

0 commit comments

Comments
 (0)