[EXIM] Problems with filters

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: hamster
Dátum:  
Címzett: exim-users
Tárgy: [EXIM] Problems with filters
I'm trying to play with user and system wide filters and I've stumbled
across a problem.

In test mode (exim -bf) everything seems fine but as soon as I move
the file to be the .forward things break.

--[ log ]--
library# exim -qf 0zQrJb-0008Bm-00 -d2
Exim version 2.02 debug level 2 uid=0 gid=0
[...]
successful stat of /home/hamster
432 bytes read from /home/hamster/.forward
file is not a filter file
userforward director restored euid=1 egid=1
userforward director deferred hamster
message: <hamster@???> - error in forward file
(filtering not enabled): missing or malformed local part (expected
word or "<") in "if error_message then finish endif"
LOG: 0 MAIN
== hamster@??? <hamster@???> D=userforward
defer (-11): <hamster@???> - error in forward file
(filtering not enabled): missing or malformed local part (expected
word or "<") in "if error_message then finish endif"
>>>>>> Local deliveries >>>>>>

[...]
set_process_info: 31490 2.02 running queue
LOG: 0 MAIN
End queue run: pid=31490
--[ log ]--

--[ filter file ]--
# Exim filter
if error_message then finish endif

logfile $home/Exim.filter.log

if $message_headers contains "squid-users"
then
    save $home/EXIM/squid/
    logwrite "$tod_log $message_id stored in home/EXIM/squid"
    finish
endif


if $message_headers contains "X-Flibble" 
then 
    deliver hamster@??? finish
endif


if $message_headers matches "X-Mime.*.exe.*" 
then 
    deliver spam@??? finish
endif


save $home/Mail/EximTest
--[ filter file ]--

anyone got any bright ideas?

    Mark


-- 
Mark Lowes <hamster@???>            http://hamster.wibble.org/
Wibble.org                    http://www.wibble.org/
Lspace.org                    http://www.lspace.org/


--
*** Exim information can be found at http://www.exim.org/ ***