From: Eric Allman Date: Thu, 3 Oct 1991 06:48:26 +0000 (-0800) Subject: date and time created 91/10/02 14:48:26 by eric X-Git-Tag: BSD-4_4-Snapshot-Development~9225 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/cb6de8af9ae7caed85148b79de7cd592e6e333d6 date and time created 91/10/02 14:48:26 by eric SCCS-vsn: usr.sbin/sendmail/cf/mailer/local.m4 2.1 SCCS-vsn: usr.sbin/sendmail/cf/mailer/smtp.m4 2.1 --- diff --git a/usr/src/usr.sbin/sendmail/cf/mailer/local.m4 b/usr/src/usr.sbin/sendmail/cf/mailer/local.m4 new file mode 100644 index 0000000000..f3b69c3c13 --- /dev/null +++ b/usr/src/usr.sbin/sendmail/cf/mailer/local.m4 @@ -0,0 +1,21 @@ +PUSHDIVERT(-1) +# +# Copyright (c) 1983 Eric P. Allman +# Copyright (c) 1988 The Regents of the University of California. +# All rights reserved. +# +# %sccs.include.redist.sh% +# +POPDIVERT + +################################################## +### Local and Program Mailer specification ### +################################################## + +VERSIONID(@(#)local.m4 2.1 (Berkeley) %G%) + +Mlocal, P=ifdef(`LOCAL_MAILER', LOCAL_MAILER, /bin/mail), F=rlsDFMmn, S=10, R=20, A=mail -d $u +Mprog, P=ifdef(`LOCAL_SHELL', LOCAL_SHELL, /bin/sh), F=lsDFMe, S=10, R=20, A=sh -c $u + +S10 +R@ $n errors to mailer-daemon diff --git a/usr/src/usr.sbin/sendmail/cf/mailer/smtp.m4 b/usr/src/usr.sbin/sendmail/cf/mailer/smtp.m4 new file mode 100644 index 0000000000..76f442a7e9 --- /dev/null +++ b/usr/src/usr.sbin/sendmail/cf/mailer/smtp.m4 @@ -0,0 +1,37 @@ +PUSHDIVERT(-1) +# +# Copyright (c) 1983 Eric P. Allman +# Copyright (c) 1988 The Regents of the University of California. +# All rights reserved. +# +# %sccs.include.redist.sh% +# +POPDIVERT +##################################### +### SMTP Mailer specification ### +##################################### + +VERSIONID(@(#)smtp.m4 2.1 (Berkeley) %G%) + +Msmtp, P=[IPC], F=mDFMueXLC, S=11, R=11, A=IPC $h, E=\r\n + +S11 + +# pass s through +`R< @ $+ > $* $@ < @ $1 > $2 resolve ' + +# output fake domains as user%fake@relay +ifdef(`BITNET_RELAY', +``R$+ <@ $+ . BITNET > $: $1 % $2 .BITNET < @ $B > user@host.BITNET'', + `dnl') +ifdef(`CSNET_RELAY', +``R$+ <@ $+ . CSNET > $: $1 % $2 .CSNET < @ $C > user@host.CSNET'', + `dnl') +`R$+ <@ $+ . UUCP > $: $2 ! $1 < @ $w > user@host.UUCP' + +# if already @ qualified, we are done +`R$+ < @ $+ > $@ $1 < @ $2 > already qualified' + +# unqualified names (e.g., "eric") "come from" $M +`R$+ $: $1 < @ $M > user w/o host' +`R$+ < @ > $: $1 < @ $w > in case $M undefined'