On Fri, May 19, 2000 at 09:22:01AM +0800, Jianping Song wrote:
> How did qmail to determine whether a certain
> mail should be local or be delivered remotely?

If the domain of the addressee is in control/locals or control/virtualdomains,
then it delivers the mail locally. Otherwise, it's delivered remotely.

> As i am testing, i fake a hostname my.test.com for
> my host and set "locals" and "me" to "my.test.com".
> On the other hand, in /etc/hosts, i map my.test.com
> to the true ip my host have. Then the problem comes.
> When delivering [EMAIL PROTECTED], qmail thinks it should
> be delivered remotely, not locally, as i think.

qmail doesn't give a rat's behind what's in /etc/hosts; it uses only DNS.
And it doesn't use DNS to make the local/remote decision.

Chris

Reply via email to