Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Dec 1994 1:34:02 EDT
From:      "M.C Wong" <mcw@hpato.aus.hp.com>
To:        freebsd-questions@freefall.cdrom.com (freebsd-questions@freefall.cdrom.com)
Subject:   Rule Set S22 of V8 sendmail 
Message-ID:  <199412291435.AA118081721@hp.com>

next in thread | raw e-mail | index | archive | help

Hi,
  I am using 1.1.5.1, V8 sendmail and 1.05 Taylor UUCP on home machine.
I have finally gotten the box to be able to send/receive emails. However, that
is with tweaking one of the S22 rule for rewriting recipient address, ie :

#
#  envelope and header recipient rewriting
#
S22

# don't touch list:; syntax
R$* :; <@>                      $@ $1 :;

R$* < @ $* . >                  $1 < @ $2 >             
R$* < @ $j >                    $1                      
R<@ $- . UUCP > : $+            $1 ! $2                 
R<@ $+ > : $+                   $1 ! $2                 
R$* < @ $- . UUCP >             $2 ! $1                 
R$* < @ $+ >                    $2 ! $1                 
R$&h ! $+ ! $+                  $@ $1 ! $2              
R$&h ! $+                       $@ $&h ! $1             
# The following rule is the one I changed!
R$+                             $: $Y ! $1              prepend my relay' name
# R$+                           $: $U ! $1              prepend our name
R! $+                           $: $k ! $1              in case $U undefined

The change I made was to make second last rule to prepend my UUCP relay or
smart host to the final recipient adress instead of MY ($U) UUCP name! This
file is generated from the following .mc file :

divert(-1)
include(`../m4/cf.m4')
VERSIONID(`@(#)sendmail.mc      $Revision: 1.1 $') 
OSTYPE(bsd4.4)dnl 
FEATURE(nodns)dnl
FEATURE(always_add_domain)dnl
MAILER(local)dnl 
MAILER(smtp)dnl
MAILER(uucp)dnl
define(`UUCP_RELAY', myrelayuucphost)dnl
define(`SMART_HOST', suucp:myrelayuucphost)dnl
LOCAL_NET_CONFIG
R$* < @ $* . > $*       $#smtp $@ $2. $: $1 < @ $2. > $3
# R$* < @ $* .$m. > $*  $#smtp $@ $@.$m. $: $1 < @ $2.$m. > $3
#
define(`confCHECKPOINT_INTERVAL', 4)dnl
define(`confAUTO_REBUILD', True)dnl
define(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')dnl

As you can see UUCP_RELAY = SMART_HOST = myrelayuucphost, and after running
it through m4, the entire sendmail.cf file is generated, and the above S22
rules are also generated.

If I didn't make the changes to that rule above, mails get queued and invokation
of uucico spool it to my UUCP smart host : myrelayuucphost, and subsequent
invokation of uucico will spool the jobs back to my system since the recipient
address has been prepended with my UUCP host name! I experimented with this
behaviour a few times, and can see my UUCP host name get accumulated to the
recipient address!

So, can someone please tell me is something wrong with the above sendmail.mc
file ? Oh BTW, I defined my UUCP host name ($U) in the generated sendmail.cf.

Thanks in advance.


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 M.C Wong 				   Email: mcw@hpato.aus.hp.com 
 Australian Telecom Operation              Voice: +61 3 272 8058        
 Hewlett-Packard Australia Ltd             Fax:   +61 3 898 9257        
 31 Joseph St, Blackburn 3130, Australia   OS: FreeBSD-1.1.5.1
 http://hpautow.aus.hp.com:9999/~mcw/mcw.html (or http://hpautorf/~mcw)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199412291435.AA118081721>