## this is the incoming mail receiver container template ## ## After making changes to this file, you MUST rebuild ## /var/discourse/launcher rebuild mail-receiver ## ## BE *VERY* CAREFUL WHEN EDITING! ## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT! ## visit http://www.yamllint.com/ to validate this file as needed base_image: discourse/mail-receiver:release update_pups: false expose: - "2500:25" # SMTP env: LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LANGUAGE: en_US.UTF-8 ## Where e-mail to your forum should be sent. In general, it's perfectly fine ## to use the same domain as the forum itself here. MAIL_DOMAIN: community.openstreetmap.org POSTCONF_smtpd_tls_key_file: /shared/ssl/ssl.key POSTCONF_smtpd_tls_cert_file: /shared/ssl/ssl.crt POSTCONF_smtpd_tls_security_level: may ## The URL of the mail processing endpoint of your Discourse forum. ## This is simply your forum's base URL, with `/admin/email/handle_mail` ## appended. Be careful if you're running a subfolder setup -- in that case, ## the URL needs to have the subfolder included! DISCOURSE_MAIL_ENDPOINT: 'https://community.openstreetmap.org/admin/email/handle_mail' ## The master API key of your Discourse forum. You can get this from ## the "API" tab of your admin panel. DISCOURSE_API_KEY: '<%= @passwords["mail_receiver_api_key"] %>' ## The username to use for processing incoming e-mail. Unless you have ## renamed the `system` user, you should leave this as-is. DISCOURSE_API_USERNAME: system volumes: - volume: host: /srv/community.openstreetmap.org/shared/mail-receiver/postfix-spool guest: /var/spool/postfix - volume: host: /etc/ssl/certs/community.openstreetmap.org.pem guest: /shared/ssl/ssl.crt - volume: host: /etc/ssl/private/community.openstreetmap.org.key guest: /shared/ssl/ssl.key - volume: host: /srv/community.openstreetmap.org/files/policyd-spf.conf guest: /etc/postfix-policyd-spf-python/policyd-spf.conf