Support OpenSMTPd only on OpenBSD
This commit is contained in:
parent
c8f65fc7bd
commit
a1c96a5369
5 changed files with 9 additions and 40 deletions
|
@ -1,17 +1,9 @@
|
|||
{% if ansible_lo0 is defined %}
|
||||
listen on lo0
|
||||
{% else %}
|
||||
listen on lo
|
||||
{% endif %}
|
||||
|
||||
table aliases file:{{ opensmtpd_aliases }}
|
||||
table aliases file:/etc/mail/aliases
|
||||
|
||||
# use obsolete smtps as it goes through firewalls better than 25
|
||||
{% 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