In article <1huuhfINNjfj@network.ucsd.edu>, brian@ucsd.edu (Brian Kantor) writes:
> Yes, they iterate, but your problem is that on the second and successive
> iterations they are case-sensitive. The patch is simple; in the alias
> lookup subroutine, use newstring to make a copy of the alias being
> searched for and downcase it before the search. As far as I can see,
> that bug is present in all versions of vanilla sendmail through 5.67.
>
> I seem to recall that it's done correctly in IDA-sendmail.
> - Brian
Talk of luck! I read this yesterday after having struggled with that problem for a couple of hours. Thanks Brian.
The following patch is taken from IDA, I am not sure why they try null-terminated strings but decided to include that part. This is a context diff from a previously unmodiffied alias.c from berkeley 5.65, as usual your mileage may differ!