Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2002 12:36:29 +0100
From:      "Mxsmanic" <mxsmanic@hotmail.com>
To:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   Re: Getting Perl scripts to work as mail filters
Message-ID:  <OE23jCjWEF0HG0anlzm0000055a@hotmail.com>
References:  <NCBBIAMNAKDKFJIIGNPKGEGLKHAA.barry.byrne@wbtsystems.com> <OE31qwso6EsEWo2q0LZ00004187@hotmail.com> <200212182250.GBIMOPT39354@asarian-host.net> <OE51Z9rWjAKYVpMmOlb00005e1f@hotmail.com> <20021219081443.GB80493@happy-idiot-talk.infracaninophi>

next in thread | previous in thread | raw e-mail | index | archive | help
I finally got it to work by piping to sendmail.  Seems to be adequate for
what I want to do.

Now all I have to do is design my patented, foolproof methodology for
distinguishing spam from real mail so that I can encode the rules in the
script.  There must be a way!  Also, this may allow me to do something about
getting rid of HTML in mail, which I can't stand.

----- Original Message -----
From: "Matthew Seaman" <m.seaman@infracaninophile.co.uk>
To: "FreeBSD Questions" <freebsd-questions@FreeBSD.ORG>
Sent: Thursday, December 19, 2002 09:14
Subject: Re: Getting Perl scripts to work as mail filters


> 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
>

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?OE23jCjWEF0HG0anlzm0000055a>