Re: [Exim] router help needed

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Philip Hazel
Ημερομηνία:  
Προς: Jeffrey Wheat
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] router help needed
On Mon, 21 Oct 2002, Jeffrey Wheat wrote:

>    I am trying to add a router to run right after dnslookup for checking
> if an account is active or not. What I have below while it works, it only
> freezes the mail, not bouncing it as I would have liked. Pointers or hints
> are welcomed. This is exim 4.10.

>
> # suspended account router
> suspend_director:
> driver = redirect
> condition = ${lookup mysql{select username from accounts where username='${local_part}' and domain='${domain}' and active = 'n'}{$value}fail}
> allow_fail
> data = :fail: Account temporarily suspended.


That looks OK to me. What do you see when you run a test with debugging?
Alternatively, what is the reason given for freezing?

Hmm. Your "condition" isn't returning yes/no. That's probably it.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.