xref: /titanic_51/usr/src/cmd/sendmail/lib/smtp-sendmail.xml (revision 7ddce99911fbb5e44b38ac65e991a22e42267ee9)
17c478bd9Sstevel@tonic-gate<?xml version="1.0"?>
27c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
37c478bd9Sstevel@tonic-gate<!--
47c478bd9Sstevel@tonic-gate    CDDL HEADER START
57c478bd9Sstevel@tonic-gate
67c478bd9Sstevel@tonic-gate    The contents of this file are subject to the terms of the
70ea5e3a5Sjjj    Common Development and Distribution License (the "License").
80ea5e3a5Sjjj    You may not use this file except in compliance with the License.
97c478bd9Sstevel@tonic-gate
107c478bd9Sstevel@tonic-gate    You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
117c478bd9Sstevel@tonic-gate    or http://www.opensolaris.org/os/licensing.
127c478bd9Sstevel@tonic-gate    See the License for the specific language governing permissions
137c478bd9Sstevel@tonic-gate    and limitations under the License.
147c478bd9Sstevel@tonic-gate
157c478bd9Sstevel@tonic-gate    When distributing Covered Code, include this CDDL HEADER in each
167c478bd9Sstevel@tonic-gate    file and include the License file at usr/src/OPENSOLARIS.LICENSE.
177c478bd9Sstevel@tonic-gate    If applicable, add the following below this CDDL HEADER, with the
187c478bd9Sstevel@tonic-gate    fields enclosed by brackets "[]" replaced with your own identifying
197c478bd9Sstevel@tonic-gate    information: Portions Copyright [yyyy] [name of copyright owner]
207c478bd9Sstevel@tonic-gate
217c478bd9Sstevel@tonic-gate    CDDL HEADER END
227c478bd9Sstevel@tonic-gate
23eb1a3463STruong Nguyen    Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
240ea5e3a5Sjjj    Use is subject to license terms.
250ea5e3a5Sjjj
26*7ddce999SHans Rosenfeld    Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
27*7ddce999SHans Rosenfeld
287c478bd9Sstevel@tonic-gate    NOTE:  This service manifest is not editable; its contents will
297c478bd9Sstevel@tonic-gate    be overwritten by package or patch operations, including
307c478bd9Sstevel@tonic-gate    operating system upgrade.  Make customizations in a different
317c478bd9Sstevel@tonic-gate    file.
327c478bd9Sstevel@tonic-gate-->
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWsndmr:sendmail'>
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gate<service
377c478bd9Sstevel@tonic-gate	name='network/smtp'
387c478bd9Sstevel@tonic-gate	type='service'
397c478bd9Sstevel@tonic-gate	version='1'>
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate	<single_instance />
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gate	<dependency
447c478bd9Sstevel@tonic-gate	    name='fs-local'
457c478bd9Sstevel@tonic-gate	    grouping='require_all'
467c478bd9Sstevel@tonic-gate	    restart_on='none'
477c478bd9Sstevel@tonic-gate	    type='service'>
487c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/local' />
497c478bd9Sstevel@tonic-gate	</dependency>
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gate	<dependency
527c478bd9Sstevel@tonic-gate	    name='network-service'
537c478bd9Sstevel@tonic-gate	    grouping='require_all'
547c478bd9Sstevel@tonic-gate	    restart_on='none'
557c478bd9Sstevel@tonic-gate	    type='service'>
567c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/network/service' />
577c478bd9Sstevel@tonic-gate	</dependency>
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate	<dependency
607c478bd9Sstevel@tonic-gate	    name='name-services'
617c478bd9Sstevel@tonic-gate	    grouping='require_all'
627c478bd9Sstevel@tonic-gate	    restart_on='refresh'
637c478bd9Sstevel@tonic-gate	    type='service'>
647c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/name-services' />
657c478bd9Sstevel@tonic-gate	</dependency>
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gate	<dependency
687c478bd9Sstevel@tonic-gate	    name='identity'
697c478bd9Sstevel@tonic-gate	    grouping='optional_all'
707c478bd9Sstevel@tonic-gate	    restart_on='refresh'
717c478bd9Sstevel@tonic-gate	    type='service'>
727c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/identity:domain' />
737c478bd9Sstevel@tonic-gate	</dependency>
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate	<dependency
767c478bd9Sstevel@tonic-gate	    name='system-log'
777c478bd9Sstevel@tonic-gate	    grouping='optional_all'
787c478bd9Sstevel@tonic-gate	    restart_on='none'
797c478bd9Sstevel@tonic-gate	    type='service'>
807c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/system-log' />
817c478bd9Sstevel@tonic-gate	</dependency>
827c478bd9Sstevel@tonic-gate
83eb1a3463STruong Nguyen	<property_group name='firewall_context' type='com.sun,fw_definition'>
84eb1a3463STruong Nguyen		<propval name='name' type='astring' value='smtp' />
85eb1a3463STruong Nguyen	</property_group>
86eb1a3463STruong Nguyen
87eb1a3463STruong Nguyen	<property_group name='firewall_config' type='com.sun,fw_configuration'>
88eb1a3463STruong Nguyen		<propval name='policy' type='astring' value='use_global' />
89*7ddce999SHans Rosenfeld		<propval name='block_policy' type='astring'
90*7ddce999SHans Rosenfeld			value='use_global' />
91eb1a3463STruong Nguyen		<propval name='apply_to' type='astring' value='' />
92*7ddce999SHans Rosenfeld		<propval name='apply_to_6' type='astring' value='' />
93eb1a3463STruong Nguyen		<propval name='exceptions' type='astring' value='' />
94*7ddce999SHans Rosenfeld		<propval name='exceptions_6' type='astring' value='' />
95*7ddce999SHans Rosenfeld		<propval name='target' type='astring' value='' />
96*7ddce999SHans Rosenfeld		<propval name='target_6' type='astring' value='' />
97eb1a3463STruong Nguyen		<propval name='value_authorization' type='astring'
98eb1a3463STruong Nguyen			value='solaris.smf.value.firewall.config' />
99eb1a3463STruong Nguyen	</property_group>
100eb1a3463STruong Nguyen
1017c478bd9Sstevel@tonic-gate	<instance name='sendmail' enabled='false'>
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gate		<dependency
1047c478bd9Sstevel@tonic-gate		    name='config-file'
1057c478bd9Sstevel@tonic-gate		    grouping='require_all'
1067c478bd9Sstevel@tonic-gate		    restart_on='refresh'
1077c478bd9Sstevel@tonic-gate		    type='path'>
1087c478bd9Sstevel@tonic-gate			<service_fmri
1097c478bd9Sstevel@tonic-gate			    value='file://localhost/etc/mail/sendmail.cf' />
1107c478bd9Sstevel@tonic-gate		</dependency>
1117c478bd9Sstevel@tonic-gate
1127c478bd9Sstevel@tonic-gate		<dependency
1137c478bd9Sstevel@tonic-gate		    name='nsswitch'
1147c478bd9Sstevel@tonic-gate		    grouping='require_all'
1157c478bd9Sstevel@tonic-gate		    restart_on='refresh'
1167c478bd9Sstevel@tonic-gate		    type='path'>
1177c478bd9Sstevel@tonic-gate			<service_fmri
1187c478bd9Sstevel@tonic-gate			    value='file://localhost/etc/nsswitch.conf' />
1197c478bd9Sstevel@tonic-gate		</dependency>
1207c478bd9Sstevel@tonic-gate
1217c478bd9Sstevel@tonic-gate		<!--
1227c478bd9Sstevel@tonic-gate		If autofs is enabled, wait for it to get users' home
1237c478bd9Sstevel@tonic-gate		directories.
1247c478bd9Sstevel@tonic-gate		-->
1257c478bd9Sstevel@tonic-gate		<dependency
1267c478bd9Sstevel@tonic-gate		    name='autofs'
1277c478bd9Sstevel@tonic-gate		    grouping='optional_all'
1287c478bd9Sstevel@tonic-gate		    restart_on='none'
1297c478bd9Sstevel@tonic-gate		    type='service'>
1307c478bd9Sstevel@tonic-gate			<service_fmri value='svc:/system/filesystem/autofs' />
1317c478bd9Sstevel@tonic-gate		</dependency>
1327c478bd9Sstevel@tonic-gate
1337c478bd9Sstevel@tonic-gate		<dependent
1347c478bd9Sstevel@tonic-gate			name='smtp-sendmail_multi-user'
1357c478bd9Sstevel@tonic-gate			grouping='optional_all'
1367c478bd9Sstevel@tonic-gate			restart_on='none'>
1377c478bd9Sstevel@tonic-gate				<service_fmri
1387c478bd9Sstevel@tonic-gate				    value='svc:/milestone/multi-user' />
1397c478bd9Sstevel@tonic-gate		</dependent>
1407c478bd9Sstevel@tonic-gate
1417c478bd9Sstevel@tonic-gate		<!--
1427c478bd9Sstevel@tonic-gate		Sendmail is hard-coded to sleep for 60 seconds if it cannot
1437c478bd9Sstevel@tonic-gate		determine the FQHN, so the timeout for start must be longer
1447c478bd9Sstevel@tonic-gate		than that.  For details, see
1457c478bd9Sstevel@tonic-gate		http://www.sendmail.org/vendor/sun/differences.html#3.2
1467c478bd9Sstevel@tonic-gate		-->
1477c478bd9Sstevel@tonic-gate
1487c478bd9Sstevel@tonic-gate		<exec_method
1497c478bd9Sstevel@tonic-gate			type='method'
1507c478bd9Sstevel@tonic-gate			name='start'
1517c478bd9Sstevel@tonic-gate			exec='/lib/svc/method/smtp-sendmail start'
1527c478bd9Sstevel@tonic-gate			timeout_seconds='120' />
1537c478bd9Sstevel@tonic-gate
1547c478bd9Sstevel@tonic-gate		<exec_method
1557c478bd9Sstevel@tonic-gate			type='method'
1567c478bd9Sstevel@tonic-gate			name='stop'
1577c478bd9Sstevel@tonic-gate			exec='/lib/svc/method/smtp-sendmail stop %{restarter/contract}'
1587c478bd9Sstevel@tonic-gate			timeout_seconds='60' />
1597c478bd9Sstevel@tonic-gate
1607c478bd9Sstevel@tonic-gate		<exec_method
1617c478bd9Sstevel@tonic-gate			type='method'
1627c478bd9Sstevel@tonic-gate			name='refresh'
1637c478bd9Sstevel@tonic-gate			exec='/lib/svc/method/smtp-sendmail refresh'
1647c478bd9Sstevel@tonic-gate			timeout_seconds='60' />
1657c478bd9Sstevel@tonic-gate
1667c478bd9Sstevel@tonic-gate		<property_group name='startd' type='framework'>
1677c478bd9Sstevel@tonic-gate			<propval name='ignore_error' type='astring'
1687c478bd9Sstevel@tonic-gate			    value='core,signal' />
1697c478bd9Sstevel@tonic-gate		</property_group>
1707c478bd9Sstevel@tonic-gate
1717c478bd9Sstevel@tonic-gate		<property_group name='general' type='framework'>
1727c478bd9Sstevel@tonic-gate			<propval name='action_authorization' type='astring'
1737c478bd9Sstevel@tonic-gate				value='solaris.smf.manage.sendmail' />
1747c478bd9Sstevel@tonic-gate		</property_group>
1757c478bd9Sstevel@tonic-gate
1760ea5e3a5Sjjj		<property_group name='config' type='application'>
177d4660949Sjbeck			<propval name='include_info'
178d4660949Sjbeck				type='boolean' value='false' />
179d4660949Sjbeck			<propval name='local_only'
180337180d8Sjbeck				type='boolean' value='true' />
181d4660949Sjbeck			<propval name='path_to_sendmail_mc'
182d4660949Sjbeck				type='astring' value='' />
1830ea5e3a5Sjjj			<propval name='value_authorization' type='astring'
1840ea5e3a5Sjjj				value='solaris.smf.value.sendmail' />
1850ea5e3a5Sjjj		</property_group>
1860ea5e3a5Sjjj
1877c478bd9Sstevel@tonic-gate		<template>
1887c478bd9Sstevel@tonic-gate			<common_name>
1897c478bd9Sstevel@tonic-gate				<loctext xml:lang='C'>
1907c478bd9Sstevel@tonic-gate				sendmail SMTP mail transfer agent
1917c478bd9Sstevel@tonic-gate				</loctext>
1927c478bd9Sstevel@tonic-gate			</common_name>
1937c478bd9Sstevel@tonic-gate			<documentation>
1947c478bd9Sstevel@tonic-gate				<manpage title='sendmail' section='1M'
1957c478bd9Sstevel@tonic-gate				    manpath='/usr/share/man' />
1967c478bd9Sstevel@tonic-gate			</documentation>
1977c478bd9Sstevel@tonic-gate		</template>
1987c478bd9Sstevel@tonic-gate
1997c478bd9Sstevel@tonic-gate	</instance>
2007c478bd9Sstevel@tonic-gate
2017c478bd9Sstevel@tonic-gate	<stability value='Unstable' />
2027c478bd9Sstevel@tonic-gate
2037c478bd9Sstevel@tonic-gate</service>
2047c478bd9Sstevel@tonic-gate
2057c478bd9Sstevel@tonic-gate</service_bundle>
206