Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
804 B

---
- name: Configure Zimbra's sendmail as alternative to sendmail
alternatives:
name: mta
link: /usr/sbin/sendmail
path: /opt/zimbra/common/sbin/sendmail
priority: 90
tags: zcs
- name: Set zimbra's sendmail as the default sendmail
command: update-alternatives --set mta /opt/zimbra/common/sbin/sendmail
changed_when: False
tags: zcs
- name: Patch zmpostfixpolicyd to support recipient delimiter
patch:
src: zmpostfixpolicyd_recipient_delim.patch
dest: /opt/zimbra/libexec/zmpostfixpolicyd
notify: restart zimbra
tags: zcs
- name: Handle Zimbra mta ports
iptables_raw:
name: zcs_mta_ports
state: present
rules: "-A INPUT -m state --state NEW -p tcp -m multiport --dports 25,465,587 -j ACCEPT"
when: iptables_manage | default(True)
tags: zcs