Date: Thu, 18 Jan 2001 11:57:00 -0500 (EST) From: "Ryan Masse" <rmasse@mastery.ca> To: webmaster@wmptl.com Cc: freebsd-questions@freebsd.org Subject: Re: best way to alias an email address to a filename Message-ID: <200101181657.f0IGv0e01049@comp1.mastery.ca>
next in thread | raw e-mail | index | archive | help
Nate this is what i use to email all the users on my box... I have a perl script that rips all the users with uid > 1001 to a file then use the aliases to email all the user within that list. > cat aliases | grep include aliased-user: :include:/var/log/user.list > > ls -la | grep user.list -rw-r--r-- 1 root wheel 121 Jan 18 11:00 user.list > Ryan Masse From: Nathan Vidican <webmaster@wmptl.com> To: <questions@freebsd.org> > What is the best way to alias an email address directly to a filename? > I have tried: > > tester1: /usr/local/htdocs/tester1.txt > > But I get an error from sendmail stating that it cannot open output > file. If I chmod that file to 666, then it works fine. Seeing as how > I'd rather NOT leave a file chmod'd 666 sitting on a publically > accessable webserver, any ideas how else I should be going about this? > Perhaps some sort of pipe to the cat command? Or could this be fixed > using a simple ownership/permissions change? > > -- > Nathan Vidican > webmaster@wmptl.com > Windsor Match Plate & Tool Ltd. > http://www.wmptl.com/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101181657.f0IGv0e01049>