add confSMTP_MAILER to select default mailer for SMTP delivery
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 22 Jul 1993 03:12:16 +0000 (19:12 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 22 Jul 1993 03:12:16 +0000 (19:12 -0800)
SCCS-vsn: usr.sbin/sendmail/cf/m4/proto.m4 8.7

usr/src/usr.sbin/sendmail/cf/m4/proto.m4

index f36d2dd..3cf230f 100644 (file)
@@ -8,7 +8,7 @@ divert(-1)
 #
 divert(0)
 
 #
 divert(0)
 
-VERSIONID(`@(#)proto.m4        8.6 (Berkeley) %G%')
+VERSIONID(`@(#)proto.m4        8.7 (Berkeley) %G%')
 
 MAILER(local)dnl
 
 
 MAILER(local)dnl
 
@@ -21,6 +21,8 @@ V4
 define(`_SET_96_', 96)dnl
 define(`_SET_97_', 97)dnl
 define(`_SET_98_', 98)dnl')
 define(`_SET_96_', 96)dnl
 define(`_SET_97_', 97)dnl
 define(`_SET_98_', 98)dnl')
+ifdef(`confSMTP_MAILER',, `define(`confSMTP_MAILER', `esmtp')')dnl
+define(`_SMTP_', `confSMTP_MAILER')dnl for readability only
 
 ##################
 #   local info   #
 
 ##################
 #   local info   #
@@ -492,7 +494,7 @@ ifdef(`_MAILER_smtp_',
 ifdef(`_NO_CANONIFY_', `dnl',
 `R$* < @ [ $+ ] > $*   $: $1 < @ $[ [$2] $] > $3       numeric internet addr')
 R$* < @ [ $+ ] > $*    $: $>_SET_98_ $1 < @ [ $2 ] > $3        numeric internet spec
 ifdef(`_NO_CANONIFY_', `dnl',
 `R$* < @ [ $+ ] > $*   $: $1 < @ $[ [$2] $] > $3       numeric internet addr')
 R$* < @ [ $+ ] > $*    $: $>_SET_98_ $1 < @ [ $2 ] > $3        numeric internet spec
-R$* < @ [ $+ ] > $*    $#smtp $@ [$2] $: $1 @ [$2] $3  still numeric: send',
+R$* < @ [ $+ ] > $*    $#_SMTP_ $@ [$2] $: $1 @ [$2] $3        still numeric: send',
        `dnl')
 
 # now delete the local info -- note $=O to find characters that cause forwarding
        `dnl')
 
 # now delete the local info -- note $=O to find characters that cause forwarding
@@ -571,7 +573,7 @@ R<> $*                      $: $1                           else strip off gunk',
 
 `# deal with other remote names
 ifdef(`_MAILER_smtp_',
 
 `# deal with other remote names
 ifdef(`_MAILER_smtp_',
-`R$* < @$* > $*                $#smtp $@ $2 $: $1 < @ $2 > $3          user@host.domain',
+`R$* < @$* > $*                $#_SMTP_ $@ $2 $: $1 < @ $2 > $3                user@host.domain',
 `R$* < @$* > $*                $#error $@NOHOST $: Unrecognized host name $2')')
 
 ifdef(`_OLD_SENDMAIL_',
 `R$* < @$* > $*                $#error $@NOHOST $: Unrecognized host name $2')')
 
 ifdef(`_OLD_SENDMAIL_',