Article View: comp.mail.sendmail
Article #2630Re: Funny behavior when mailing to programs
From: Neil Rickert
Date: Wed, 06 Jan 1993 21:33
Date: Wed, 06 Jan 1993 21:33
22 lines
1654 bytes
1654 bytes
In article <1993Jan5.210513.6819@msc.cornell.edu> rob@lynx.msc.cornell.edu.UUCP (Rob Vaughn,302 Thurston Hall,50637,2730428) writes: >catmsgs: "|/bin/cat >> /c/src/documents/msgs" >I finally worked out that when the "prog" mailer is used, sendmail is >executing the program as the user sending the mail, unless that user is >running as 'root' in which case it runs the program as 'daemon'. When I >changed the ownership of the file above to 'daemon' the problems went >away. That is essentially correct. However if the mailing results from forwarding via a '.forward', then the permissions of the owner of the '.forward' are used. Likewise, if the alias is a ':include:/path/to/file' and the included file has a program alias, the permissions of the owner of the included file are used. However daemon still replaces root. This is for extra safety. If you want more control over permission during delivery, I recommend you install a delivery agent such as 'deliver' (from comp.sources.reviewed). This will also do file locking while delivering to a file - cat won't, so the file could be clobbered it two messages arrive at about the same time.
Technical Details
Message-ID:
<1993Jan6.213322.22842@mp.cs.niu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!rickertReferences:
<1993Jan5.210513.6819@msc.cornell.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.sendmail Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Subject: Re: Funny behavior when mailing to programs Message-ID: <1993Jan6.213322.22842@mp.cs.niu.edu> Organization: Northern Illinois University References: <1993Jan5.210513.6819@msc.cornell.edu> Date: Wed, 6 Jan 1993 21:33:22 GMT Lines: 23