Puppet Class: sendmail::params
Summary
The parameters used when setting up the Sendmail MTA.
Overview
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# File 'manifests/params.pp', line 6
class sendmail::params {
# Where (most of) the sendmail configuration files are kept
$mail_settings_dir = '/etc/mail'
# File locations
$access_file = "${mail_settings_dir}/access"
$authinfo_file = "${mail_settings_dir}/authinfo"
$bitdomain_file = "${mail_settings_dir}/bitdomain"
$domaintable_file = "${mail_settings_dir}/domaintable"
$genericstable_file = "${mail_settings_dir}/genericstable"
$local_host_names_file = "${mail_settings_dir}/local-host-names"
$mailertable_file = "${mail_settings_dir}/mailertable"
$msp_authinfo_file = "${mail_settings_dir}/msp-authinfo"
$relay_domains_file = "${mail_settings_dir}/relay-domains"
$trusted_users_file = "${mail_settings_dir}/trusted-users"
$userdb_file = "${mail_settings_dir}/userdb"
$uudomain_file = "${mail_settings_dir}/uudomain"
$virtusertable_file = "${mail_settings_dir}/virtusertable"
$package_name = 'sendmail'
$service_name = 'sendmail'
$sendmail_binary = '/usr/sbin/sendmail'
$mailers = ['smtp', 'local']
case $facts['os']['family'] {
'Debian': {
$package_manage = true
$auxiliary_packages = []
$sendmail_user = 'smmta'
$sendmail_group = 'smmsp'
$alias_file_group = 'root'
$sendmail_mc_ostype = 'debian'
$submit_mc_ostype = 'debian'
$sendmail_mc_domain = 'debian-mta'
$submit_mc_domain = 'debian-msp'
$configure_command = "make -C ${mail_settings_dir} all"
$sendmail_mc_file = "${mail_settings_dir}/sendmail.mc"
$submit_mc_file = "${mail_settings_dir}/submit.mc"
$alias_file = '/etc/aliases'
}
'RedHat': {
$package_manage = true
$auxiliary_packages = ['sendmail-cf',]
$sendmail_user = 'root'
$sendmail_group = 'root'
$alias_file_group = 'root'
$sendmail_mc_ostype = 'linux'
$submit_mc_ostype = undef
$sendmail_mc_domain = undef
$submit_mc_domain = undef
$configure_command = "make -C ${mail_settings_dir} all"
$sendmail_mc_file = "${mail_settings_dir}/sendmail.mc"
$submit_mc_file = "${mail_settings_dir}/submit.mc"
$alias_file = '/etc/aliases'
}
'FreeBSD': {
$package_manage = false
$auxiliary_packages = []
$sendmail_user = 'root'
$sendmail_group = 'wheel'
$alias_file_group = 'wheel'
$sendmail_mc_ostype = 'freebsd6'
$submit_mc_ostype = 'freebsd6'
$sendmail_mc_domain = undef
$submit_mc_domain = undef
$configure_command = "make -C ${mail_settings_dir} all install"
$sendmail_mc_file = "${mail_settings_dir}/${facts[networking][hostname]}.mc"
$submit_mc_file = "${mail_settings_dir}/${facts[networking][hostname]}.submit.mc"
$alias_file = '/etc/mail/aliases'
}
default: {
fail("Unsupported osfamily ${facts[os][family]}")
}
}
}
|