Re: [Exim] System actions not allowed in filter

Pàgina inicial
Delete this message
Reply to this message
Autor: Odhiambo G. Washington
Data:  
A: Stephen Marquard
CC: Exim Users
Assumpte: Re: [Exim] System actions not allowed in filter
* Stephen Marquard <scm@???> [20020217 04:33]: wrote:
> Hi,
>
> I have a filter director (below) as the first entry in the DIRECTORS section of
> an exim 3.34 installation.
>
> However, if I try to use system filter actions such as "headers add", I got the error:
>
> defer (-11): error in filter file: filtering command "headers" is available only
> in system filters: near line 8 of filter file
>
> logged in the mainlog.
>
> This is not a user filter, so ideally one should be able to use system commands
> (the other one that doesn't work is errors_to).
>
> Is this a bug or design feature, and is it any different in Exim 4 ? Can this
> functionality be added to the wishlist (please :-)) ?
>
> Regards
> Stephen
>
> # EDN filter
> ednfilter:
>     driver = forwardfile
>     file = /usr/exim/filters/edn_filter
>     file_transport = edn_archive
>     no_check_local_user
>     no_verify
>     filter
>     allow_system_actions
>     reply_transport = address_reply
>     user = nobody
>     condition = "${if match {$local_part}{(^mentor|^group|^intro-mentor|^intro-group)[-0-9]*\\$} {1}{0} }"
>     headers_add = "X-EDN-Envelope: $local_part\@$domain"
>     headers_remove = "return-receipt-to"
>     errors_to = "edn-bounce@???"

>



I think you can only do headers_add in a transport and "headers add" inside a system
filter and not in a director, no? I don't remember if those options are available to
directors.



-Wash

S y s t e m s A d m i n.

--
Odhiambo Washington  <wash@???>    "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: 254 2 313985-9   Fax: 254 2 313922     so I installed FreeBSD."
GSM: 254 72 743 223   GSM: 254 733 744 121  This sig is McQ!  :-)


++
"They're unfriendly, which is fortunate, really.  They'd be difficult
to like."
        -- Avon