template.cf in smail delivery (bug??)
Vesa Kein{nen
vjk at tut.UUCP
Tue Mar 10 01:20:34 AEST 1987
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 at myhost.mydomain or a at myhost
will not be catched.
- address a at foobar.myhost.mydomain will be turned to
a at 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 at tut.UUCP (mcvax!tut!vjk) # PO box 527, SF-33101 Tampere, Finland
vjk at tut.fi # tel: (931)162708
--
Vesa Keinanen # Tampere University of Technology
# /Computer Systems Laboratory
vjk at tut.UUCP (mcvax!tut!vjk) # PO box 527, SF-33101 Tampere, Finland
vjk at tut.fi # tel: (931)162708
More information about the Comp.sources.bugs
mailing list