Problem solved: Default domain returns namespace NIL when virtual domains enabled

Erik Norgaard norgaard at locolomo.org
Thu Aug 19 11:25:38 EDT 2004


On Thu, 19 Aug 2004, Erik Norgaard wrote:

> It turns out that imap defaultdomain works perfectly - but only on
> loopback interface (now that's really usefull :-))

Yup, and really strange! Why would it only work on the loop back
interface? I am getting increasinly embarrased because it turned
out that the problem was local.

Aparently, cyrus-imap does a reverse lookup of the ip on the inter-
face that recieves the connection. This must resolve to a host
under the defaultdomain.

So, adding the line '192.168.0.4 top.example.com' to /etc/hosts
solved the problem.

This may mean that new problems will arise if you have more do-
mains/hostnames in your hostsfile. Say eth0 belongs to example.com
while eth1 belongs to example1.com, or you specify host.example.com
and host.example1.com because boths should map to the same ip. I
do not know if you will be able to serve both domains. So, beware
what you put in your hosts file.

I have no idea why one would implement such a restriction, since
there can only be one default domain, the namespace is implicitly
given if not part of the login realm. Anyone?

Regards, Erik

GnuPG Key: http://www.locolomo.org/home/norgaard/norgaard.gpg.asc
pub  1024D/B02CC311 2004-04-05 Erik Norgaard <norgaard at locolomo.org>
     Key fingerprint = 6C11 B9B1 52BD F16D 34AD  9893 D3EC E6DB B02C C311
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list