Could I, for instance, include a domain_name field in the mysql passwd table
and set up MYSQL_SELECT_CLAUSE to be something like
select id,crypt,uid,gid,clear,home,maildir,quota,name from passwd where
id="$(local_part)" and domain_name="$(domain)"
Well I tried this, and rcpt to: for _any_ address on the server (even those
otherwise authenticated via authpam) returns "450 Service temporarily
unavailable." If I comment out MYSQL_SELECT_CLAUSE it works. From the
mysql.log it looks as if the query isn't even being run.