После долгих размышлений пришел к следующему заперту:Deny message = "Sorry, the user was not found. Try again."
Domains = +local_domains
condition = ${if and{{eq{$(lookup mysql{SELECT local_part FROM user WHERE local_part='${local_part}' AND no_local=true}}}{$local_part}{yes}{no}}{eq{$sender_address_domain}{$domain}{yes}{no}}}}
правда теперь выдает ошибку при принятии почты =(
2009-08-04 16:21:51 H=(mxb.rambler.ru) [81.19.66.30] F=<test@rambler.ru> temporarily rejected RCPT <test@pupkin.ru>: failed to expand ACL string "${if and{{eq{$(lookup mysql{SELECT local_part FROM users WHERE local_part='${local_part}' AND no_local=true}}}{$local_part}{yes}{no}}{eq{$sender_address_domain}{$domain}{yes}{no}}}}": $ not followed by letter, digit, or { inside "and{...}" condition
Что не так, синтаксис вроде правильный…