[tpop3d-discuss]virtual hosting: /etc/hosts mapping or inverse name resolution??? please help

Chris Lightfoot chris at ex-parrot.com
Thu, 19 Aug 2004 01:44:54 +0100


On Thu, Aug 19, 2004 at 12:49:23PM +1200, PhilG wrote:
> Yeah, without a problem I can get it to work with a different IP address for
> each host name but I have a many domains on the server which are on the same
> IP... This must be common for virtual hosters.
> 
> Is there no way to do this?

No.

How is tpop3d supposed to know which domain the user
wants? Remember that the only information it has about the
connection are the source and destination IP addresses and
ports. This isn't enough to obtain the domain name from.

POP-3 isn't like HTTP/1.1: the client doesn't (by default)
send the hostname it thinks it's connecting to to the
server. The closest you can get is to ask your users to
append @domain to their usernames.

-- 
``A computer lets you make more mistakes faster than any invention in
  human history -- with the possible exceptions of handguns and tequila.''
  (Mitch Ratcliffe, in `Technology Review', 1992)