*BSD News Article 64225


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!usenet.eel.ufl.edu!news-feed-1.peachnet.edu!paperboy.wellfleet.com!news3.near.net!news.ner.bbnplanet.net!aquila.sni-usa.com!root
From: hsnyder@sni-usa.com (Hal Snyder)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: sendmail.cf bug?
Date: Thu, 14 Mar 1996 20:10:56 GMT
Organization: Siemens Nixdorf
Lines: 21
Message-ID: <31487508.266262635@aquila.sni-usa.com>
NNTP-Posting-Host: 136.157.83.42
X-Newsreader: Forte Agent .99d/32.182

Here is a possible bug with the sendmail ruleset shipped with FreeBSD
2.1 (sendmail 8.6.12.1):

My domain is set with
  CPtrans.sni-usa.com
Addresses of the form
  joe@trans.sni-usa.com
get transformed into 
  joe@trans.sni-usa.com.sni-usa.com

The rule that does this is in Ruleset 96 - "bottom half of Ruleset 3"
  R$* < @ $* $~P > $*		$: $1 < @ $[ $2 $3 $] > $4
As I read this rule, it should fail if the input ends with any member
of class P.  Instead, ~P matches "com" and $* matches "trans.sni-usa."
causing the problem above.  

Commenting out the rule in question makes the problem go away.  It
sure looks as if this rule is not doing what it was intended to, but I
am too new to sendmail to know whether the problem is with 1) my
configuration, 2) the default sendmail.cf file, or 3) the sendmail
binary.  ??