Re: [exim] Filter apparently being ignored in exim4.43.

Góra strony
Delete this message
Reply to this message
Autor: Bevis King
Data:  
Dla: exim-users
Temat: Re: [exim] Filter apparently being ignored in exim4.43.
Philip
On Sat, 2004-11-27 at 20:59 +0000, Philip Hazel wrote:
> exim -bf (with -d if that's not enough; with -d+expand if that's not
> enough).


The tests say it's doing exactly the right thing; it just isn't

Even in the debug log below, it seems to be getting the right idea, then
just puts the actual message in the main inbox, not the filtered one...

OK, here goes (three parts, forward test, segment showing the variables
are indeed matching, then finally a debug log of a live message coming
in):

Part 1: --------------------
gabrielle.bevteccom.co.uk 142% exim -bf ~brwk/.forward < ~brwk/testmessage1
Sender taken from "From " line
Return-path taken from "Return-path:" header line
Return-path = sentto-10105033-33822-1101546884-list-
demodellers=bevteccom.co.uk@???
Sender      = genesis@???
Recipient   = brwk@???
Testing Exim filter file "/home/gabrielle/users/brwk/.forward"


Save message
to: /home/gabrielle/users/brwk/.maildir/.Lists.Rail.DEModellers/
Filtering set up at least one significant delivery or other action.
No other deliveries will occur.
gabrielle.bevteccom.co.uk 143%
--------------

With more detail switched on (and running as root, but on my .forward
file):
Part 2 -----------
[....]
Match expanded arguments:
  Subject = <demodellers@???>
  Pattern = demodellers@???
            Condition is true: $h_to: matches
demodellers@???
Save message to: /root/.maildir/.Lists.Rail.DEModellers/
Filtering set up at least one significant delivery or other action.
No other deliveries will occur.
[....]
--------------


The destination directory for the mailing list appears to be there and
in maildir format and yet the default case of ~brwk/.maildir is where
all the messages end up:

xena.bevteccom.co.uk 1272% ls -l ~brwk/.maildir/.Lists.Rail.DEModellers/
total 1396
-rw-r--r--  1 brwk susers 658119 Nov 26 19:49 courierimapuiddb
drwx------  2 brwk susers 753664 Nov 27 12:15 cur
-rwx------  1 brwk susers      0 Nov  7  2003 maildirfolder
drwx------  2 brwk susers   4096 Nov 26 19:49 new
drwx------  2 brwk susers   4096 Nov 26 19:49 tmp
xena.bevteccom.co.uk 1273% 


(note new directory not touched since I switched over to exim 4
yesterday).

What else:
- .maildir used to be a symlink to Maildir; now .maildir is real and
Maildir is the symlink. Exim.conf points to .maildir.
- .forward is mode 600 to me.
- .maildir is mode 700 to me.
- mail is coming into .maildir tree so driver is there
- I've checked the Fedora Core 3 SRPM and the patches to the config do
not switch off the ability to do filtering; the shipped exim.conf does
but the line can easily be uncommented.

OK, here's the log of a live message coming in:
Part 3 ----------------
16386 changed uid/gid: local delivery
to /home/gabrielle/users/brwk/.maildir/.Lists.Rail.DEModellers/
</home/gabrielle/users/brwk/.maildir/.Lists.Rail.DEModellers/>
transport=local_delivery
16386 uid=13002 gid=13010 pid=16386
16386 auxiliary group list: <none>
16386 home=/home/gabrielle/users/brwk
current=/home/gabrielle/users/brwk
16386 set_process_info: 16386 delivering 1CYAkD-0004GF-Bv
to /home/gabrielle/users/brwk/.maildir/.Lists.Rail.DEModellers/ using
local_delivery
16386 appendfile transport entered
16386 appendfile: mode=600 notify_comsat=0 quota=0 warning=0
16386 directory=/home/gabrielle/users/brwk/.maildir format=maildir
16386 message_prefix=null
16386 message_suffix=null
16386 maildir_use_size_file=no
16386 ensuring maildir directories exist
in /home/gabrielle/users/brwk/.maildir
16386 delivering in maildir format
in /home/gabrielle/users/brwk/.maildir
16386 writing to file
tmp/1101593321.H810102P16386.gabrielle.bevteccom.co.uk
16386 writing data block fd=6 size=2910 timeout=0
16386 renaming temporary file
16386 renamed tmp/1101593321.H810102P16386.gabrielle.bevteccom.co.uk as
new/1101593321.H810102P16386.gabrielle.bevteccom.co.uk
16386 appendfile yields 0 with errno=0 more_errno=0
16384
journalling /home/gabrielle/users/brwk/.maildir/.Lists.Rail.DEModellers/:brwk@???
16386 search_tidyup called
16384 local_delivery transport returned OK
for /home/gabrielle/users/brwk/.maildir/.Lists.Rail.DEModellers/
16384 post-
process /home/gabrielle/users/brwk/.maildir/.Lists.Rail.DEModellers/ (0)
16384 /home/gabrielle/users/brwk/.maildir/.Lists.Rail.DEModellers/
delivered
16384 brwk@???: children all complete
16384 list-demodellers@???: children all complete
16384 LOG: MAIN
16384 => /home/gabrielle/users/brwk/.maildir (brwk@???)
<list-demodellers@???> R=userforward T=local_delivery
16384 >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
16384 changed uid/gid: post-delivery tidying
16384 uid=93 gid=93 pid=16384
16384 auxiliary group list: <none>
16384 set_process_info: 16384 tidying up after delivering 1CYAkD-0004GF-
Bv
16384 Processing retry items
16384 Succeeded addresses:
16384 /home/gabrielle/users/brwk/.maildir/.Lists.Rail.DEModellers/: no
retry items
16384 brwk@???: no retry items
16384 list-demodellers@???: no retry items
16384 brwk@???: no retry items
16384 list-demodellers@???: no retry items
16384 list-demodellers@???: no retry items
16384 Failed addresses:
16384 Deferred addresses:
16384 end of retry processing
16384 LOG: MAIN
16384 Completed
16384 end delivery of 1CYAkD-0004GF-Bv
16384 search_tidyup called
16384 search_tidyup called
16384 >>>>>>>>>>>>>>>> Exim pid=16384 terminating with rc=0
>>>>>>>>>>>>>>>>

-----------------

Any more ideas? I'm definitely puzzled, and I'm not a newcomer to
writing exim.conf files.

Regards, Bevis.
--
Bevis King <brwk@???>