4174
|
1 |
<?xml version="1.0"?>
|
|
2 |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
|
|
3 |
<!--
|
|
4 |
|
|
5 |
Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
|
|
6 |
|
|
7 |
NOTE: This service manifest is not editable; its contents will
|
|
8 |
be overwritten by package or patch operations, including
|
|
9 |
operating system upgrade. Make customizations in a different
|
|
10 |
file.
|
|
11 |
-->
|
|
12 |
|
|
13 |
<service_bundle type='manifest' name='service/network/smtp/postfix:postfix'>
|
|
14 |
|
|
15 |
<service
|
|
16 |
name='network/smtp'
|
|
17 |
type='service'
|
|
18 |
version='1'>
|
|
19 |
|
|
20 |
<single_instance />
|
|
21 |
|
|
22 |
<dependency
|
|
23 |
name='fs-local'
|
|
24 |
grouping='require_all'
|
|
25 |
restart_on='none'
|
|
26 |
type='service'>
|
|
27 |
<service_fmri value='svc:/system/filesystem/local' />
|
|
28 |
</dependency>
|
|
29 |
|
|
30 |
<dependency
|
|
31 |
name='network-service'
|
|
32 |
grouping='require_all'
|
|
33 |
restart_on='none'
|
|
34 |
type='service'>
|
|
35 |
<service_fmri value='svc:/network/service' />
|
|
36 |
</dependency>
|
|
37 |
|
|
38 |
<dependency
|
|
39 |
name='name-services'
|
|
40 |
grouping='require_all'
|
|
41 |
restart_on='refresh'
|
|
42 |
type='service'>
|
|
43 |
<service_fmri value='svc:/milestone/name-services' />
|
|
44 |
</dependency>
|
|
45 |
|
|
46 |
<dependency
|
|
47 |
name='identity'
|
|
48 |
grouping='optional_all'
|
|
49 |
restart_on='refresh'
|
|
50 |
type='service'>
|
|
51 |
<service_fmri value='svc:/system/identity:domain' />
|
|
52 |
</dependency>
|
|
53 |
|
|
54 |
<dependency
|
|
55 |
name='system-log'
|
|
56 |
grouping='optional_all'
|
|
57 |
restart_on='none'
|
|
58 |
type='service'>
|
|
59 |
<service_fmri value='svc:/system/system-log' />
|
|
60 |
</dependency>
|
|
61 |
|
|
62 |
<property_group name='firewall_context' type='com.sun,fw_definition'>
|
|
63 |
<propval name='name' type='astring' value='smtp' />
|
|
64 |
</property_group>
|
|
65 |
|
|
66 |
<property_group name='firewall_config' type='com.sun,fw_configuration'>
|
|
67 |
<propval name='policy' type='astring' value='use_global' />
|
|
68 |
<propval name='apply_to' type='astring' value='' />
|
|
69 |
<propval name='exceptions' type='astring' value='' />
|
|
70 |
<propval name='value_authorization' type='astring'
|
|
71 |
value='solaris.smf.value.firewall.config' />
|
|
72 |
</property_group>
|
|
73 |
|
|
74 |
<instance name='postfix' enabled='false'>
|
|
75 |
|
|
76 |
<dependency
|
|
77 |
name='config-file'
|
|
78 |
grouping='require_all'
|
|
79 |
restart_on='refresh'
|
|
80 |
type='path'>
|
|
81 |
<service_fmri
|
|
82 |
value='file://localhost/etc/postfix/main.cf' />
|
|
83 |
</dependency>
|
|
84 |
|
|
85 |
<dependency
|
|
86 |
name='nsswitch'
|
|
87 |
grouping='require_all'
|
|
88 |
restart_on='refresh'
|
|
89 |
type='path'>
|
|
90 |
<service_fmri
|
|
91 |
value='file://localhost/etc/nsswitch.conf' />
|
|
92 |
</dependency>
|
|
93 |
|
|
94 |
<!--
|
|
95 |
If autofs is enabled, wait for it to get users' home
|
|
96 |
directories.
|
|
97 |
-->
|
|
98 |
<dependency
|
|
99 |
name='autofs'
|
|
100 |
grouping='optional_all'
|
|
101 |
restart_on='none'
|
|
102 |
type='service'>
|
|
103 |
<service_fmri value='svc:/system/filesystem/autofs' />
|
|
104 |
</dependency>
|
|
105 |
|
|
106 |
<dependent
|
|
107 |
name='smtp-postfix_multi-user'
|
|
108 |
grouping='optional_all'
|
|
109 |
restart_on='none'>
|
|
110 |
<service_fmri
|
|
111 |
value='svc:/milestone/multi-user' />
|
|
112 |
</dependent>
|
|
113 |
|
|
114 |
<exec_method
|
|
115 |
type='method'
|
|
116 |
name='start'
|
|
117 |
exec='/lib/svc/method/postfix'
|
|
118 |
timeout_seconds='120'>
|
|
119 |
<method_context>
|
|
120 |
<method_credential user='root' group='postfix'
|
|
121 |
privileges='basic,net_privaddr,proc_setid,file_dac_search'/>
|
|
122 |
</method_context>
|
|
123 |
</exec_method>
|
|
124 |
|
|
125 |
<exec_method
|
|
126 |
type='method'
|
|
127 |
name='stop'
|
|
128 |
exec='/usr/sbin/postfix stop'
|
|
129 |
timeout_seconds='60' />
|
|
130 |
|
|
131 |
<exec_method
|
|
132 |
type='method'
|
|
133 |
name='refresh'
|
|
134 |
exec='/usr/sbin/postfix reload'
|
|
135 |
timeout_seconds='60' />
|
|
136 |
|
|
137 |
<property_group name='startd' type='framework'>
|
|
138 |
<propval name='ignore_error' type='astring'
|
|
139 |
value='core,signal' />
|
|
140 |
</property_group>
|
|
141 |
|
|
142 |
<property_group name='general' type='framework'>
|
|
143 |
<propval name='action_authorization' type='astring'
|
|
144 |
value='solaris.smf.manage.postfix' />
|
|
145 |
</property_group>
|
|
146 |
|
|
147 |
<property_group name='config' type='application'>
|
|
148 |
<propval name='automatic' type='boolean' value='true' />
|
|
149 |
</property_group>
|
|
150 |
|
|
151 |
<template>
|
|
152 |
<common_name>
|
|
153 |
<loctext xml:lang='C'>
|
|
154 |
postfix SMTP mail transfer agent
|
|
155 |
</loctext>
|
|
156 |
</common_name>
|
|
157 |
<documentation>
|
|
158 |
<manpage title='postfix' section='1'
|
|
159 |
manpath='/usr/share/man' />
|
|
160 |
</documentation>
|
|
161 |
<pg_pattern name='config' type='application'>
|
|
162 |
<description>
|
|
163 |
<loctext xml:lang='C'>
|
|
164 |
Configuration properties
|
|
165 |
</loctext>
|
|
166 |
</description>
|
|
167 |
<prop_pattern name='value_authorization' type='astring'>
|
|
168 |
<description>
|
|
169 |
<loctext xml:lang='C'>
|
|
170 |
Declares authorization needed to change values in the config property group.
|
|
171 |
</loctext>
|
|
172 |
</description>
|
|
173 |
</prop_pattern>
|
|
174 |
</pg_pattern>
|
|
175 |
</template>
|
|
176 |
|
|
177 |
</instance>
|
|
178 |
|
|
179 |
<stability value='Unstable' />
|
|
180 |
|
|
181 |
</service>
|
|
182 |
|
|
183 |
</service_bundle>
|