Please can someone point to what I am missing
I have an exim filter file in my home directory that worked before I
migrated to Maildir. The contents are:
# Exim filter
logfile $home/filter.log
if $message_body matches helloxander
then
save $home/Maildir/.INBOX.testme/
endif
I send an email that has helloxander in the body.
If I test the filter on the command line it says it works:
/usr/sbin/exim -f bert@??? -bf /home2/xander/.eximforward <filtertest
Return-path taken from "Return-path:" header line
Return-path = exim-users-admin@???
Sender = bert@???
Recipient = root@???
Testing Exim filter file "/home2/xander/.eximforward"
Logfile /root/filter.log
Save message to: /root/Maildir/.INBOX.testme/
Filtering set up at least one significant delivery or other action.
No other deliveries will occur.
I then send an email with helloxander in the body and while exim -bd
-d+all suggests that it would like to use
/home/xander/Maildir/INBOX.testme/ as a delivery location, it dumps
every message in my inbox.
I am using exim 4.34
Kind regards
Xander
18:43:28 30579 Match expanded arguments:
18:43:28 30579 Subject = helloxander
18:43:28 30579 Pattern = helloxander
18:43:28 30579 ---0 Get 0x800e7cc8 48 exim.c 32
18:43:28 30579 Condition is true: $message_body matches helloxander
18:43:28 30579 ---0 Get 0x800e7cf8 104 string.c 852
18:43:28 30579 ---0 Rst 0x800e7d1d ** expand.c 4273 32800
18:43:28 30579 expanding: $home/Maildir/.INBOX.testme/
18:43:28 30579 result: /home2/xander/Maildir/.INBOX.testme/
18:43:28 30579 Filter: save message to: /home2/xander/Maildir/.INBOX.testme/
18:43:28 30579 ---0 Get 0x800e7d20 200 deliver.c 100
18:43:28 30579 ---0 Get 0x800e7de8 40 string.c 345
18:43:28 30579 ---0 Get 0x800e7e10 40 string.c 345
18:43:28 30579 ---0 Get 0x800e7e38 24 string.c 345
18:43:28 30579 ---0 Get 0x800e7e50 24 string.c 345
18:43:28 30579 ---0 Get 0x800e7e68 48 string.c 345
18:43:28 30579 address match: subject=xander@???
pattern=*@*harkness.co.uk
18:43:28 30579 ---0 Get 0x800e7e98 16 string.c 345
18:43:28 30579 ---0 Get 0x800e7ea8 40 string.c 345
18:43:28 30579 painfree.org.uk in "*harkness.co.uk"? no (end of list)
18:43:28 30579 xander@??? in "*@*harkness.co.uk"? no (end of
list)
18:43:28 30579 ---0 Get 0x800e7ed0 24 string.c 345
18:43:28 30579 ---0 Get 0x800e7ee8 48 string.c 345
18:43:28 30579 address match: subject=xander@???
pattern=*@*harkness.co.uk
18:43:28 30579 ---0 Get 0x800e7f18 16 string.c 345
18:43:28 30579 ---0 Get 0x800e7f28 40 string.c 345
18:43:28 30579 painfree.org.uk in "*harkness.co.uk"? no (end of list)
18:43:28 30579 xander@??? in "*@*harkness.co.uk"? no (end of
list)
18:43:28 30579 Sub-condition is false: personal
18:43:28 30579 Condition is false: personal and $message_size not above 300k
18:43:28 30579 ---0 Get 0x800e7f50 1720 expand.c 1098
18:43:28 30579 ---0 Rst 0x800e8601 ** expand.c 4273 32800
18:43:28 30579 expanding: $message_headers
######################################
18:43:28 30578 >>>>>>>>>>>>>>>> Local deliveries >>>>>>>>>>>>>>>>
18:43:28 30578 --------> /home2/xander/Maildir/.INBOX.testme/ <--------
18:43:28 30578 locking /var/spool/exim/db/retry.lockfile
18:43:28 30578 locked /var/spool/exim/db/retry.lockfile
18:43:28 30578 opened hints database /var/spool/exim/db/retry: flags=0
18:43:28 30578 ---0 Get 0x800ddfc8 64 string.c 345
18:43:28 30578 dbfn_read:
key=T:/home2/xander/Maildir/.INBOX.testme/:xander@???
18:43:28 30578 no retry record exists
18:43:28 30578 ---0 Get 0x800de008 104 string.c 852
18:43:28 30578 ---0 Rst 0x800de016 ** expand.c 4273 16400
18:43:28 30578 expanding: \N/home2/xander\N
18:43:28 30578 result: /home2/xander
18:43:28 30578 search_tidyup called
18:43:28 30580 ---0 Get 0x800de018 120 string.c 345
18:43:28 30580 changed uid/gid: local delivery to
/home2/xander/Maildir/.INBOX.testme/
</home2/xander/Maildir/.INBOX.testme/> transport=local_delivery
18:43:28 30580 uid=500 gid=12 pid=30580
18:43:28 30580 auxiliary group list: <none>
18:43:28 30580 home=/home2/xander current=/home2/xander
18:43:28 30580 set_process_info: 30580 delivering 1BdBmS-0007xB-Jd to
/home2/xander/Maildir/.INBOX.testme/ using local_delivery
18:43:28 30580 appendfile transport entered
18:43:28 30580 ---0 Get 0x800de090 104 string.c 852
18:43:28 30580 ---0 Rst 0x800de0a6 ** expand.c 4273 16400
18:43:28 30580 expanding: /home2/${local_part}/Maildir
18:43:28 30580 result: /home2/xander/Maildir
18:43:28 30580 ---0 Get 0x800de0a8 24 string.c 345
18:43:28 30580 appendfile: mode=660 notify_comsat=0 quota=0 warning=0
18:43:28 30580 directory=/home2/xander/Maildir format=maildir
18:43:28 30580 message_prefix=null
18:43:28 30580 message_suffix=null
18:43:28 30580 maildir_use_size_file=no
18:43:28 30580 ---0 Get 0x800de0c0 32 string.c 345
18:43:28 30580 ensuring maildir directories exist in /home2/xander/Maildir
18:43:28 30580 delivering in maildir format in /home2/xander/Maildir
18:43:28 30580 ---0 Get 0x800de0e0 48 string.c 345
18:43:28 30580 ---0 Get 0x800de110 56 string.c 345
18:43:28 30580 ---0 Get 0x800de148 56 string.c 345
18:43:28 30580 writing to file
tmp/1088012608.H896516P30580.mail.harkness.co.uk
18:43:28 30580 ---0 Get 0x800de180 0 transport.c 682
18:43:28 30580 ---0 Get 0x800de180 8 transport.c 529
18:43:28 30580 ---0 Get 0x800de188 8 transport.c 555
18:43:28 30580 ---0 Rst 0x800de180 ** transport.c 698 16400
18:43:28 30580 writing data block fd=6 size=1846 timeout=0
18:43:28 30580 renaming temporary file
18:43:28 30580 renamed tmp/1088012608.H896516P30580.mail.harkness.co.uk
as new/1088012608.H896516P30580.mail.harkness.co.uk
18:43:28 30580 appendfile yields 0 with errno=0 more_errno=0
18:43:28 30580 search_tidyup called
18:43:28 30578 ---0 Get 0x800de018 24 string.c 345
18:43:28 30578 journalling
/home2/xander/Maildir/.INBOX.testme/:xander@???
18:43:28 30578 local_delivery transport returned OK for
/home2/xander/Maildir/.INBOX.testme/
18:43:28 30578 post-process /home2/xander/Maildir/.INBOX.testme/ (0)
18:43:28 30578 ---0 Get 0x800de030 64 string.c 1266
18:43:28 30578 ---0 Ext 0x800de030 164 string.c 864
18:43:28 30578 ---0 Get 0x800de0d8 80 tree.c 32
18:43:28 30578 /home2/xander/Maildir/.INBOX.testme/ delivered
18:43:28 30578 ---0 Get 0x800de128 40 tree.c 32
18:43:28 30578 ---0 Get 0x800de150 40 tree.c 32
18:43:28 30578 ---0 Rst 0x800de150 ** tree.c 35 16400
18:43:28 30578 xander@???: children all complete
18:43:28 30578 ---0 Get 0x800de150 256 deliver.c 854
18:43:28 30578 ---0 Get 0x800de250 8 string.c 345
18:43:28 30578 ---1 Get 0x800db198 24 string.c 345
18:43:28 30578 LOG: MAIN
18:43:28 30578 => /home2/xander/Maildir (xander@???)
<xander@???> R=userfilter T=local_delivery S=1846
18:43:28 30578 ---0 Rst 0x800de150 ** deliver.c 950 16400
18:43:28 30578 >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
18:43:28 30578 changed uid/gid: post-delivery tidying
18:43:28 30578 uid=93 gid=93 pid=30578
18:43:28 30578 auxiliary group list: <none>
18:43:28 30578 set_process_info: 30578 tidying up after delivering
1BdBmS-0007xB-Jd
18:43:28 30578 Processing retry items
18:43:28 30578 Succeeded addresses:
18:43:28 30578 /home2/xander/Maildir/.INBOX.testme/: no retry items
18:43:28 30578 xander@???: no retry items
18:43:28 30578 xander@???: no retry items
18:43:28 30578 xander@???: no retry items
18:43:28 30578 xander@???: no retry items
18:43:28 30578 xander@???: no retry items
18:43:28 30578 Failed addresses:
18:43:28 30578 Deferred addresses:
18:43:28 30578 end of retry processing
18:43:28 30578 LOG: MAIN
18:43:28 30578 Completed
18:43:28 30578 end delivery of 1BdBmS-0007xB-Jd
18:43:28 30578 search_tidyup called
18:43:28 30578 search_tidyup called
18:43:28 30578 >>>>>>>>>>>>>>>> Exim pid=30578 terminating with rc=0
>>>>>>>>>>>>>>>>