@@ -2,17 +2,18 @@ debconf-utils:
2
2
pkg.installed :
3
3
- order: 1
4
4
5
- exim_packages :
5
+ exim4 :
6
6
pkg.installed :
7
- - pkgs:
8
- - exim4
9
7
- require:
10
8
- debconf: exim4_config
11
9
- order: 2
10
+ service.running :
11
+ - enable: True
12
+ - watch:
13
+ - file: /etc/exim4/*
12
14
13
- exim4_setup :
15
+ exim4_config :
14
16
debconf.set :
15
- - name: exim4_config
16
17
- data:
17
18
' exim4/mailname' : {' type' : ' string' , ' value' : {{ grains[' localhost' ] }} }
18
19
' exim4/dc_localdelivery' : {' type' : ' select' , ' value' : ' mbox format in /var/mail/' }
@@ -24,14 +25,7 @@ exim4_setup:
24
25
- require:
25
26
- pkg: debconf-utils
26
27
27
- exim4_service:
28
- service.running :
29
- - name: exim4
30
- - enable: True
31
- - watch:
32
- - file: /etc/exim4/*
33
-
34
- create_dir_dkim:
28
+ /etc/exim4/dkim :
35
29
file.directory :
36
30
- name: /etc/exim4/dkim
37
31
- makedirs: True
@@ -55,16 +49,6 @@ generate_public_cert:
55
49
- cwd: /etc/exim4/dkim/
56
50
- creates: /etc/exim4/dkim/ {{ pillar[' dkim_public_key' ] }}
57
51
58
- chown_dkim:
59
- file.directory :
60
- - name: /etc/exim4/dkim
61
- - makedirs: True
62
- - user: Debian-exim
63
- - group: Debian-exim
64
- - recurse:
65
- - user
66
- - group
67
-
68
52
exim4_dkim:
69
53
file.blockreplace :
70
54
- name: /etc/exim4/exim4.conf.template
@@ -84,14 +68,12 @@ exim4_config_localmail:
84
68
- content: ' domainlist local_domains = localhost : localhost.localdomain'
85
69
- match: ' domainlist local_domains = MAIN_LOCAL_DOMAINS'
86
70
87
- exim4_config_localmacros :
71
+ / etc/exim4/exim4.conf.localmacros :
88
72
file.managed :
89
- - name: /etc/exim4/exim4.conf.localmacros
90
73
- contents: ' MAIN_TLS_ENABLE = 1'
91
74
92
- exim4_conf :
75
+ / etc/exim4/update-exim4.conf.conf :
93
76
file.managed :
94
- - name: /etc/exim4/update-exim4.conf.conf
95
77
- contents: |
96
78
dc_eximconfig_configtype='smarthost'
97
79
dc_other_hostnames=''
@@ -107,9 +89,8 @@ exim4_conf:
107
89
dc_mailname_in_oh='true'
108
90
dc_localdelivery='mail_spool'
109
91
110
- exim4_passwd_client :
92
+ / etc/exim4/passwd.client :
111
93
file.managed :
112
- - name: /etc/exim4/passwd.client
113
94
- user: root
114
95
- group: Debian-exim
115
96
- mode: 640
0 commit comments