Scott Schwartz <[EMAIL PROTECTED]> wrote: -- [Let's try a simple test] So, the idea is that we'll run a program that connects from localhost (127.0.0.1, which I assume you have in your smtp.cdb file) and uses the same rules as your qmail-smtpd invocation, but that just prints the environment. When it does, check to see that RELAYCLIENT is there. [script snipped] -- The output is identical to yours, except for the port numbers. At first, tcpcat returned a 'cannot connect to 127.0.0.1 port xxx] error though, but that was quickly solved by changing '127.' in /etc/tcp.smtp to '127.0.0.1' and rebuilding /etc/tcp.smtp.cdb using tcprules. I still get the 'sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)' error message though. Some people wanted to see my tcpserver invocations. Here is the qmail startup script I wrote: -- [beginning snipped] tcpserver -u 1009 -g 1008 0 smtp /var/qmail/bin/qmail-smtpd -x /etc/tcp.smtp.cdb & [end snipped] -- Oh no. :-) Of course, '-x /etc/tcp.smtp.cdb' should be given as an argument to tcpserver and not to qmail-smtpd. I corrected it and qmail now works as expected. I won't make *that* mistake ever again. :-) Thanks for your support, people. You were all very helpful in retrieving this unforgivably stupid mistake. :-) -- Johan Van Gompel -- Sent through Global Message Exchange - http://www.gmx.net