> On Thu, 14 Sep 2000, Michael N. Shibaev wrote:
>
> > ># Exim filter
> > >
> > >. if $header_from: contains "@spam.site"
>
> ^
> ^
> Is this really in the filter file? If so, it should cause a syntax
> error.
Thank you for answer. No, it was my spell mistake.
>
> > But filter don't work - email from spam.site comes to user.
>
> Does the From: line in the header actually contain "@spam.site"? What is
> an example of a message that gets through? Have you tried testing the
> filter (exim -bf) using a message that got through? If you turn on
> debugging (-d10) you will see what the filter does.
>
The From: line in the header actually contains "dailydirt.com".
I tryed to test filter with debugging. The results are:
./exim -d10 -bf /var/www.root/userdirs/vilch/.forward
Exim version 3.14 debug level 10 uid=0 gid=0
Berkeley DB: Sleepycat Software: DB 2.4.14: (6/2/98)
Removed setuid privilege: uid=0 gid=0 euid=0 egid=0
Caller is an admin user
Caller is a trusted user
sender address = root@???
set_process_info: 1212 3.14 accepting a local non-SMTP message from <root@???
t.ru>
Sender: root@???
search_tidyup called
from: user1@???
to: vilch@???
>>Original headers (size=57):
from: user1@???
to: vilch@???
rewrite_one_header: type=F:
from: user1@???
rewrite_one_header: type=T:
to: vilch@???
search_tidyup called
>>Final headers:
P Received: from root by iq.wbt.ru with local (Exim 3.14 #1)
id 13ZWWi-0000JY-00; Thu, 14 Sep 2000 13:47:07 +0300
F from: user1@???
T to: vilch@???
I Message-Id: <E13ZWWi-0000JY-00@???>
Date: Thu, 14 Sep 2000 13:47:07 +0300
Sender = root@???
Recipient = root@???
Testing Exim filter file /var/www.root/userdirs/vilch/.forward
test message 2
.
Filter: start of processing
Condition is true: $header_from: contains dailydirt.com
Seen finish
Filter processing ended:
Filtering set up at least one significant delivery or other action.
No other deliveries will occur.
Filter: end of processing
As i see filter works correctly in testing mode, but realy there are problems
with filtering. May be exim don't see user filter file?
Shibaev Michael