Commit 105fdfad authored by Florian Pritz's avatar Florian Pritz
Browse files

postfix: Add support for patchwork



Signed-off-by: Florian Pritz's avatarFlorian Pritz <bluewind@xinu.at>
parent 1275d262
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
- { role: nginx, letsencrypt_validation_dir: "/var/lib/letsencrypt", tags: ["nginx"] } - { role: nginx, letsencrypt_validation_dir: "/var/lib/letsencrypt", tags: ["nginx"] }
- { role: planet, planet_domain: "planet.archlinux.org", planet_dir: "/srv/http/planet", tags: ["planet"] } - { role: planet, planet_domain: "planet.archlinux.org", planet_dir: "/srv/http/planet", tags: ["planet"] }
- { role: spampd, tags: ["mail", "spampd"] } - { role: spampd, tags: ["mail", "spampd"] }
- { role: postfix, postfix_server: false, postfix_smtpd_public: false, tags: ["mail", "postfix"] } - { role: postfix, postfix_server: false, postfix_smtpd_public: true, postfix_patchwork_enabled: true, tags: ["mail", "postfix"] }
- { role: opendkim, dkim_selector: apollo, tags: ['mail', "opendkim"] } - { role: opendkim, dkim_selector: apollo, tags: ['mail', "opendkim"] }
- { role: dovecot, tags: ['mail', "dovecot"] } - { role: dovecot, tags: ['mail', "dovecot"] }
- { role: postfwd, tags: ['mail', "postfwd"] } - { role: postfwd, tags: ['mail', "postfwd"] }
......
...@@ -2,3 +2,6 @@ ...@@ -2,3 +2,6 @@
postfix_smtpd_public: false postfix_smtpd_public: false
postfix_server: false postfix_server: false
postfix_patchwork_enabled: false
postfix_patchwork_user: "patchwork"
postfix_patchwork_mail_handler: "/srv/http/patchwork/parsemail.sh"
...@@ -179,11 +179,20 @@ local_recipient_maps = ...@@ -179,11 +179,20 @@ local_recipient_maps =
relocated_maps = ${indexed}/relocated relocated_maps = ${indexed}/relocated
{% endif %} {% endif %}
relay_domains =
{%if postfix_patchwork_enabled %}
archlinux.org
{% endif %}
transport_maps = transport_maps =
${indexed}/transport ${indexed}/transport
${indexed}/compat_maps ${indexed}/compat_maps
#${indexed}/temporary_mailman_maps #${indexed}/temporary_mailman_maps
{% if postfix_patchwork_enabled %}
patchwork_destination_recipient_limit = 1
{% endif %}
authorized_mailq_users = root authorized_mailq_users = root
header_checks = pcre:/etc/postfix/header_checks header_checks = pcre:/etc/postfix/header_checks
......
...@@ -103,3 +103,8 @@ scache unix - - n - 1 scache ...@@ -103,3 +103,8 @@ scache unix - - n - 1 scache
-o smtpd_reject_footer= -o smtpd_reject_footer=
-o smtpd_tls_security_level=none -o smtpd_tls_security_level=none
{% endif %} {% endif %}
{% if postfix_patchwork_enabled %}
patchwork unix - n n - - pipe
flags=DFRX user={{postfix_patchwork_user}} argv={{postfix_patchwork_mail_handler}}
{% endif %}
#lists.archlinux.org mailman: #lists.archlinux.org mailman:
gmail.com smtp-ipv4: gmail.com smtp-ipv4:
{% if postfix_patchwork_enabled %}
patchwork@archlinux.org patchwork:
{% endif %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment