date and time created 91/10/02 14:48:26 by eric
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 3 Oct 1991 06:48:26 +0000 (22:48 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 3 Oct 1991 06:48:26 +0000 (22:48 -0800)
SCCS-vsn: usr.sbin/sendmail/cf/mailer/local.m4 2.1
SCCS-vsn: usr.sbin/sendmail/cf/mailer/smtp.m4 2.1

usr/src/usr.sbin/sendmail/cf/mailer/local.m4 [new file with mode: 0644]
usr/src/usr.sbin/sendmail/cf/mailer/smtp.m4 [new file with mode: 0644]

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 (file)
index 0000000..f3b69c3
--- /dev/null
@@ -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 (file)
index 0000000..76f442a
--- /dev/null
@@ -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 <route-addr>s through
+`R< @ $+ > $*          $@ < @ $1 > $2                  resolve <route-addr>'
+
+# 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'