Ruleset hook: queuegroup. Cannot enter message in the expected queuegroup

I have defined the queuegroup which appears in the *.cf as:
Qunres, P=/var/spool/mqueue/mqueue-rx/unres, R=2, F=f, N=5

I have defined a ruleset (in the *.mc):
LOCAL_RULESETS
Squeuegroup
R< $+ > $1
R $+ [at] $+ $: $(resolve $2 $) $1 [at] $2
R $* <TEMP> $* $# unres
R $* < $* > $* $: $3
R $+ [at] $+ $: $>SearchList <! qgrp> $| <F:$1 [at] $2> <D:$2> <>
R<?> $ [at]
R< $+ > $# $1

While testing, switching debugging on, I get (extract here):

rewrite: ruleset queuegroup input: hugo . boss [at] medien-
fabrik . biz
medien-fabrik.biz: Name server timeout
rewritten as: medien-fabrik . biz < TEMP > hugo . boss [at] medien-
fabrik . biz
rewritten as: $# unres
rewrite: ruleset queuegroup returns: $# unres

>>>>> queueing /var/spool/mqueue/mqueue-rx/./qfl9F95cUk023313 (new id) >>>>>
e_flags=4205041<OLDSTYLE,DELETE_BCC,GLOBALERRS,METOO,HAS_DF,SPLIT>
hugo.boss [at] medien-fabrik.biz... queued
queueing 0x809639d0=hugo.boss [at] medien-fabrik.biz:
mailer 4 (esmtp), host `[127.0.0.1]'
user `hugo.boss [at] medien-fabrik.biz', ruser `<null>'
state=QUEUEUP, next=0x0, alias 0x0, uid 0, gid 0
flags=80000182<QPRIMARY,QPINGONFAILURE,QPINGONDELAY,QRCPTOK>
owner=(none), home="(none)", fullname="(none)"
orcpt="(none)", statmta=(none), status=4.4.3
finalrcpt="RFC822; hugo.boss [at] medien-fabrik.biz"
rstatus="(none)"
statdate=(none)
<<<<< done queueing l9F95cUk023313 <<<<<

But finally, the message is not in the "unres" queue, but in the
standard one.

What is wrong here ? Where is my error ?

Thanks a lot !

Claude
r31dmaeu [ Mo, 15 Oktober 2007 12:22 ] [ ID #1845752 ]

Re: Ruleset hook: queuegroup. Cannot enter message in the expected queuegroup

I have found where the problem is located: During the processing of
the "queuegroup" ruleset, a DNS resolve problem occurs. The debugging
output is:
Transient parse error -- message queued for future delivery
But the queuing occurs in the standard queue, not in the queue which
resulted form the processing of the "queuegroup" ruleset.

What can I do, so that the queuing occurs in the result from the
"queuegroup" ruleset even if a DNS resolve problem occurs ?

Or, a little bit different: How can I say "if a temporary DNS resolve
problem occurs, then use the queue XXXX" ?

Thanks a lot !

Claude
r31dmaeu [ Di, 16 Oktober 2007 10:37 ] [ ID #1846744 ]
Miscellaneous » comp.mail.sendmail » Ruleset hook: queuegroup. Cannot enter message in the expected queuegroup

Vorheriges Thema: Releasing quarantined mails
Nächstes Thema: Stats comp.mail.sendmail (last 7 days)