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