Commit | Line | Data |
---|---|---|
5a92b90f MP |
1 | ## this is the incoming mail receiver container template |
2 | ## | |
3 | ## After making changes to this file, you MUST rebuild | |
4 | ## /var/discourse/launcher rebuild mail-receiver | |
5 | ## | |
6 | ## BE *VERY* CAREFUL WHEN EDITING! | |
7 | ## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT! | |
8 | ## visit http://www.yamllint.com/ to validate this file as needed | |
9 | ||
10 | base_image: discourse/mail-receiver:1.0.0 | |
11 | ||
12 | expose: | |
13 | - "25:25" # SMTP | |
14 | ||
15 | env: | |
16 | LANG: en_US.UTF-8 | |
17 | ||
18 | ## The URL of the mail processing endpoint of your Discourse forum. | |
19 | ## This is simply your forum's base URL, with `/admin/email/handle_mail` | |
20 | ## appended. Be careful if you're running a subfolder setup -- in that case, | |
21 | ## the URL needs to have the subfolder included! | |
22 | DISCOURSE_MAIL_ENDPOINT: 'http://discourse.example.com/admin/email/handle_mail' | |
23 | ||
24 | ## The master API key of your Discourse forum. You can get this from | |
25 | ## the "API" tab of your admin panel. | |
26 | DISCOURSE_API_TOKEN: abcdefghijklmnop | |
27 | ||
28 | ## The username to use for processing incoming e-mail. Unless you have | |
29 | ## renamed the `system` user, you should leave this as-is. | |
30 | DISCOURSE_API_USERNAME: system | |
31 | ||
32 | volumes: | |
33 | - volume: | |
34 | host: /var/discourse/shared/mail-receiver/postfix-spool | |
35 | guest: /var/spool/postfix |