mirror of
https://github.com/pikami/mail-server.git
synced 2026-05-21 04:27:09 +01:00
Extract playbook actions to roles
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# {{ ansible_managed }}
|
||||
pki {{ server_domain }} cert "/etc/ssl/{{ server_domain }}.fullchain.pem"
|
||||
pki {{ server_domain }} key "/etc/ssl/private/{{ server_domain }}.key"
|
||||
|
||||
listen on all tls pki {{ server_domain }}
|
||||
|
||||
table aliases file:/etc/mail/aliases
|
||||
|
||||
action "local" mbox alias <aliases>
|
||||
action "relay" relay host {{ primary_mail_server }}
|
||||
|
||||
{% for domain in mail_receive_domains %}
|
||||
match from any for domain {{ domain }} action "relay"
|
||||
{% endfor %}
|
||||
match from local for local action "local"
|
||||
match from local for any action "relay"
|
||||
Reference in New Issue
Block a user