[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tpop3d-discuss]virtual hosting: /etc/hosts mapping or inverse name
From: |
PhilG |
Subject: |
Re: [tpop3d-discuss]virtual hosting: /etc/hosts mapping or inverse name resolution??? please help |
Date: |
Thu, 19 Aug 2004 11:29:11 +1200 |
Thanks for your response Mike..
Okay I tried setting up the /etc/host.conf with the following line:
order hosts,bind
And have setup domains in the /etc/hosts file in the following format:
127.0.0.1 localhost.localdomain localhost
XX.XX.XX.48 domain.com mail.domain.com
XX.XX.XX.48 domain1.com mail.domain1.com
XX.XX.XX.48 domain2.com mail.domain2.com
XX.XX.XX.48 domain3.com mail.domain3.com
XX.XX.XX.48 domain4.com mail.domain4.com
XX.XX.XX.48 domain5.com mail.domain5.com
The XX.XX.XX.48 is all the same IP, I have tried reversing it also so the
mail. is in front... However when I connect and watch the logs it always
defaults to the first domain on the list (eg domain.com).
If you (or anyone else) has any more suggestions about whats wrong I would
love to hear them.
Off Topic: I also had some major problems with auth-flatfile and that was
that all my loggins were failing because it wasnt actually reading the
correct file... This was because I didnt have append-domain: true... and
when i specified auth-flatfile-passwd-file:
/home/mail/domains/$(domain)/mailauth it was defaulting to the servers
hostname (similar to my current problem.)
----- Original Message -----
From: "Mike Pinkerton" <address@hidden>
To: "PhilG" <address@hidden>
Cc: <address@hidden>
Sent: Wednesday, August 18, 2004 6:33 PM
Subject: Re: [tpop3d-discuss]virtual hosting: /etc/hosts mapping or inverse
name resolution??? please help
> At 18:41 +1200 2004/08/17, PhilG wrote:
> >Hi All,
> >
> >I'm hoping someone can help me solve this problem with tpop3d 1.7.3
>
> [snip]
>
> >Note that for this to work, all interfaces on which connections
> >are to be accepted must have functioning inverse name resolution; also,
in
> >this case, tpop3d will do a name lookup for each incoming
> >connection, which may block in the event of a DNS failure. You may
wish
> >to create some other mapping -- perhaps in /etc/hosts -- to
ensure
> >that this does not occur.
> >[end quote]
> >
> >So how do I setup the /etc/hosts map? or the inverse name resolution? has
> >anyone had this problem?
>
>
> Phil:
>
> I don't know the specifics of what tpop3d is doing with name
> resolution, but generally to use your hosts file for name resolution,
> you want /etc/hosts to contain a mapping of IP addresses to host
> names and aliases in the following format:
>
> 127.0.0.1 localhost.localdomain localhost
> IP.ad.dr.ess host.domain.tld alias
>
> Alias is optional -- you don't need it if the host doesn't have any
> aliases (generally equivalent to DNS CNAME records). If you have
> multiple domains on a single IP address, you should have multiple
> lines with the same IP address followed by the multiple
> host.domain.tld names.
>
> I don't know if tpop3d's default behavior is to consult /etc/hosts
> before DNS, but in case it uses the system default, you should make
> sure that /etc/hostconf contains the following order:
>
> order hosts,bind
>
> If you are using something other than BIND for DNS, that line may
> need to be adjusted accordingly.
>
> I have had other problems with auth-flatfile, specifically with the
> hashing of passwords, that I have yet to sort out. I hope you meet
> with more success than I have done so far.
>
> --
> Mike Pinkerton
>
>