34 lines
584 B
Plaintext
34 lines
584 B
Plaintext
exim4:
|
|
pkg.installed:
|
|
- name: exim4-daemon-light
|
|
|
|
exim4_conf:
|
|
file.recurse:
|
|
- name: /etc/exim4
|
|
- dir_mode: '0755'
|
|
- file_mode: '0644'
|
|
- source: salt://email-satellite/exim4
|
|
|
|
exim4_update_conf:
|
|
cmd.run:
|
|
- name: update-exim4.conf
|
|
- onchanges:
|
|
- file: exim4_conf
|
|
|
|
enable_exim4_service:
|
|
service.enabled:
|
|
- name: exim4
|
|
|
|
exim4_service:
|
|
service.running:
|
|
- name: exim4
|
|
- reload: true
|
|
- watch:
|
|
- cmd: exim4_update_conf
|
|
|
|
email_aliases:
|
|
file.recurse:
|
|
- name: /etc
|
|
- file_mode: '0644'
|
|
- source: salt://email/aliases
|