1995-12-02 17:30:23 +00:00
|
|
|
|
#
|
2004-08-01 01:16:16 +00:00
|
|
|
|
# Copyright (c) 1998-2004 Sendmail, Inc. and its suppliers.
|
2000-08-12 22:19:16 +00:00
|
|
|
|
# All rights reserved.
|
1998-08-03 05:56:20 +00:00
|
|
|
|
# Copyright (c) 1983, 1995 Eric P. Allman. All rights reserved.
|
1995-12-02 17:30:23 +00:00
|
|
|
|
# Copyright (c) 1988, 1993
|
|
|
|
|
# The Regents of the University of California. All rights reserved.
|
|
|
|
|
#
|
1998-08-03 05:56:20 +00:00
|
|
|
|
# By using this file, you agree to the terms and conditions set
|
|
|
|
|
# forth in the LICENSE file which can be found at the top level of
|
|
|
|
|
# the sendmail distribution.
|
1995-12-02 17:30:23 +00:00
|
|
|
|
#
|
2000-08-12 22:19:16 +00:00
|
|
|
|
# $FreeBSD$
|
1995-12-02 17:30:23 +00:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
######################################################################
|
|
|
|
|
######################################################################
|
|
|
|
|
#####
|
|
|
|
|
##### SENDMAIL CONFIGURATION FILE
|
|
|
|
|
#####
|
2003-02-08 20:35:51 +00:00
|
|
|
|
ifdef(`__win32__', `dnl', `dnl
|
2000-08-12 22:19:16 +00:00
|
|
|
|
ifdef(`TEMPFILE', `dnl', `define(`TEMPFILE', maketemp(/tmp/cfXXXXXX))dnl
|
1995-12-02 17:30:23 +00:00
|
|
|
|
syscmd(sh _CF_DIR_`'sh/makeinfo.sh _CF_DIR_ > TEMPFILE)dnl
|
|
|
|
|
include(TEMPFILE)dnl
|
2003-02-08 20:35:51 +00:00
|
|
|
|
syscmd(rm -f TEMPFILE)dnl')')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
#####
|
|
|
|
|
######################################################################
|
2002-02-17 21:58:34 +00:00
|
|
|
|
#####
|
|
|
|
|
##### DO NOT EDIT THIS FILE! Only edit the source .mc file.
|
|
|
|
|
#####
|
|
|
|
|
######################################################################
|
1995-12-02 17:30:23 +00:00
|
|
|
|
######################################################################
|
|
|
|
|
|
|
|
|
|
divert(-1)
|
|
|
|
|
|
|
|
|
|
changecom()
|
|
|
|
|
undefine(`format')
|
|
|
|
|
undefine(`hpux')
|
|
|
|
|
ifdef(`pushdef', `',
|
|
|
|
|
`errprint(`You need a newer version of M4, at least as new as
|
|
|
|
|
System V or GNU')
|
|
|
|
|
include(NoSuchFile)')
|
|
|
|
|
define(`PUSHDIVERT', `pushdef(`__D__', divnum)divert($1)')
|
|
|
|
|
define(`POPDIVERT', `divert(__D__)popdef(`__D__')')
|
|
|
|
|
define(`OSTYPE',
|
|
|
|
|
`PUSHDIVERT(-1)
|
2000-08-12 22:19:16 +00:00
|
|
|
|
ifdef(`__OSTYPE__', `errprint(`duplicate OSTYPE'($1)
|
|
|
|
|
)')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`__OSTYPE__', $1)
|
|
|
|
|
define(`_ARG_', $2)
|
|
|
|
|
include(_CF_DIR_`'ostype/$1.m4)POPDIVERT`'')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
## helpful functions
|
|
|
|
|
define(`lower', `translit(`$1', `ABCDEFGHIJKLMNOPQRSTUVWXYZ', `abcdefghijklmnopqrstuvwx')')
|
|
|
|
|
define(`strcasecmp', `ifelse(lower($1), lower($2), `1', `0')')
|
|
|
|
|
## access to further arguments in FEATURE/HACK
|
|
|
|
|
define(`_ACC_ARG_1_',`$1')
|
|
|
|
|
define(`_ACC_ARG_2_',`$2')
|
|
|
|
|
define(`_ACC_ARG_3_',`$3')
|
|
|
|
|
define(`_ACC_ARG_4_',`$4')
|
|
|
|
|
define(`_ACC_ARG_5_',`$5')
|
|
|
|
|
define(`_ACC_ARG_6_',`$6')
|
|
|
|
|
define(`_ACC_ARG_7_',`$7')
|
|
|
|
|
define(`_ACC_ARG_8_',`$8')
|
|
|
|
|
define(`_ACC_ARG_9_',`$9')
|
|
|
|
|
define(`_ARG1_',`_ACC_ARG_1_(_ARGS_)')
|
|
|
|
|
define(`_ARG2_',`_ACC_ARG_2_(_ARGS_)')
|
|
|
|
|
define(`_ARG3_',`_ACC_ARG_3_(_ARGS_)')
|
|
|
|
|
define(`_ARG4_',`_ACC_ARG_4_(_ARGS_)')
|
|
|
|
|
define(`_ARG5_',`_ACC_ARG_5_(_ARGS_)')
|
|
|
|
|
define(`_ARG6_',`_ACC_ARG_6_(_ARGS_)')
|
|
|
|
|
define(`_ARG7_',`_ACC_ARG_7_(_ARGS_)')
|
|
|
|
|
define(`_ARG8_',`_ACC_ARG_8_(_ARGS_)')
|
|
|
|
|
define(`_ARG9_',`_ACC_ARG_9_(_ARGS_)')
|
|
|
|
|
dnl define if not yet defined: if `$1' is not defined it will be `$2'
|
|
|
|
|
define(`_DEFIFNOT',`ifdef(`$1',`',`define(`$1',`$2')')')
|
|
|
|
|
dnl ----------------------------------------
|
|
|
|
|
dnl add a char $2 to a string $1 if it is not there
|
|
|
|
|
define(`_ADDCHAR_',`define(`_I_',`eval(index(`$1',`$2') >= 0)')`'ifelse(_I_,`1',`$1',`$1$2')')
|
|
|
|
|
dnl ----
|
|
|
|
|
dnl delete a char $2 from a string $1 if it is there
|
|
|
|
|
define(`_DELCHAR_',`define(`_IDX_',`index(`$1',`$2')')`'define(`_I_',`eval(_IDX_ >= 0)')`'ifelse(_I_,`1',`substr(`$1',0,_IDX_)`'substr(`$1',eval(_IDX_+1))',`$1')')
|
|
|
|
|
dnl ----
|
|
|
|
|
dnl apply a macro to a whole string by recursion (one char at a time)
|
|
|
|
|
dnl $1: macro
|
|
|
|
|
dnl $2: first argument to macro
|
|
|
|
|
dnl $3: list that is split up into characters
|
|
|
|
|
define(`_AP_',`ifelse(`$3',`',`$2',`_AP_(`$1',$1(`$2',substr(`$3',0,1)),substr(`$3',1))')')
|
|
|
|
|
dnl ----
|
|
|
|
|
dnl MODIFY_MAILER_FLAGS: append tail of $2 to $1_MF_A/D_
|
|
|
|
|
dnl A if head($2) = +
|
|
|
|
|
dnl D if head($2) = -
|
|
|
|
|
dnl $1_MF_ is set otherwise; set _A/D_ to `'
|
|
|
|
|
define(`MODIFY_MAILER_FLAGS',`define(`_hd_',`substr(`$2',0,1)')define(`_tl_',`substr(`$2',1)')`'ifelse(_hd_,`+',`ifdef($1`'_MF_A_, `define($1`'_MF_A_,$1_MF_A_`'_tl_)', `define($1`'_MF_A_, _tl_)')',_hd_,`-',`ifdef($1`'_MF_D_, `define($1`'_MF_D_,$1_MF_D_`'_tl_)', `define($1`'_MF_D_,_tl_)')',`define($1`'_MF_,`$2')define($1`'_MF_A_,`')define($1`'_MF_D_,`')')')
|
|
|
|
|
dnl ----
|
|
|
|
|
dnl actually modify flags:
|
|
|
|
|
dnl $1: flags (strings) to modify
|
|
|
|
|
dnl $2: name of flags (just first part) to modify
|
|
|
|
|
dnl WARNING: the order might be important: if someone adds and delete the
|
|
|
|
|
dnl same characters, he does not deserve any better, does he?
|
|
|
|
|
dnl this could be coded more efficiently... (do not apply the macro if _MF_A/D_ is undefined)
|
|
|
|
|
define(`_MODMF_',`ifdef($2`'_MF_,`$2_MF_',`_AP_(`_ADDCHAR_',_AP_(`_DELCHAR_',$1,ifdef($2`'_MF_D_,`$2_MF_D_',`')),ifdef($2`'_MF_A_,`$2_MF_A_',`'))')')
|
|
|
|
|
dnl usage:
|
|
|
|
|
dnl MODIFY_MAILER_FLAGS(`LOCAL',`+FlaGs')dnl
|
|
|
|
|
dnl in MAILER.m4: _MODMF_(LMF,`LOCAL')
|
|
|
|
|
dnl ----------------------------------------
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`MAILER',
|
2000-08-12 22:19:16 +00:00
|
|
|
|
`define(`_M_N_', `ifelse(`$2', `', `$1', `$2')')dnl
|
2002-02-17 21:58:34 +00:00
|
|
|
|
ifdef(`_MAILER_DEFINED_', `', `define(`_MAILER_DEFINED_', `1')')dnl
|
|
|
|
|
ifdef(_MAILER_`'_M_N_`'_,
|
|
|
|
|
`errprint(`*** ERROR: MAILER('_M_N_`) already included
|
|
|
|
|
')',
|
2000-08-12 22:19:16 +00:00
|
|
|
|
`define(_MAILER_`'_M_N_`'_, `')define(`_ARG_', `$2')define(`_ARGS_', `shift($@)')PUSHDIVERT(7)include(_CF_DIR_`'mailer/$1.m4)POPDIVERT`'')')
|
|
|
|
|
define(`DOMAIN', `PUSHDIVERT(-1)define(`_ARG_', `$2')include(_CF_DIR_`'domain/$1.m4)POPDIVERT`'')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`FEATURE', `PUSHDIVERT(-1)ifdef(`_MAILER_DEFINED_',`errprint(`*** ERROR: FEATURE() should be before MAILER()
|
|
|
|
|
')')define(`_ARG_', `$2')define(`_ARGS_', `shift($@)')include(_CF_DIR_`'feature/$1.m4)POPDIVERT`'')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`HACK', `PUSHDIVERT(-1)define(`_ARG_', `$2')define(`_ARGS_', `shift($@)')include(_CF_DIR_`'hack/$1.m4)POPDIVERT`'')
|
|
|
|
|
define(`_DPO_',`')
|
|
|
|
|
define(`DAEMON_OPTIONS', `define(`_DPO_', defn(`_DPO_')
|
|
|
|
|
O DaemonPortOptions=`$1')')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`_CPO_',`')
|
|
|
|
|
define(`CLIENT_OPTIONS', `define(`_CPO_', defn(`_CPO_')
|
|
|
|
|
O ClientPortOptions=`$1')')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`_MAIL_FILTERS_', `')
|
2002-06-26 02:50:37 +00:00
|
|
|
|
define(`_MAIL_FILTERS_DEF', `')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`MAIL_FILTER', `define(`_MAIL_FILTERS_', defn(`_MAIL_FILTERS_')
|
2002-06-26 02:50:37 +00:00
|
|
|
|
X`'$1`, '`$2')
|
|
|
|
|
define(`_MAIL_FILTERS_DEF', defn(`_MAIL_FILTERS_DEF')`X')')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`INPUT_MAIL_FILTER', `MAIL_FILTER(`$1', `$2')
|
|
|
|
|
ifelse(defn(`confINPUT_MAIL_FILTERS')X, `X',
|
|
|
|
|
`define(`confINPUT_MAIL_FILTERS', $1)',
|
|
|
|
|
`define(`confINPUT_MAIL_FILTERS', defn(`confINPUT_MAIL_FILTERS')`, '`$1')')')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`_QUEUE_GROUP_', `')
|
|
|
|
|
define(`QUEUE_GROUP', `define(`_QUEUE_GROUP_', defn(`_QUEUE_GROUP_')
|
|
|
|
|
Q`'$1`, '`$2')')
|
|
|
|
|
define(`CF_LEVEL', `10')dnl
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`VERSIONID', ``##### $1 #####'')
|
|
|
|
|
define(`LOCAL_RULE_0', `divert(3)')
|
2003-03-29 19:18:07 +00:00
|
|
|
|
dnl for UUCP...
|
|
|
|
|
define(`LOCAL_UUCP', `divert(4)')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`LOCAL_RULE_1',
|
|
|
|
|
`divert(9)dnl
|
|
|
|
|
#######################################
|
|
|
|
|
### Ruleset 1 -- Sender Rewriting ###
|
|
|
|
|
#######################################
|
|
|
|
|
|
2000-08-12 22:19:16 +00:00
|
|
|
|
Ssender=1
|
1995-12-02 17:30:23 +00:00
|
|
|
|
')
|
|
|
|
|
define(`LOCAL_RULE_2',
|
|
|
|
|
`divert(9)dnl
|
|
|
|
|
##########################################
|
|
|
|
|
### Ruleset 2 -- Recipient Rewriting ###
|
|
|
|
|
##########################################
|
|
|
|
|
|
2000-08-12 22:19:16 +00:00
|
|
|
|
Srecipient=2
|
1996-10-24 04:51:14 +00:00
|
|
|
|
')
|
|
|
|
|
define(`LOCAL_RULESETS',
|
|
|
|
|
`divert(9)
|
|
|
|
|
|
1995-12-02 17:30:23 +00:00
|
|
|
|
')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`LOCAL_SRV_FEATURES',
|
|
|
|
|
`define(`_LOCAL_SRV_FEATURES_')
|
|
|
|
|
ifdef(`_MAILER_DEFINED_',,`errprint(`*** WARNING: MAILER() should be before LOCAL_SRV_FEATURES
|
|
|
|
|
')')
|
|
|
|
|
divert(9)
|
|
|
|
|
SLocal_srv_features')
|
|
|
|
|
define(`LOCAL_TRY_TLS',
|
|
|
|
|
`define(`_LOCAL_TRY_TLS_')
|
|
|
|
|
ifdef(`_MAILER_DEFINED_',,`errprint(`*** WARNING: MAILER() should be before LOCAL_TRY_TLS
|
|
|
|
|
')')
|
|
|
|
|
divert(9)
|
|
|
|
|
SLocal_try_tls')
|
|
|
|
|
define(`LOCAL_TLS_RCPT',
|
|
|
|
|
`define(`_LOCAL_TLS_RCPT_')
|
|
|
|
|
ifdef(`_MAILER_DEFINED_',,`errprint(`*** WARNING: MAILER() should be before LOCAL_TLS_RCPT
|
|
|
|
|
')')
|
|
|
|
|
divert(9)
|
|
|
|
|
SLocal_tls_rcpt')
|
|
|
|
|
define(`LOCAL_TLS_CLIENT',
|
|
|
|
|
`define(`_LOCAL_TLS_CLIENT_')
|
|
|
|
|
ifdef(`_MAILER_DEFINED_',,`errprint(`*** WARNING: MAILER() should be before LOCAL_TLS_CLIENT
|
|
|
|
|
')')
|
|
|
|
|
divert(9)
|
|
|
|
|
SLocal_tls_client')
|
|
|
|
|
define(`LOCAL_TLS_SERVER',
|
|
|
|
|
`define(`_LOCAL_TLS_SERVER_')
|
|
|
|
|
ifdef(`_MAILER_DEFINED_',,`errprint(`*** WARNING: MAILER() should be before LOCAL_TLS_SERVER
|
|
|
|
|
')')
|
|
|
|
|
divert(9)
|
|
|
|
|
SLocal_tls_server')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`LOCAL_RULE_3', `divert(2)')
|
|
|
|
|
define(`LOCAL_CONFIG', `divert(6)')
|
1996-10-24 04:51:14 +00:00
|
|
|
|
define(`MAILER_DEFINITIONS', `divert(7)')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`LOCAL_NET_CONFIG', `define(`_LOCAL_RULES_', 1)divert(1)')
|
|
|
|
|
define(`UUCPSMTP', `R DOL(*) < @ $1 .UUCP > DOL(*) DOL(1) < @ $2 > DOL(2)')
|
|
|
|
|
define(`CONCAT', `$1$2$3$4$5$6$7')
|
|
|
|
|
define(`DOL', ``$'$1')
|
|
|
|
|
define(`SITECONFIG',
|
|
|
|
|
`CONCAT(D, $3, $2)
|
|
|
|
|
define(`_CLASS_$3_', `')dnl
|
2002-02-17 21:58:34 +00:00
|
|
|
|
ifelse($3, U, C{w}$2 $2.UUCP, `dnl')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`SITE', `ifelse(CONCAT($'2`, $3), SU,
|
|
|
|
|
CONCAT(CY, $'1`),
|
|
|
|
|
CONCAT(C, $3, $'1`))')
|
|
|
|
|
sinclude(_CF_DIR_`'siteconfig/$1.m4)')
|
2001-02-28 00:22:47 +00:00
|
|
|
|
define(`EXPOSED_USER', `PUSHDIVERT(5)C{E}$1
|
1997-01-27 07:37:00 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`EXPOSED_USER_FILE', `PUSHDIVERT(5)F{E}$1
|
|
|
|
|
POPDIVERT`'dnl`'')
|
2001-02-28 00:22:47 +00:00
|
|
|
|
define(`LOCAL_USER', `PUSHDIVERT(5)C{L}$1
|
1997-01-27 07:37:00 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`LOCAL_USER_FILE', `PUSHDIVERT(5)F{L}$1
|
|
|
|
|
POPDIVERT`'dnl`'')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`MASQUERADE_AS', `define(`MASQUERADE_NAME', $1)')
|
2001-02-28 00:22:47 +00:00
|
|
|
|
define(`MASQUERADE_DOMAIN', `PUSHDIVERT(5)C{M}$1
|
1997-01-27 07:37:00 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
2001-02-28 00:22:47 +00:00
|
|
|
|
define(`MASQUERADE_EXCEPTION', `PUSHDIVERT(5)C{N}$1
|
2000-08-12 22:19:16 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
2001-02-28 00:22:47 +00:00
|
|
|
|
define(`MASQUERADE_DOMAIN_FILE', `PUSHDIVERT(5)F{M}$1
|
1997-01-27 07:37:00 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`MASQUERADE_EXCEPTION_FILE', `PUSHDIVERT(5)F{N}$1
|
|
|
|
|
POPDIVERT`'dnl`'')
|
2001-02-28 00:22:47 +00:00
|
|
|
|
define(`LOCAL_DOMAIN', `PUSHDIVERT(5)C{w}$1
|
2000-08-12 22:19:16 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
|
|
|
|
define(`CANONIFY_DOMAIN', `PUSHDIVERT(5)C{Canonify}$1
|
|
|
|
|
POPDIVERT`'dnl`'')
|
|
|
|
|
define(`CANONIFY_DOMAIN_FILE', `PUSHDIVERT(5)F{Canonify}$1
|
|
|
|
|
POPDIVERT`'dnl`'')
|
2001-02-28 00:22:47 +00:00
|
|
|
|
define(`GENERICS_DOMAIN', `PUSHDIVERT(5)C{G}$1
|
1997-01-27 07:37:00 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
2001-02-28 00:22:47 +00:00
|
|
|
|
define(`GENERICS_DOMAIN_FILE', `PUSHDIVERT(5)F{G}$1
|
1997-01-27 07:37:00 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`LDAPROUTE_DOMAIN', `PUSHDIVERT(5)C{LDAPRoute}$1
|
|
|
|
|
POPDIVERT`'dnl`'')
|
|
|
|
|
define(`LDAPROUTE_DOMAIN_FILE', `PUSHDIVERT(5)F{LDAPRoute}$1
|
|
|
|
|
POPDIVERT`'dnl`'')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`LDAPROUTE_EQUIVALENT', `PUSHDIVERT(5)C{LDAPRouteEquiv}$1
|
|
|
|
|
POPDIVERT`'dnl`'')
|
|
|
|
|
define(`LDAPROUTE_EQUIVALENT_FILE', `PUSHDIVERT(5)F{LDAPRouteEquiv}$1
|
|
|
|
|
POPDIVERT`'dnl`'')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`VIRTUSER_DOMAIN', `PUSHDIVERT(5)C{VirtHost}$1
|
|
|
|
|
define(`_VIRTHOSTS_')
|
|
|
|
|
POPDIVERT`'dnl`'')
|
|
|
|
|
define(`VIRTUSER_DOMAIN_FILE', `PUSHDIVERT(5)F{VirtHost}$1
|
|
|
|
|
define(`_VIRTHOSTS_')
|
|
|
|
|
POPDIVERT`'dnl`'')
|
2001-02-28 00:22:47 +00:00
|
|
|
|
define(`RELAY_DOMAIN', `PUSHDIVERT(5)C{R}$1
|
1998-08-03 05:56:20 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
2001-02-28 00:22:47 +00:00
|
|
|
|
define(`RELAY_DOMAIN_FILE', `PUSHDIVERT(5)F{R}$1
|
1998-08-03 05:56:20 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`TRUST_AUTH_MECH', `_DEFIFNOT(`_USE_AUTH_',`1')PUSHDIVERT(5)C{TrustAuthMech}$1
|
2000-08-12 22:19:16 +00:00
|
|
|
|
POPDIVERT`'dnl`'')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`_OPTINS', `ifdef(`$1', `$2$1$3')')
|
|
|
|
|
|
2000-08-12 22:19:16 +00:00
|
|
|
|
|
1995-12-02 17:30:23 +00:00
|
|
|
|
m4wrap(`include(_CF_DIR_`m4/proto.m4')')
|
|
|
|
|
|
2000-08-12 22:19:16 +00:00
|
|
|
|
# default location for files
|
|
|
|
|
ifdef(`MAIL_SETTINGS_DIR', , `define(`MAIL_SETTINGS_DIR', `/etc/mail/')')
|
|
|
|
|
|
|
|
|
|
# set our default hashed database type
|
|
|
|
|
define(`DATABASE_MAP_TYPE', `hash')
|
|
|
|
|
|
1995-12-02 17:30:23 +00:00
|
|
|
|
# set up default values for options
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`ALIAS_FILE', `MAIL_SETTINGS_DIR`'aliases')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`confMAILER_NAME', ``MAILER-DAEMON'')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`confFROM_LINE', `From $g $d')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`confOPERATORS', `.:%@!^/[]+')
|
|
|
|
|
define(`confSMTP_LOGIN_MSG', `$j Sendmail $v/$Z; $b')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`_REC_AUTH_', `$.$?{auth_type}(authenticated')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`_REC_FULL_AUTH_', `$.$?{auth_type}(user=${auth_authen} $?{auth_author}author=${auth_author} $.mech=${auth_type}')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`_REC_HDR_', `$?sfrom $s $.$?_($?s$|from $.$_)')
|
|
|
|
|
define(`_REC_END_', `for $u; $|;
|
2000-08-13 18:47:42 +00:00
|
|
|
|
$.$b$?g
|
2000-08-12 22:19:16 +00:00
|
|
|
|
(envelope-from $g)$.')
|
2002-02-17 21:58:34 +00:00
|
|
|
|
define(`_REC_TLS_', `(version=${tls_version} cipher=${cipher} bits=${cipher_bits} verify=${verify})$.$?u')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`_REC_BY_', `$.by $j ($v/$Z)$?r with $r$. id $i$?{tls_version}')
|
|
|
|
|
define(`confRECEIVED_HEADER', `_REC_HDR_
|
2002-02-17 21:58:34 +00:00
|
|
|
|
_REC_AUTH_$?{auth_ssf} bits=${auth_ssf}$.)
|
2000-08-12 22:19:16 +00:00
|
|
|
|
_REC_BY_
|
|
|
|
|
_REC_TLS_
|
|
|
|
|
_REC_END_')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`confSEVEN_BIT_INPUT', `False')
|
|
|
|
|
define(`confALIAS_WAIT', `10')
|
|
|
|
|
define(`confMIN_FREE_BLOCKS', `100')
|
|
|
|
|
define(`confBLANK_SUB', `.')
|
|
|
|
|
define(`confCON_EXPENSIVE', `False')
|
|
|
|
|
define(`confDELIVERY_MODE', `background')
|
|
|
|
|
define(`confTEMP_FILE_MODE', `0600')
|
|
|
|
|
define(`confMCI_CACHE_SIZE', `2')
|
|
|
|
|
define(`confMCI_CACHE_TIMEOUT', `5m')
|
|
|
|
|
define(`confUSE_ERRORS_TO', `False')
|
|
|
|
|
define(`confLOG_LEVEL', `9')
|
|
|
|
|
define(`confCHECK_ALIASES', `False')
|
|
|
|
|
define(`confOLD_STYLE_HEADERS', `True')
|
|
|
|
|
define(`confPRIVACY_FLAGS', `authwarnings')
|
|
|
|
|
define(`confSAFE_QUEUE', `True')
|
|
|
|
|
define(`confTO_QUEUERETURN', `5d')
|
|
|
|
|
define(`confTO_QUEUEWARN', `4h')
|
|
|
|
|
define(`confTIME_ZONE', `USE_SYSTEM')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`confCW_FILE', `MAIL_SETTINGS_DIR`'local-host-names')
|
1995-12-02 17:30:23 +00:00
|
|
|
|
define(`confMIME_FORMAT_ERRORS', `True')
|
|
|
|
|
define(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
define(`confCR_FILE', `-o MAIL_SETTINGS_DIR`'relay-domains')
|
|
|
|
|
define(`confMILTER_MACROS_CONNECT', ``j, _, {daemon_name}, {if_name}, {if_addr}'')
|
|
|
|
|
define(`confMILTER_MACROS_HELO', ``{tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_issuer}'')
|
|
|
|
|
define(`confMILTER_MACROS_ENVFROM', ``i, {auth_type}, {auth_authen}, {auth_ssf}, {auth_author}, {mail_mailer}, {mail_host}, {mail_addr}'')
|
|
|
|
|
define(`confMILTER_MACROS_ENVRCPT', ``{rcpt_mailer}, {rcpt_host}, {rcpt_addr}'')
|
2004-08-01 01:16:16 +00:00
|
|
|
|
define(`confMILTER_MACROS_EOM', `{msg_id}')
|
2000-08-12 22:19:16 +00:00
|
|
|
|
|
1995-12-02 17:30:23 +00:00
|
|
|
|
|
|
|
|
|
divert(0)dnl
|
2004-08-01 01:16:16 +00:00
|
|
|
|
VERSIONID(`$Id: cfhead.m4,v 8.116 2004/01/28 22:02:22 ca Exp $')
|