Commit 8086f126 authored by Zeke Hendrickson's avatar Zeke Hendrickson
Browse files

Changes for MComm xform

parent f6ee1972
......@@ -6,7 +6,7 @@ mx_names:
us-east-2:
- mx2
simta_version: 2.0.4.4
simta_version: 2.1.0
simta_dkim_selector: mx-2017-01-03
simta_ldap_user: 'cn=simta,ou=mail agents,ou=Security,dc=umich,dc=edu'
simta_ldap_host: 'ldap-mail.itd.umich.edu'
......
......@@ -251,13 +251,31 @@ defaults {
dn = "{{ simta_ldap_user }}";
password = {{ simta_ldap_password }};
}
attributes {
forwarding = mailforwardingaddress;
vacation = onvacation;
}
vacation {
autoreply {
host = {{ simta_vacationhost }};
}
moderation_preface = <<EOD
You received this message because the settings for this MCommunity group
(https://mcommunity.umich.edu/group/$n)
do not permit messages from this sender to be distributed to members.
You may wish to:
1. Forward the message to the group, if you want members to receive the message
and are a permitted sender. If you are not a permitted sender for the group,
have someone who is permitted resend the message.
2. Choose not to have the message received by members.
3. Communicate with the sender ($S)
to explain what you have done.
4. If the group has multiple people designated to receive unpermitted
messages, coordinate your actions with them.
If you believe you received this message in error, please contact the
MCommunity group owners: $O
EOD
}
}
{% endif %}{# simta_ldap #}
......
core {
interval = 3d;
}
ldap {
uri = ldap://{{ simta_ldap_host }}/
}
......
- hosts: localhost
gather_facts: false
vars:
classes:
- Class_authn_relay
- Class_authz_relay
- Class_authz_static
- Class_egress
- Class_jail
- Class_mx
- Class_relay_egress
- Class_vdc_relay
tasks:
- add_host:
groups: targets
name: "{{ item }}"
loop: "{{ groups['region_' ~ (aws_region | replace('-', '_'))] }}"
when: hostvars[item]['group_names'] | intersect(classes)
- hosts: targets
gather_facts: false
tasks:
- command: simta -V
register: result
- set_fact:
outdated_simta: "{{ result.stdout }}"
my_class: "{{ group_names | select('match', 'Class_') | first | replace('Class_', '') }}"
when: result.stdout is version(simta_version, '<>')
- hosts: localhost
gather_facts: false
vars:
outdated_hosts: "{{ groups.targets | map('extract', hostvars) | selectattr('outdated_simta', 'defined') | map(attribute='inventory_hostname') }}"
tasks:
- assert:
that: not outdated_hosts
fail_msg: "Classes with outdated hosts: {{ grouped_oh | map(attribute=0) | zip(grouped_oh | map(attribute=1) | map('length')) | map('join', ': ') | join(',') }}"
vars:
grouped_oh: "{{ outdated_hosts | map('extract', hostvars) | groupby('my_class') }}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment