mirror of
https://github.com/pikami/mail-server.git
synced 2024-12-02 23:05:42 +00:00
17 lines
554 B
Plaintext
17 lines
554 B
Plaintext
{% set _mx_domain = lookup('vars', inventory_hostname + '_mail_domain') %}
|
|
pki {{ _mx_domain }} cert "/etc/ssl/{{ _mx_domain }}.fullchain.pem"
|
|
pki {{ _mx_domain }} key "/etc/ssl/private/{{ _mx_domain }}.key"
|
|
|
|
listen on all tls pki {{ _mx_domain }}
|
|
|
|
table aliases file:/etc/mail/aliases
|
|
|
|
action "local" mbox alias <aliases>
|
|
action "relay" relay host {{ mx1_mail_domain }}
|
|
|
|
{% for domain in mail_domains %}
|
|
match from any for domain {{ domain }} action "relay"
|
|
{% endfor %}
|
|
match from local for local action "local"
|
|
match from local for any action "relay"
|