Re: [Exim] Is "pipe" equivalent to "|" in exim .forward file…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Geraint A Edwards
Datum:  
To: exim-users
Betreff: Re: [Exim] Is "pipe" equivalent to "|" in exim .forward files?
Steinar Bang <sb@???> said
        (on Sun, Jan 12, 2003 at 09:21:28AM +0100):

> gives a command example as
>     "| /path/to/tmda/bin/tmda-filter"

>
> The TMDA filter docs doesn't mention "|" as a command that I can see,
> but it mentions a command called "pipe".
>
> Would the command
>     pipe "/usr/bin/tmda-filter"
> in a ~/.forward, be a correct command?  Ie. will it have the effect
> the TMDA documentation above, expects it to have?


An Exim forward file has - in a sense - two modes:

1. compatability mode
    where it is essentially one line - as in sendmail:
    a comma-separated list of items, the items are made up from:
        "|/path/to/program"
        /path/to/appended/file
        another@???


or

2. Exim filter mode
    The forward file must begin with the words "# Exim filter"
    after which can follow lines with filter commands like:
        pipe /path/to/program
        save /path/to/appended/file
        deliver another@???


Using "|" or "pipe" depends, therefore, on whether you're using
compatability mode or Exim filter mode.

If using exim filter mode, then you probably have to enable filtering
using the right directive in the appropriate place:
    exim3:    forwardfile director    "filter"
    exim4:    redirect router        "allow_filter"


Read up on "forwardfile" (or "redirect").

--
Geraint A. Edwards  "Gedge"       Caerdydd(Cardiff), Cymru(Wales)
gedge@???      IRCNet:Gedge  http://serf.org/gedge/
E-mail is easily faked.  This may not be from me.  Use GPG/PGP if in doubt.