3 # Copyright (c) 2000-2002, 2004 Sendmail, Inc. and its suppliers.
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.
10 # ident "%Z%%M% %I% %E% SMI"
14 VERSIONID(`$Id: msp.m4,v 1.33 2004/02/09 22:32:38 ca Exp $')
16 undefine(`ALIAS_FILE')
17 define(`confDELIVERY_MODE', `i')
18 define(`confUSE_MSP', `True')
19 define(`confFORWARD_PATH', `')
20 define(`confPRIVACY_FLAGS', `goaway,noetrn,restrictqrun')
21 define(`confDONT_PROBE_INTERFACES', `True')
22 dnl ---------------------------------------------
23 dnl run as this user (even if called by root)
24 ifdef(`confRUN_AS_USER',,`define(`confRUN_AS_USER', `smmsp')')
25 ifdef(`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,`:'))')')')
28 dnl ---------------------------------------------
29 dnl This queue directory must have the same group
30 dnl as sendmail and it must be group-writable.
31 dnl notice: do not test for QUEUE_DIR, it is set in some ostype/*.m4 files
32 ifdef(`MSP_QUEUE_DIR',
33 `define(`QUEUE_DIR', `MSP_QUEUE_DIR')',
34 `define(`QUEUE_DIR', `/var/spool/clientmqueue')')
35 define(`_MTA_HOST_', ifelse(defn(`_ARG_'), `', `[localhost]', `_ARG_'))
36 define(`_MSP_FQHN_',`dnl used to qualify addresses
37 ifdef(`MASQUERADE_NAME', ifdef(`_MASQUERADE_ENVELOPE_', `$M', `$j'), `$j')')
38 ifelse(_ARG2_, `MSA', `define(`RELAY_MAILER_ARGS', `TCP $h 587')')
39 dnl ---------------------------------------------
40 ifdef(`confPID_FILE', `dnl',
41 `define(`confPID_FILE', QUEUE_DIR`/sm-client.pid')')
42 define(`confQUEUE_FILE_MODE', `0660')dnl
45 `define(`_b_', index(STATUS_FILE, `sendmail.st'))ifelse(_b_, `-1', `STATUS_FILE', `substr(STATUS_FILE, 0, _b_)sm-client.st')')
46 define(`STATUS_FILE', _F_)
47 undefine(`_b_') undefine(`_F_')',
48 `define(`STATUS_FILE', QUEUE_DIR`/sm-client.st')')
49 FEATURE(`no_default_msa')dnl
50 ifelse(defn(`_DPO_'), `',
51 `DAEMON_OPTIONS(`Name=NoMTA, Addr=127.0.0.1, M=E')dnl')
52 define(`_DEF_LOCAL_MAILER_FLAGS', `')dnl
53 define(`_DEF_LOCAL_SHELL_FLAGS', `')dnl
54 define(`LOCAL_MAILER_PATH', `[IPC]')dnl
55 define(`LOCAL_MAILER_FLAGS', `lmDFMuXkw5')dnl
56 define(`LOCAL_MAILER_ARGS', `TCP $h')dnl
57 define(`LOCAL_MAILER_DSN_DIAGNOSTIC_CODE', `SMTP')dnl
58 define(`LOCAL_SHELL_PATH', `[IPC]')dnl
59 define(`LOCAL_SHELL_FLAGS', `lmDFMuXk5')dnl
60 define(`LOCAL_SHELL_ARGS', `TCP $h')dnl
61 MODIFY_MAILER_FLAGS(`SMTP', `+k5')dnl
62 MODIFY_MAILER_FLAGS(`ESMTP', `+k5')dnl
63 MODIFY_MAILER_FLAGS(`DSMTP', `+k5')dnl
64 MODIFY_MAILER_FLAGS(`SMTP8', `+k5')dnl
65 MODIFY_MAILER_FLAGS(`RELAY', `+k')dnl
74 R$+ $: $>ParseRecipient $1
75 R$* < @ $+ > $* $#relay $@ ${MTAHost} $: $1 < @ $2 > $3
76 ifdef(`_USE_DECNET_SYNTAX_',
78 R$+ :: $+ $#relay $@ ${MTAHost} $: $1 :: $2', `dnl')
79 R$* $#relay $@ ${MTAHost} $: $1 < @ _MSP_FQHN_ >