[comp.mail.sendmail] UK-Sendmail 2.1 problem with "$%y"

kquinlan@edg.cv.co.uk (Kevin Quinlan) (02/28/90)

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   |
 +---------------------------------------------------------------+