xref: /titanic_44/usr/src/cmd/sendmail/lib/smtp-sendmail.xml (revision 63ea9ad24896f2939472f8f96f568086d190eb33)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4    CDDL HEADER START
5
6    The contents of this file are subject to the terms of the
7    Common Development and Distribution License (the "License").
8    You may not use this file except in compliance with the License.
9
10    You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11    or http://www.opensolaris.org/os/licensing.
12    See the License for the specific language governing permissions
13    and limitations under the License.
14
15    When distributing Covered Code, include this CDDL HEADER in each
16    file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17    If applicable, add the following below this CDDL HEADER, with the
18    fields enclosed by brackets "[]" replaced with your own identifying
19    information: Portions Copyright [yyyy] [name of copyright owner]
20
21    CDDL HEADER END
22
23    Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24    Use is subject to license terms.
25
26    NOTE:  This service manifest is not editable; its contents will
27    be overwritten by package or patch operations, including
28    operating system upgrade.  Make customizations in a different
29    file.
30-->
31
32<service_bundle type='manifest' name='SUNWsndmr:sendmail'>
33
34<service
35	name='network/smtp'
36	type='service'
37	version='1'>
38
39	<single_instance />
40
41	<dependency
42	    name='fs-local'
43	    grouping='require_all'
44	    restart_on='none'
45	    type='service'>
46		<service_fmri value='svc:/system/filesystem/local' />
47	</dependency>
48
49	<dependency
50	    name='network-service'
51	    grouping='require_all'
52	    restart_on='none'
53	    type='service'>
54		<service_fmri value='svc:/network/service' />
55	</dependency>
56
57	<dependency
58	    name='name-services'
59	    grouping='require_all'
60	    restart_on='refresh'
61	    type='service'>
62		<service_fmri value='svc:/milestone/name-services' />
63	</dependency>
64
65	<dependency
66	    name='identity'
67	    grouping='optional_all'
68	    restart_on='refresh'
69	    type='service'>
70		<service_fmri value='svc:/system/identity:domain' />
71	</dependency>
72
73	<dependency
74	    name='system-log'
75	    grouping='optional_all'
76	    restart_on='none'
77	    type='service'>
78		<service_fmri value='svc:/system/system-log' />
79	</dependency>
80
81	<property_group name='firewall_context' type='com.sun,fw_definition'>
82		<propval name='name' type='astring' value='smtp' />
83	</property_group>
84
85	<property_group name='firewall_config' type='com.sun,fw_configuration'>
86		<propval name='policy' type='astring' value='use_global' />
87		<propval name='apply_to' type='astring' value='' />
88		<propval name='exceptions' type='astring' value='' />
89		<propval name='value_authorization' type='astring'
90			value='solaris.smf.value.firewall.config' />
91	</property_group>
92
93	<instance name='sendmail' enabled='false'>
94
95		<dependency
96		    name='config-file'
97		    grouping='require_all'
98		    restart_on='refresh'
99		    type='path'>
100			<service_fmri
101			    value='file://localhost/etc/mail/sendmail.cf' />
102		</dependency>
103
104		<dependency
105		    name='nsswitch'
106		    grouping='require_all'
107		    restart_on='refresh'
108		    type='path'>
109			<service_fmri
110			    value='file://localhost/etc/nsswitch.conf' />
111		</dependency>
112
113		<!--
114		If autofs is enabled, wait for it to get users' home
115		directories.
116		-->
117		<dependency
118		    name='autofs'
119		    grouping='optional_all'
120		    restart_on='none'
121		    type='service'>
122			<service_fmri value='svc:/system/filesystem/autofs' />
123		</dependency>
124
125		<dependent
126			name='smtp-sendmail_multi-user'
127			grouping='optional_all'
128			restart_on='none'>
129				<service_fmri
130				    value='svc:/milestone/multi-user' />
131		</dependent>
132
133		<!--
134		Sendmail is hard-coded to sleep for 60 seconds if it cannot
135		determine the FQHN, so the timeout for start must be longer
136		than that.  For details, see
137		http://www.sendmail.org/vendor/sun/differences.html#3.2
138		-->
139
140		<exec_method
141			type='method'
142			name='start'
143			exec='/lib/svc/method/smtp-sendmail start'
144			timeout_seconds='120' />
145
146		<exec_method
147			type='method'
148			name='stop'
149			exec='/lib/svc/method/smtp-sendmail stop %{restarter/contract}'
150			timeout_seconds='60' />
151
152		<exec_method
153			type='method'
154			name='refresh'
155			exec='/lib/svc/method/smtp-sendmail refresh'
156			timeout_seconds='60' />
157
158		<property_group name='startd' type='framework'>
159			<propval name='ignore_error' type='astring'
160			    value='core,signal' />
161		</property_group>
162
163		<property_group name='general' type='framework'>
164			<propval name='action_authorization' type='astring'
165				value='solaris.smf.manage.sendmail' />
166		</property_group>
167
168		<property_group name='config' type='application'>
169			<propval name='include_info'
170				type='boolean' value='false' />
171			<propval name='local_only'
172				type='boolean' value='true' />
173			<propval name='path_to_sendmail_mc'
174				type='astring' value='' />
175			<propval name='path_to_submit_mc'
176				type='astring' value='' />
177			<propval name='value_authorization' type='astring'
178				value='solaris.smf.value.sendmail' />
179		</property_group>
180
181		<template>
182			<common_name>
183				<loctext xml:lang='C'>
184				sendmail SMTP mail transfer agent
185				</loctext>
186			</common_name>
187			<documentation>
188				<manpage title='sendmail' section='1M'
189				    manpath='/usr/share/man' />
190			</documentation>
191		</template>
192
193	</instance>
194
195	<stability value='Unstable' />
196
197</service>
198
199</service_bundle>
200