RE: [vchkpw] More ip alias woes
Squirrelmail is on a different computer than the mail server in question. It accesses it via the IP that is in the ip_alias_map table in MySQL for that domain. Logging in manually to the Courier server brings up the same "Maildir: No such file or directory" error. The username/password authentication works; if I type the wrong password, it fails the login.. Only if I use a proper username/password pair will it give the error. Andre -Original Message- From: Jesse Guardiani [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 15, 2002 2:06 PM To: Andre Fortin; vpopmail Subject: Re: [vchkpw] More ip alias woes How is squirrelmail accessing Courier-IMAP? Does squirrelmail access Courier-IMAP on the same IP as squirrelmail is accessed? Does IP-based domain work for normal Courier-IMAP logins? Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net We are actively looking for companies that do a lot of long distance faxing and want to cut their long distance bill by up to 50%. Contact [EMAIL PROTECTED] for more info. - Original Message - From: "Andre Fortin" <[EMAIL PROTECTED]> To: "vpopmail" <[EMAIL PROTECTED]> Sent: Sunday, December 15, 2002 12:50 AM Subject: [vchkpw] More ip alias woes > 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, > > Andre > > >
RE: [vchkpw] More ip alias woes
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, Andre -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. Regards, Bill Shupp
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. Regards, Bill Shupp