SUMMARY: mail filter

From: Rob Beverly (rbeverly@eiffel.ce.gatech.edu)
Date: Wed Sep 06 1995 - 04:59:14 CDT


I originaly wrote:

> I have a filter program that works just fine. However, when I use
> it in a .forward file as follows:
> "| /files3/www/htdocs/helpdesk/filter"
>
> It works as it should, however, it send the following message back to
> the users who sent the mail:
>
> Return-Path: <Mailer-Daemon@cedude>
> Date: Mon, 4 Sep 1995 18:15:45 -0400
> Subject: Returned mail: unknown mailer error 1
> To: <rbeverly@eiffel>
>
> ----- Transcript of session follows -----
> <<< HELO eiffel.ce.gatech.edu
> <<< MAIL From:<rbeverly@eiffel>
> <<< RCPT To:<www@cedude>
> <<< DATA
> 554 "| /files3/www/htdocs/helpdesk/filter"... unknown mailer error 1
>
> Again, the /files3/www/htdocs/helpdesk/filter program processes the
> mail just fine. We are using:
> 220 cedude.gatech.edu Sendmail 5.x/SMI-SVR4 ready at Mon, 4 Sep 1995 18:18:47

Some misunderstood and thought I was using elm's filter function. I
though that my explicitly stating the path explained this.

bidwell@andrews.edu (Daniel R. Bidwell)
suggested that:
> One possible cause could be if the sendmail is using smrsh as a security
> measure. This requires all "legal" mail filters to be listed in the
> /etc/mail/sm.bin directory (on a Solaris 2.x machine). If this is the
> case, ask your system administrator include a copy of your filter in the
> /etc/mail/sm.bin directory or generate a link from your file to this
> directory.

The overwhelming response was that the program needs to return an exit
code of 0. My filter program was a custom C program that, once I fixed
it to return a 0, worked perfectly. My thanks to:

Ray Brownrigg <Ray.Brownrigg@isor.vuw.ac.nz>
astoll@ae3.Hypo.DE (Andreas Stoll (ConSol))
sweh@mpn.com (Stephen Harris)
Dave Mitchell <D.Mitchell@dcs.shef.ac.uk>
bern@penthesilea.uni-trier.de (Jochen Bern)
einari@rhi.hi.is (Einar Indridason)
tim@ben.dciem.dnd.ca
"Brian T. Wightman" <wightman@sol.acs.uwosh.edu>
Kevin.Sheehan@uniq.com.au (Kevin Sheehan {Consulting Poster Child})

-- 
Rob Beverly - GT Civil Engineering Computer Services
INet: rob.beverly@ce.gatech.edu 
WWW: http://www.ce.gatech.edu/Students/R.Beverly/rob.html
(404)894.0090[Work] (404)894.2278[Fax] (404)302-7171[VoiceMail]



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:33 CDT