xref: /onnv-gate/usr/src/cmd/sendmail/cf/feature/msp.m4 (revision 0:68f95e015346)
1*0Sstevel@tonic-gatedivert(-1)
2*0Sstevel@tonic-gate#
3*0Sstevel@tonic-gate# Copyright (c) 2000-2002, 2004 Sendmail, Inc. and its suppliers.
4*0Sstevel@tonic-gate#	All rights reserved.
5*0Sstevel@tonic-gate#
6*0Sstevel@tonic-gate# By using this file, you agree to the terms and conditions set
7*0Sstevel@tonic-gate# forth in the LICENSE file which can be found at the top level of
8*0Sstevel@tonic-gate# the sendmail distribution.
9*0Sstevel@tonic-gate#
10*0Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
11*0Sstevel@tonic-gate#
12*0Sstevel@tonic-gate
13*0Sstevel@tonic-gatedivert(0)dnl
14*0Sstevel@tonic-gateVERSIONID(`$Id: msp.m4,v 1.33 2004/02/09 22:32:38 ca Exp $')
15*0Sstevel@tonic-gatedivert(-1)
16*0Sstevel@tonic-gateundefine(`ALIAS_FILE')
17*0Sstevel@tonic-gatedefine(`confDELIVERY_MODE', `i')
18*0Sstevel@tonic-gatedefine(`confUSE_MSP', `True')
19*0Sstevel@tonic-gatedefine(`confFORWARD_PATH', `')
20*0Sstevel@tonic-gatedefine(`confPRIVACY_FLAGS', `goaway,noetrn,restrictqrun')
21*0Sstevel@tonic-gatedefine(`confDONT_PROBE_INTERFACES', `True')
22*0Sstevel@tonic-gatednl ---------------------------------------------
23*0Sstevel@tonic-gatednl run as this user (even if called by root)
24*0Sstevel@tonic-gateifdef(`confRUN_AS_USER',,`define(`confRUN_AS_USER', `smmsp')')
25*0Sstevel@tonic-gateifdef(`confTRUSTED_USER',,`define(`confTRUSTED_USER',
26*0Sstevel@tonic-gate`ifelse(index(confRUN_AS_USER,`:'), -1, `confRUN_AS_USER',
27*0Sstevel@tonic-gate`substr(confRUN_AS_USER,0,index(confRUN_AS_USER,`:'))')')')
28*0Sstevel@tonic-gatednl ---------------------------------------------
29*0Sstevel@tonic-gatednl This queue directory must have the same group
30*0Sstevel@tonic-gatednl as sendmail and it must be group-writable.
31*0Sstevel@tonic-gatednl notice: do not test for QUEUE_DIR, it is set in some ostype/*.m4 files
32*0Sstevel@tonic-gateifdef(`MSP_QUEUE_DIR',
33*0Sstevel@tonic-gate`define(`QUEUE_DIR', `MSP_QUEUE_DIR')',
34*0Sstevel@tonic-gate`define(`QUEUE_DIR', `/var/spool/clientmqueue')')
35*0Sstevel@tonic-gatedefine(`_MTA_HOST_', ifelse(defn(`_ARG_'), `', `[localhost]', `_ARG_'))
36*0Sstevel@tonic-gatedefine(`_MSP_FQHN_',`dnl used to qualify addresses
37*0Sstevel@tonic-gateifdef(`MASQUERADE_NAME', ifdef(`_MASQUERADE_ENVELOPE_', `$M', `$j'), `$j')')
38*0Sstevel@tonic-gateifelse(_ARG2_, `MSA', `define(`RELAY_MAILER_ARGS', `TCP $h 587')')
39*0Sstevel@tonic-gatednl ---------------------------------------------
40*0Sstevel@tonic-gateifdef(`confPID_FILE', `dnl',
41*0Sstevel@tonic-gate`define(`confPID_FILE', QUEUE_DIR`/sm-client.pid')')
42*0Sstevel@tonic-gatedefine(`confQUEUE_FILE_MODE', `0660')dnl
43*0Sstevel@tonic-gateifdef(`STATUS_FILE',
44*0Sstevel@tonic-gate`define(`_F_',
45*0Sstevel@tonic-gate`define(`_b_', index(STATUS_FILE, `sendmail.st'))ifelse(_b_, `-1', `STATUS_FILE', `substr(STATUS_FILE, 0, _b_)sm-client.st')')
46*0Sstevel@tonic-gatedefine(`STATUS_FILE', _F_)
47*0Sstevel@tonic-gateundefine(`_b_') undefine(`_F_')',
48*0Sstevel@tonic-gate`define(`STATUS_FILE', QUEUE_DIR`/sm-client.st')')
49*0Sstevel@tonic-gateFEATURE(`no_default_msa')dnl
50*0Sstevel@tonic-gateifelse(defn(`_DPO_'), `',
51*0Sstevel@tonic-gate`DAEMON_OPTIONS(`Name=NoMTA, Addr=127.0.0.1, M=E')dnl')
52*0Sstevel@tonic-gatedefine(`_DEF_LOCAL_MAILER_FLAGS', `')dnl
53*0Sstevel@tonic-gatedefine(`_DEF_LOCAL_SHELL_FLAGS', `')dnl
54*0Sstevel@tonic-gatedefine(`LOCAL_MAILER_PATH', `[IPC]')dnl
55*0Sstevel@tonic-gatedefine(`LOCAL_MAILER_FLAGS', `lmDFMuXkw5')dnl
56*0Sstevel@tonic-gatedefine(`LOCAL_MAILER_ARGS', `TCP $h')dnl
57*0Sstevel@tonic-gatedefine(`LOCAL_MAILER_DSN_DIAGNOSTIC_CODE', `SMTP')dnl
58*0Sstevel@tonic-gatedefine(`LOCAL_SHELL_PATH', `[IPC]')dnl
59*0Sstevel@tonic-gatedefine(`LOCAL_SHELL_FLAGS', `lmDFMuXk5')dnl
60*0Sstevel@tonic-gatedefine(`LOCAL_SHELL_ARGS', `TCP $h')dnl
61*0Sstevel@tonic-gateMODIFY_MAILER_FLAGS(`SMTP', `+k5')dnl
62*0Sstevel@tonic-gateMODIFY_MAILER_FLAGS(`ESMTP', `+k5')dnl
63*0Sstevel@tonic-gateMODIFY_MAILER_FLAGS(`DSMTP', `+k5')dnl
64*0Sstevel@tonic-gateMODIFY_MAILER_FLAGS(`SMTP8', `+k5')dnl
65*0Sstevel@tonic-gateMODIFY_MAILER_FLAGS(`RELAY', `+k')dnl
66*0Sstevel@tonic-gateMAILER(`local')dnl
67*0Sstevel@tonic-gateMAILER(`smtp')dnl
68*0Sstevel@tonic-gate
69*0Sstevel@tonic-gateLOCAL_CONFIG
70*0Sstevel@tonic-gateD{MTAHost}_MTA_HOST_
71*0Sstevel@tonic-gate
72*0Sstevel@tonic-gateLOCAL_RULESETS
73*0Sstevel@tonic-gateSLocal_localaddr
74*0Sstevel@tonic-gateR$+			$: $>ParseRecipient $1
75*0Sstevel@tonic-gateR$* < @ $+ > $*		$#relay $@ ${MTAHost} $: $1 < @ $2 > $3
76*0Sstevel@tonic-gateifdef(`_USE_DECNET_SYNTAX_',
77*0Sstevel@tonic-gate`# DECnet
78*0Sstevel@tonic-gateR$+ :: $+		$#relay $@ ${MTAHost} $: $1 :: $2', `dnl')
79*0Sstevel@tonic-gateR$*			$#relay $@ ${MTAHost} $: $1 < @ _MSP_FQHN_ >
80