List Receiver wrote: > I haven't heard any help on this one, so I've tried using Postfix as well. > Both MTA's exhibit the same symptoms. Whenever I try to send to a user > configured in DBMail, the MTA accepts the message and tries to relay it > elsewhere.
This is a exim problem, not dbmail. > Surely it shouldn't be this hard??? No it shouldn't ;-) Very, very useful when you are testing are address tests: exim4 -d -bt [EMAIL PROTECTED] This shows you exactly what happens with this recipient. Basically you need two router: local_user: debug_print = "R: local_user for [EMAIL PROTECTED]" driver = accept domains = +local_domains transport = LOCAL_DELIVERY And another one for remote user, set 'domains = ! +local_domains' there. The first router that matches is used, so the order matters. The transport LOCAL_DELIVERY is the transport that passes the mail to dbmail as shown in the example you've got yet. There are several ways to get your local_domains, I get them from database: domainlist local_domains = @ : localhost : ${lookup pgsql{ \ SELECT DISTINCT name \ FROM customer_domains \ WHERE name='${quote_pgsql:$domain}'}} Thomas