I telnetted with the same result:

* BYE [ALERT] Fatal error: Maildir: No such file or directory

It authenticates against the correct domain, however it is unable to find
the Maildir/ for that user.. In the case where I have an account with the
same  username/password on the default domain and and the vipmap'd domain, I
am able to log in to the vipmap'd domain, but I get my default-domains
Maildir/ .  This indicates to me that the authentication takes place
properly, but authvchkpw tries to put me in the default domains directory
instead of the vipmap'd one.. Perhaps I'm wrong on that one, but for some
reason Courier/authvchkpw is not finding the right directory..

For the time being, I have put a note on our squirrel mail login page to use
the full email address(which works fine), but I'd like to let users on
certain vipmap'd domains log into squirrelmail without their full email
address... POP3 functionality is working fine, which is why I believe the
problem is with authvchkpw, but since it is built using libvpopmail.a, it
could also be a vpopmail issue.. Thanks again in advance for any help you
can give,


-----Original Message-----
From: Bill Shupp [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 15, 2002 11:40 AM
To: vpopmail
Subject: Re: [vchkpw] More ip alias woes

On Saturday, December 14, 2002, at 09:50  PM, Andre Fortin wrote:

> Hi,
> I'm using vpopmail with MySQL backend, and courier-imap for
> SquirrelMail
> webmail.  I am trying to use vipmap to authenticate different domains
> via
> IP, and have applied Bill's patch for getting aroun IPv6, but when I
> log in
> to a vipmap'd domain(other than the one in --enable-default-domain) it
> returns the following:
> ---------------
> Unknown error: Fatal error: Maildir: No such file or directory
> Read data:
> ---------------
> The default domain was a cdb domain before, so i made sure to move the
> vpasswd files out of the way to make sure it wasnt just grabbing the
> correct
> directory from the files rather than the MySQL database..
> If I log in with the complete email address, it works; It only causes
> this
> problem when I try to connect to the vipmap'd domain without using the
> complete email address.  I am not much of a coder, but I'm assuming the
> problem is that the authvchkpw module is looking at the
> user@default-domain
> instead of looking at user@ip-aliased-domain for the users directory..
> Not
> finding the user in the default domain, it will not have a proper
> directory
> to find its Maildir/ and exits with this error.  When logged into via
> the
> complete email address, Courier of course does not use the default
> domain
> and authenticates properly.. Am I right? Is there already a solution
> for
> this issue? Let me know if any more information is needed.. Thanks,

You mention that SquirrelMail does not work.  What if you telnet to 143
and test login that way?  My guess is that squirrelmail is not passing
the correct IP to courier-imap.  One possible workaround would be to
have squirrelmail look at the HTTP_HOST header and append the domain to
the login.  I used to do this for my customers.  I there's even a
plugin now.


Bill Shupp

Reply via email to