Re: system filters and pipe

Top Page
Delete this message
Reply to this message
Author: Roger Books
Date:  
To: exim-users
Subject: Re: system filters and pipe
> > On Fri, 10 Jan 1997, Roger Books wrote:
> >
> > > In order to correct this problem I'd like to have a system filter that
> > > filters things for local delivery, stripping out whoever is in the
> > > To: line and replacing it with ${local_part}@???, not
> > > exactly standard but it would correct my problem and save me a ton of
> > > phone calls.
> > > To that end I made the following changes:
> >
> > > # This director handles a systemwide filter
> > > system_filter:
> > > no_verify,
> > > driver=forwardfile;
> > > no_check_local_user,
> > > filter,
> > > file = /etc/system-mail-filter,
> > > user = nobody
> >
> > That will obey the filter file for *every* message; I take it that is
> > what you want.
>
> Actually, I just want to filter messages for local delivery, can I set
> this up in my config file for exim?

I wish I could claim English (or the American dialect anyway) was not
my first language, however, it is. Let my redo the following attempting
to increase the clarity of the paragraph.

> The script writes back to standard out. I had assumed (probably
> erroneously) that when exim executed a filter it wrote the filter recieved

                                                ^^^^^^^^^
remove the marked portion.


> the message on stdin and gave the message back to exim on stdout. Is this
> not the case? I didn't want to invoke exim again as I was a bit afraid
> of an endless loop. I also didn't want to invoke the local delivery agent
> directly as I have exim looking for an overquota error to bounce the
> mail message.


Roger