You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/email-guide.md
+42-1Lines changed: 42 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,30 @@ In order to send out emails, you need a working SMTP service - you can host your
6
6
7
7
The entire email configuration is stored in the `MSMTPRC` environment variable.
8
8
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
+
9
27
## Generic SMTP server
10
28
11
29
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.
12
30
13
31
```yaml
32
+
# docker-compose.yaml
14
33
services:
15
34
baikal:
16
35
image: ckulka/baikal:nginx
@@ -25,6 +44,7 @@ services:
25
44
If you have TLS and authentication in place, add the following configuration parameters:
26
45
27
46
```yaml
47
+
# docker-compose.yaml
28
48
services:
29
49
baikal:
30
50
image: ckulka/baikal:nginx
@@ -47,11 +67,22 @@ See [examples/docker-compose.email.yaml](../examples/docker-compose.email.yaml)
47
67
48
68
## Gmail
49
69
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:
0 commit comments