151225SericPUSHDIVERT(-1)
251225Seric#
351225Seric# Copyright (c) 1983 Eric P. Allman
462501Sbostic# Copyright (c) 1988, 1993
562501Sbostic#	The Regents of the University of California.  All rights reserved.
651225Seric#
751225Seric# %sccs.include.redist.sh%
851225Seric#
964143Sericifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', `rmn')')
1059765Sericifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /bin/mail)')
1163755Sericifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', `mail -d $u')')
1263790Sericifdef(`LOCAL_SHELL_FLAGS',, `define(`LOCAL_SHELL_FLAGS', `eu')')
1359765Sericifdef(`LOCAL_SHELL_PATH',, `define(`LOCAL_SHELL_PATH', /bin/sh)')
1463790Sericifdef(`LOCAL_SHELL_ARGS',, `define(`LOCAL_SHELL_ARGS', `sh -c $u')')
1567988Sericifdef(`LOCAL_SHELL_DIR',, `define(`LOCAL_SHELL_DIR', `$z:/')')
1651225SericPOPDIVERT
1751225Seric
1851225Seric##################################################
1951225Seric###   Local and Program Mailer specification   ###
2051225Seric##################################################
2151225Seric
22*68892SericVERSIONID(`@(#)local.m4	8.15 (Berkeley) 04/26/95')
2351225Seric
24*68892SericMlocal,		P=LOCAL_MAILER_PATH, F=CONCAT(`lsDFMAw5:/|@', LOCAL_MAILER_FLAGS), S=10, R=20/40,
25*68892Seric		_OPTINS(`LOCAL_MAILER_MAX', `M=', `, ')_OPTINS(`LOCAL_MAILER_CHARSET', `C=', `, ')T=DNS/RFC822/X-Unix,
26*68892Seric		A=LOCAL_MAILER_ARGS
27*68892SericMprog,		P=LOCAL_SHELL_PATH, F=CONCAT(`lsDFMo', LOCAL_SHELL_FLAGS), S=10, R=20/40, D=LOCAL_SHELL_DIR
28*68892Seric		_OPTINS(`LOCAL_MAILER_MAX', `M=', `, ')T=X-Unix,
29*68892Seric		A=LOCAL_SHELL_ARGS
3051225Seric
3151225SericS10
3258500SericR<@>			$n			errors to mailer-daemon
3364749SericR$+			$: $>40 $1
3464749Seric
3564749SericS20
3664749SericR$+ < @ $* >		$: $1			strip host part
3764749Seric
3864749SericS40
3960264Sericifdef(`_ALWAYS_ADD_DOMAIN_',
4060264Seric`R$* < @ $* > $*		$@ $1 < @ $2 > $3	already fully qualified
4161103SericR$*			$: $1 @ $M		add local qualification
4261103SericR$* @			$: $1 @ $j		if $M not defined',
4360264Seric`dnl')
44