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