Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
105fdfad
Commit
105fdfad
authored
Feb 12, 2017
by
Florian Pritz
Browse files
postfix: Add support for patchwork
Signed-off-by:
Florian Pritz
<
bluewind@xinu.at
>
parent
1275d262
Changes
5
Hide whitespace changes
Inline
Side-by-side
playbooks/apollo.yml
View file @
105fdfad
...
...
@@ -12,7 +12,7 @@
-
{
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
:
spampd
,
tags
:
[
"
mail"
,
"
spampd"
]
}
-
{
role
:
postfix
,
postfix_server
:
false
,
postfix_smtpd_public
:
fals
e
,
tags
:
[
"
mail"
,
"
postfix"
]
}
-
{
role
:
postfix
,
postfix_server
:
false
,
postfix_smtpd_public
:
true
,
postfix_patchwork_enabled
:
tru
e
,
tags
:
[
"
mail"
,
"
postfix"
]
}
-
{
role
:
opendkim
,
dkim_selector
:
apollo
,
tags
:
[
'
mail'
,
"
opendkim"
]
}
-
{
role
:
dovecot
,
tags
:
[
'
mail'
,
"
dovecot"
]
}
-
{
role
:
postfwd
,
tags
:
[
'
mail'
,
"
postfwd"
]
}
...
...
roles/postfix/defaults/main.yml
View file @
105fdfad
...
...
@@ -2,3 +2,6 @@
postfix_smtpd_public
:
false
postfix_server
:
false
postfix_patchwork_enabled
:
false
postfix_patchwork_user
:
"
patchwork"
postfix_patchwork_mail_handler
:
"
/srv/http/patchwork/parsemail.sh"
roles/postfix/templates/main.cf.j2
View file @
105fdfad
...
...
@@ -179,11 +179,20 @@ local_recipient_maps =
relocated_maps = ${indexed}/relocated
{% endif %}
relay_domains =
{%if postfix_patchwork_enabled %}
archlinux.org
{% endif %}
transport_maps =
${indexed}/transport
${indexed}/compat_maps
#${indexed}/temporary_mailman_maps
{% if postfix_patchwork_enabled %}
patchwork_destination_recipient_limit = 1
{% endif %}
authorized_mailq_users = root
header_checks = pcre:/etc/postfix/header_checks
...
...
roles/postfix/templates/master.cf.j2
View file @
105fdfad
...
...
@@ -103,3 +103,8 @@ scache unix - - n - 1 scache
-o smtpd_reject_footer=
-o smtpd_tls_security_level=none
{% endif %}
{% if postfix_patchwork_enabled %}
patchwork unix - n n - - pipe
flags=DFRX user={{postfix_patchwork_user}} argv={{postfix_patchwork_mail_handler}}
{% endif %}
roles/postfix/templates/transport.j2
View file @
105fdfad
#lists.archlinux.org mailman:
gmail.com smtp-ipv4:
{% if postfix_patchwork_enabled %}
patchwork@archlinux.org patchwork:
{% endif %}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment