Subject: Re: Sendmail: extraneous duplicate detection
To: Eric Allman <eric@CS.Berkeley.EDU>
From: Havard Eidnes <Havard.Eidnes@runit.sintef.no>
List: netbsd-bugs
Date: 12/12/1993 02:34:52
> Hmmm......  I thought I had fixed this with the uid check, but I
> obviously botched it.  However, your fix has some other problems.

What are those?

> I suggest the following patch instead:

Hmm, with your patch, a given user can't have more than one prog mailer
invoked for him directly from his .forward file.  Bug or feature?

Furthermore, your fix appears not to work...  I just tested it:

rype# pwd
/usr/users
rype# cat u[12]/.forward
"|/bin/sh -c '/bin/cat >>/tmp/msg'"
"|/bin/sh -c '/bin/cat >>/tmp/msg'"
rype# 
rype# sendmail -bv -v u1 u2
/usr/users/u1/.forward: line 1: forwarding to "|/bin/sh -c '/bin/cat >>/tmp/msg'"
/usr/users/u2/.forward: line 1: forwarding to "|/bin/sh -c '/bin/cat >>/tmp/msg'"
"|/bin/sh -c '/bin/cat >>/tmp/msg'"... deliverable: mailer prog, host , user "|/bin/sh -c '/bin/cat >>/tmp/msg'"
rype# 

Really sending a piece of mail turned up only one copy in /tmp/msg as well,
and only one log entry in /var/log/maillog.  So, sorry, no dice.  I still
think my fix is more correct, because with it I get:

rype# sendmail -bv -v u1 u2
/usr/users/u1/.forward: line 1: forwarding to "|/bin/sh -c '/bin/cat >>/tmp/msg'"
/usr/users/u2/.forward: line 1: forwarding to "|/bin/sh -c '/bin/cat >>/tmp/msg'"
"|/bin/sh -c '/bin/cat >>/tmp/msg'"... deliverable: mailer prog, host , user "|/bin/sh -c '/bin/cat >>/tmp/msg'"
"|/bin/sh -c '/bin/cat >>/tmp/msg'"... deliverable: mailer prog, host , user "|/bin/sh -c '/bin/cat >>/tmp/msg'"
rype# 

which is what I should get, IMHO.


- Havard

------------------------------------------------------------------------------