SUMMARY: mail filter

From: Rob Beverly (
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
> <<< 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 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. (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 <>
astoll@ae3.Hypo.DE (Andreas Stoll (ConSol)) (Stephen Harris)
Dave Mitchell <> (Jochen Bern) (Einar Indridason)
"Brian T. Wightman" <> (Kevin Sheehan {Consulting Poster Child})

Rob Beverly - GT Civil Engineering Computer Services
(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