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