Re: [exim] Problem with Maildir delivery

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Peter Whysall
Data:  
Para: exim-users
Asunto: Re: [exim] Problem with Maildir delivery
Stephen Gran wrote:
> On Thu, Dec 30, 2004 at 12:10:15AM +0000, Peter Whysall said:


> It appears that you use maildrop, so it is unclear to me why you don't
> just use the maildrop router, but to each their own. Leaving the
> procmail router does no harm if procmail is not installed, but if you
> want the shortest possible configuration that gets the job done, you can
> of course remove it.


I have removed the procmail and userforward routers, to adopt your
cogent suggestion of using the maildrop router. The maildrop router is
after the spamcheck router, but before the local_user router.

> The local_user router would only deliver to maildir_home transport if it
> was ever reached - since routing stops at forward_file, it never makes
> it that far. Investigate maildrop.


What seems to be happening is that the spamcheck router is grabbing the
message and handing it off to the spamcheck transport; in my mental
model, once the spam thingy has done its thing, the message is then
passed back for processing via the instructions in .mailfilter, courtesy
of the maildrop router; this consists of a number of "if this regex,
then move the message to this folder" statements.

I think that I need some way of skipping the spamcheck router if a
message has already passed through it. Is this right?


19931 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
19931 routing peter@???
19931 --------> hubbed_hosts router <--------
19931 local_part=peter domain=guildenstern.dyndns.org
[snip]
19931 hubbed_hosts router skipped: domains mismatch
19931 --------> dnslookup_relay_to_domains router <--------
19931 local_part=peter domain=guildenstern.dyndns.org
[snip]
19931 dnslookup_relay_to_domains router skipped: domains mismatch
19931 --------> send_to_gateway router <--------
19931 local_part=peter domain=guildenstern.dyndns.org
[snip]
19931 send_to_gateway router skipped: domains mismatch
19931 --------> real_local router <--------
19931 local_part=peter domain=guildenstern.dyndns.org
19931 real_local router skipped: prefix mismatch
19931 --------> spamcheck_router router <--------
19931 local_part=peter domain=guildenstern.dyndns.org
19931 checking for local user
19931 checking "condition"
19931 calling spamcheck_router router
19931 spamcheck_router router called for peter@???
19931   domain = guildenstern.dyndns.org
19931 set transport spamcheck
19931 queued for spamcheck transport: local_part = peter
19931 domain = guildenstern.dyndns.org
19931   errors_to=NULL
19931   domain_data=NULL localpart_data=NULL
19931 routed by spamcheck_router router
19931   envelope to: peter@???
19931   transport: spamcheck
19931 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
19931 After routing:
19931   Local deliveries:
19929 forked delivery process 19931
19929 Process 19929 is ready for new message
19929 smtp_setup_msg entered
19931     peter@???
19931   Remote deliveries:
19931   Failed addresses:
19931   Deferred addresses:
19931 search_tidyup called
19931 >>>>>>>>>>>>>>>> Local deliveries >>>>>>>>>>>>>>>>
19931 --------> peter@??? <--------
19931 locking /var/spool/exim4/db/retry.lockfile
19931 locked /var/spool/exim4/db/retry.lockfile
19931 opened hints database /var/spool/exim4/db/retry: flags=0
19931 dbfn_read: key=T:peter@???
19931 no retry record exists
19931 search_tidyup called
19932 changed uid/gid: local delivery to peter 
<peter@???> transport=spamcheck
19932   uid=112 gid=112 pid=19932
19932   auxiliary group list: <none>
19932   home=/tmp current=/tmp
19932 set_process_info: 19932 delivering 1CjobD-0005BR-7L to peter using 
spamcheck
19932 direct command:
19932   argv[0] = /usr/bin/spamc
19932 direct command after expansion:
19932   argv[0] = /usr/bin/spamc
19932 spamcheck transport entered
19932 direct command:
19932   argv[0] = /usr/sbin/exim4
19932   argv[1] = -oMr
19932   argv[2] = spam-scanned
19932   argv[3] = -bS
19932 direct command after expansion:
19932   argv[0] = /usr/sbin/exim4
19932   argv[1] = -oMr
19932   argv[2] = spam-scanned
19932   argv[3] = -bS
19934 set_process_info: 19934 reading output from |/usr/sbin/exim4 -oMr 
spam-scanned -bS
19932 Writing message to pipe
19932 writing data block fd=9 size=0 timeout=3600
19932 writing data block fd=9 size=36 timeout=3600
19932 writing data block fd=9 size=40 timeout=3600
19932 writing data block fd=9 size=5 timeout=3600
19932 process 19935 running as transport filter: write=10 read=11
19932 process 19936 writing to transport filter
19932 copying from the filter
19936 writing data block fd=10 size=1364 timeout=3600
19929 SMTP<< QUIT
19929 SMTP>> 221 ariel.tranquillity.lan closing connection
19929 LOG: smtp_connection MAIN
19929   SMTP connection from (rproxy.gmail.com) [64.233.170.202] closed 
by QUIT
19929 search_tidyup called
19927 child 19929 ended: status=0x0
19927 0 SMTP accept processes now running
19927 Listening...
19932 waiting for filter process
19932 waiting for writing process
19932 writing data block fd=9 size=1364 timeout=3600
19932 end of filtering transport writing: yield=1
19932 writing data block fd=9 size=0 timeout=3600
19932 writing data block fd=9 size=2 timeout=3600
19932 spamcheck transport yielded 0
19932 search_tidyup called
19931 journalling peter@???
19931 spamcheck transport returned OK for peter@???
19931 post-process peter@??? (0)
19931 peter@??? delivered
19931 LOG: MAIN
19931   => peter <peter@???> R=spamcheck_router 
T=spamcheck
19931 >>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
19931 changed uid/gid: post-delivery tidying
19931   uid=112 gid=112 pid=19931
19931   auxiliary group list: <none>
19931 set_process_info: 19931 tidying up after delivering 1CjobD-0005BR-7L
19931 Processing retry items
19931 Succeeded addresses:
19931 peter@???: no retry items
19931 Failed addresses:
19931 Deferred addresses:
19931 end of retry processing
19931 LOG: MAIN
19931   Completed
19931 end delivery of 1CjobD-0005BR-7L
19931 search_tidyup called
19931 search_tidyup called
19931 >>>>>>>>>>>>>>>> Exim pid=19931 terminating with rc=0 >>>>>>>>>>>>>>>>