Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.questions Subject: Re: Using Unix as a mail archive Message-ID: <1991Feb14.150750.20173@mp.cs.niu.edu> Date: 14 Feb 91 15:07:50 GMT References: <1991Feb14.133533.10078@aucs.AcadiaU.ca> Distribution: na Organization: Northern Illinois University Lines: 35 In article <1991Feb14.133533.10078@aucs.AcadiaU.ca> peter@aucs.acadiau.ca (Peter Steele) writes: > > network-tr: "| cat >> /u/archive/network-tr" > > However, the only way I can >seem to get this to work is to make the account and file world writeable, >which is not acceptable. I've played around with group protection but >can't seem to get something that works. When an alias like this is This is a 'sendmail' feature, although some label it as a misfeature. For a local sender, the command is executed with the permissions of the mail sender. For a sender from a different system, it uses the permissions of daemon. The term 'local sender' above needs some interpretation. On a network which shares common mail names, a sender on any of the workstations in the network might be considered local. I don't guarantee the following will work. It may depend on the version of 'sendmail'. Try: network-tr: :include:/usr/lib/mail/network-tr and in the file /usr/lib/mail/network-tr have the single entry: "| cat >> /u/archive/network-tr" Of course you can choose a different name and path for your ':include:' file if you wish. But try making it owned by daemon and in group daemon. Recent versions of sendmail use the ownership/group of the ':include:' file to run such a program. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940