Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!edcastle!cs.glasgow.ac.uk!daemon From: kquinlan@edg.cv.co.uk (Kevin Quinlan) Newsgroups: mail.uk-sendmail-workers,comp.mail.sendmail Subject: UK-Sendmail 2.1 problem with "$%y" Message-ID: <9002281231.AA01262@haley.cvedg.prime.com> Date: 28 Feb 90 11:31:31 GMT Sender: daemon@cs.glasgow.ac.uk Lines: 45 Approved: usenet@cs.glasgow.ac.uk X-Mailer: ELM [version 2.2 PL13] I have come across a problem with UK Sendmail 2.1 when trying to use the $%y class on a Sun running SunOS 3.5. If I put the following in my ether channel table: $%y.prime.com $2 Chnbuild chooses to build the rule S17 thus: R$+@$%y.prime.com $@<$1@$%y.prime.com>$%y.ether This does not work as sendmail tries to find a host called "_y.prime.com" on which to deliver the message. If I change the rule to read: R$+@$%y.prime.com $@<$1@$2.prime.com>$2.ether Then it appears to work fine. But there is a conditional clause in the std mailer routine in Chnbuild thus: { if (dest == "$2") host = sub[j] This ensures that if I have put $2 on the RHS in my channel table I cannot get $2 in the rule - I get the first element of the LHS (ie $%y) - why? I should point out that there is only one line in the ether channel table, because all the hosts that I need to deliver mail to are in the same domain and in /etc/hosts. It seems to me that if the "$%y" line was one of several ( >= MINCLSIZE ) then I would get "$2"'s on the RHS regardless. Kevin Quinlan -- +---------------------------------------------------------------+ | Kevin Quinlan, Prime Computer R & D, Amersham, HP7 0PX, UK | | kquinlan@cvedg.prime.com | | kquinlan@uk.co.cv.edg +44 494 714771 x 269 | +---------------------------------------------------------------+