[EXIM] Filter Trouble

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Skye Merlin Poier
Dátum:  
Címzett: exim-users
Tárgy: [EXIM] Filter Trouble
Hello,

I'm feeling a bit dense... I'm trying to figure out the Exim filter file,
and after finally noticing that I needed a filter = true in the
userforward director, I still can't save to a file.

my filter file:

# Exim filter <<== do not edit or remove this line!
if $header_Subject: contains "123"
then
save /tmp/reject
else
pipe "/usr/local/bin/procmail -f-"
endif

and the result of mailing a file with 123 in the subject:

# exim -d 2 -M 0xQifj-0005XE-00
Exim version 1.70 debug level set to 2
set_process_info: 21538 1.70 delivering specified messages
delivering message 0xQifj-0005XE-00
set_process_info: 21538 1.70 delivering 0xQifj-0005XE-00
virtual_users director called for spoier@???
generated new address: spoier@???
virtual_users director succeeded for spoier
transport: <none>
system_aliases director: file = /etc/exim/aliases.db search type = 49
system_aliases director failed for spoier:
userforward director: file = .forward
successful stat of /staff/spoier
168 bytes read from /staff/spoier/.forward
file is a filter file
userforward director generated /tmp/spoier.reject (pipe, file, or autoreply)
userforward director succeeded for spoier
transport: <none>
>>> Local deliveries >>>

LOG: 0 MAIN
== /tmp/spoier.reject <spoier@???> T=address_file defer (13): Permission denied: failed to chdir to /staff/spoier
>>> Remote deliveries >>>

set_process_info: 21538 1.70 tidying up after delivering 0xQifj-0005XE-00
Processing retry items
end of retry processing
end delivery of 0xQifj-0005XE-00

Same result if I try to save to $home/reject, failed to chdir, which is
baffling since mail gets delivered to /staff/spoier/mbox all the time...

Am I doing something dumb? I've RTFM several times.

Exim is running as root.

Thanks,
Skye

-- 
Skye Poier: Network Operations, Canada Internet Direct   -   spoier@???
1050 - 555 W Hastings St, Vancouver, B.C., V6B 4N6       -     (604) 602-1800


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