Article View: net.sources.bugs
Article #959template.cf in smail delivery (bug??)
From: Vesa Kein{nen
Date: Mon, 09 Mar 1987 15:20
Date: Mon, 09 Mar 1987 15:20
64 lines
2585 bytes
2585 bytes
There seems to be bug in sendmail configuration file
(template.cf) which came with smail delivery in february.
In the beginning of ruleset 0 there is code like this
# strip local stuff
R$*<@$-.$w.$D>$* $1<@$2>$3
R$*<@$-.$D>$* $1<@$2>$3
R$*<@$-.$w.$=D>$* $1<@$2>$4 (3)
R$*<@$-.$w.$A>$* $1<@$2>$3
R$*<@$-.$A>$* $1<@$2>$3
R$*<@$-.$w.$=T>$* $1<@$2>$4
R$*<$*$w>$* $1<$2>$3 (7)
R$*<$*.>$* $1<$2>$3
R<@>:$+ $@$>0$1
R$+<@> $@$>0$1
Meaning of this code seems clear to me:
- catch any address which may point to this host,
remove that address and feed rest (through ruleset
3) to ruleset 0
- Strip local domain and leave just hostname
Bugs:
- If you don't define that your host is gateway between
two domains when you run make.cf.sh lines 3 and 7 get commented
out and addresses like a@myhost.mydomain or a@myhost
will not be catched.
- address a@foobar.myhost.mydomain will be turned to
a@foobar. Doesn't make sense.
I belive that smail catches local addresses, so with smail this
is no problem. I have to use that on workstation with just
SMTP-connection so smail is no use for me. Here is a
form I'm using now.
# strip local stuff
R$*<@$*$w.$D>$* $1<@>$3
R$*<@$*$w.$=D>$* $1<@>$4
R$*<@$*$w.$A>$* $1<@>$3
R$*<@*$w.$=T>$* $1<@>$4
R$*<$*$w>$* $1<@>$3
R$*<$*.>$* $1<$2>$3
R<@>:$+ $@$>0$1
R$+<@> $@$>0$1
Any comments are welcome.
Vesa
----------------------------------------------------------------------
Vesa Keinanen # Tampere University of Technology
# /Computer Systems Laboratory
vjk@tut.UUCP (mcvax!tut!vjk) # PO box 527, SF-33101 Tampere, Finland
vjk@tut.fi # tel: (931)162708
--
Vesa Keinanen # Tampere University of Technology
# /Computer Systems Laboratory
vjk@tut.UUCP (mcvax!tut!vjk) # PO box 527, SF-33101 Tampere, Finland
vjk@tut.fi # tel: (931)162708
Technical Details
Message-ID:
<739@korppi.tut.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!enea!tut!vjkShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!mcvax!enea!tut!vjk
From: vjk@tut.UUCP (Vesa Kein{nen)
Newsgroups: net.sources.bugs
Subject: template.cf in smail delivery (bug??)
Message-ID: <739@korppi.tut.UUCP>
Date: Mon, 9-Mar-87 10:20:34 EST
Article-I.D.: korppi.739
Posted: Mon Mar 9 10:20:34 1987
Date-Received: Tue, 10-Mar-87 18:35:42 EST
Reply-To: vjk@tut.UUCP ()
Distribution: world
Organization: Tampere University of Technology, Finland
Lines: 64
Keywords: sendmail smail