add openbsd support to opensmtpd role
This commit is contained in:
parent
745b4a5a77
commit
e022e3f991
5 changed files with 45 additions and 16 deletions
|
@ -1,6 +1,17 @@
|
|||
{% if ansible_lo0 %}
|
||||
listen on lo0
|
||||
{% else %}
|
||||
listen on lo
|
||||
{% endif %}
|
||||
|
||||
table aliases file:/etc/aliases
|
||||
table aliases file:{{ opensmtpd_aliases }}
|
||||
|
||||
# use obsolete smtps as it goes through firewalls better than 25
|
||||
accept from local for any relay via smtps://{{ mail_server }} as "@{{ mail_domain }}"
|
||||
{% if ansible_os_family in ["OpenBSD"] %}
|
||||
action "local" mbox alias <aliases>
|
||||
action "relay" relay host smtps://{{ mail_server }} mail-from "@{{ mail_domain }}"
|
||||
match for local action "local"
|
||||
match for any action "relay"
|
||||
{% else %}
|
||||
accept from local for any relay via smtps://mail.foo.sh as "@foo.sh"
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue