[Exim] System actions not allowed in filter

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Stephen Marquard
Dátum:  
Címzett: exim-users
Tárgy: [Exim] System actions not allowed in filter
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@???"




---
Stephen Marquard

Programme Director
SchoolNet SA
http://www.school.za
PO Box 44460, Claremont 7735, Cape Town
Phone (021) 683-8719, cell 082 901 9768
Fax (021) 683-6766, Helpdesk (021) 674-9140