Date: Thu, 19 Dec 2002 08:14:43 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Getting Perl scripts to work as mail filters Message-ID: <20021219081443.GB80493@happy-idiot-talk.infracaninophi> In-Reply-To: <OE51Z9rWjAKYVpMmOlb00005e1f@hotmail.com> References: <NCBBIAMNAKDKFJIIGNPKGEGLKHAA.barry.byrne@wbtsystems.com> <OE31qwso6EsEWo2q0LZ00004187@hotmail.com> <200212182250.GBIMOPT39354@asarian-host.net> <OE51Z9rWjAKYVpMmOlb00005e1f@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 19, 2002 at 01:13:17AM +0100, Mxsmanic wrote: > What about appending directly to the mailbox file under /var/mail/$USER with > the script? It looks like the format of the file is very simple. Why > wouldn't that work? I've tried writing to it, but I can't, at least not > when the script runs from the aliases file (works fine when I run it myself, > though). mail.local(8) is probably what you want to use to do that. However your main problem will be getting sendmail to setuid() to the required user before calling the mymail script. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK 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?20021219081443.GB80493>