${lookup sqlite,file=DIR/aux-fixed/sqlitedb{select * from them where name='${quote_sqlite:it's}';}}
****
exim -d -DOPT=y -bh 10.0.0.0
+helo test
mail from:<a@b>
rcpt to:<c@d>
rcpt to:<c@d>
quit
****
exim -d -bh 10.0.0.0
+helo test
mail from:<a@b>
rcpt to:<c@d>
rcpt to:<c@d>
quit
****
exim -d -bh 10.10.10.10
+helo test
mail from:<a@b>
rcpt to:<c@d>
rcpt to:<c@d>
exim -DDATA=DIR/aux-fixed/sqlitedb -d-all+lookup -be
${lookup sqlite{select name from them where id='userx';}}
****
+exim -DDATA=nonabsolute_filename -d-all+lookup -be
+${lookup sqlite{select name from them where id='userx';}}
+****
+exim -DDATA=DIR/missingfile -d-all+lookup -be
+${lookup sqlite{select name from them where id='userx';}}
+****