Bernat Ginard wrote:
>
> Hi all,
>
> I'm trying to configure qmail to use virtual
> domain. I use file control/virtualdomains and all
> works fine.
>
> The problem is we want that qmail substitute
> a Windows NT mail server were clients access the server
> via pop3. With Windows NT the server has a IP for each
> domain and the pop3 server identifies the domain looking
> at which one of its address has connected the client and
> there isn't the need of use account names of the style
> domain-user (almost for user point of view), is this
> possible with qmail. It's becouse it would represent
> a big work to instruct the users to reconfigure their
> mail reader: most of them are unable to change it
> without on line help.
>
The new developement version of vchkpw ( 3.4.6 ) handles this.
The old way was the user would change thier authentication
pop name to be user%domain. (That still works too).
The new way follows this logic:
1. If the pop authentication name does not contain a "%domainname" then
a) An IP to domain name lookup is done on the IP address the user
connected to on the pop server.
b) A check is made to determine if the domainname is in the
~control/locals file
If it is in the locals file then
The user is authenticated against:
1) /etc/passwd if that fails then
2) the pop only users file
c) If it is not in the locals file then
A check is made to see if the virtual domain exists
If it exists the user is authenticated against the virtual
domains pop only users file.
2> If the pop authentication name contains a "%domainname" then (this is
the old way)
A check is made to see if a virtual domain with the name exists
If it exists the user is authenticated against the virtual
domains pop only users file.
We have tested it locally and will start testing it on other machines in
the next
week. So far everything works great.
Ken Jones
http://www.inter7.com/vchkpw/