Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

courier imap problems

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


airton.arantes at gmail

May 23, 2010, 9:58 AM

Post #1 of 5 (2060 views)
Permalink
courier imap problems

Helguys, I'm migrating of one qmail to another qmail. All works fine, but my
courier-imap is not working, I'm using Debian Lenny here.

Follow below the courier-imap packages installed:

mail1:/home/vpopmail/bin# dpkg -l | grep courier
ii courier-authdaemon 0.61.0-1+lenny1 Courier
authentication daemon
ii courier-authlib 0.61.0-1+lenny1 Courier
authentication library
ii courier-authlib-userdb 0.61.0-1+lenny1 userdb
support for the Courier authentication library
ii courier-base 0.60.0-2 Courier mail
server - base system
ii courier-imap 4.4.0-2 Courier mail
server - IMAP server
rc courier-imap-ssl 4.4.0-2 Courier mail
server - IMAP over SSL



I'm testing courier imap thus:

mail1:/home/vpopmail/bin# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [.CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready.
Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution
information.
a login airton.arantes [at] aloo PASSWORD
* BYE [ALERT] Fatal error: Account's mailbox directory is not owned by the
correct uid or gid:
Connection closed by foreign host.
mail1:/home/vpopmail/bin#




the /var/log/mail.log show this:

May 23 12:49:22 mail1 imapd: Connection, ip=[::ffff:127.0.0.1]
May 23 12:49:41 mail1 authdaemond: received auth request, service=imap,
authtype=login
May 23 12:49:41 mail1 authdaemond: authvchkpw: trying this module
May 23 12:49:41 mail1 authdaemond: authvchkpw: sysusername=<null>,
sysuserid=1008, sysgroupid=1003, homedir=/home/vpopmail/domains/
aloo.com.br/8/airton.arantes, address=airton.arantes [at] aloo,
fullname=airton arantes coelho filho, maildir=<null>, quota=<null>,
options=disablewebmail=0,disablepop3=0,disableimap=0
May 23 12:49:41 mail1 authdaemond: password matches successfully
May 23 12:49:41 mail1 authdaemond: Authenticated: sysusername=<null>,
sysuserid=1008, sysgroupid=1003, homedir=/home/vpopmail/domains/
aloo.com.br/8/airton.arantes, address=airton.arantes [at] aloo,
fullname=airton arantes coelho filho, maildir=<null>, quota=<null>,
options=disablewebmail=0,disablepop3=0,disableimap=0


what I can conclude is that my password is ok, but the message when I'm
using telnet is not right.


Does anyone here can help me?






--
Airton Arantes Coelho Filho


christopher at ias

May 23, 2010, 8:01 PM

Post #2 of 5 (1977 views)
Permalink
Re: courier imap problems [In reply to]

> Does anyone here can help me?

Switch to dovecot. That will save you a lot of pain.


lenin at hasiru

May 23, 2010, 9:08 PM

Post #3 of 5 (1979 views)
Permalink
Re: courier imap problems [In reply to]

Hi!

Please check courier-imap config file
Default: /usr/lib/courier-imap/etc/imapd
Pelase set this option.
IMAP_MAILBOX_SANITY_CHECK=0

On Sun, 23 May 2010 13:58:52 -0300
Airton Arantes <airton.arantes [at] gmail> wrote:

> Helguys, I'm migrating of one qmail to another qmail. All works fine, but my
> courier-imap is not working, I'm using Debian Lenny here.
>
> Follow below the courier-imap packages installed:
>
> mail1:/home/vpopmail/bin# dpkg -l | grep courier
> ii courier-authdaemon 0.61.0-1+lenny1 Courier
> authentication daemon
> ii courier-authlib 0.61.0-1+lenny1 Courier
> authentication library
> ii courier-authlib-userdb 0.61.0-1+lenny1 userdb
> support for the Courier authentication library
> ii courier-base 0.60.0-2 Courier mail
> server - base system
> ii courier-imap 4.4.0-2 Courier mail
> server - IMAP server
> rc courier-imap-ssl 4.4.0-2 Courier mail
> server - IMAP over SSL
>
>
>
> I'm testing courier imap thus:
>
> mail1:/home/vpopmail/bin# telnet localhost 143
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> * OK [.CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
> THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready.
> Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution
> information.
> a login airton.arantes [at] aloo PASSWORD
> * BYE [ALERT] Fatal error: Account's mailbox directory is not owned by the
> correct uid or gid:
> Connection closed by foreign host.
> mail1:/home/vpopmail/bin#
>
>
>
>
> the /var/log/mail.log show this:
>
> May 23 12:49:22 mail1 imapd: Connection, ip=[::ffff:127.0.0.1]
> May 23 12:49:41 mail1 authdaemond: received auth request, service=imap,
> authtype=login
> May 23 12:49:41 mail1 authdaemond: authvchkpw: trying this module
> May 23 12:49:41 mail1 authdaemond: authvchkpw: sysusername=<null>,
> sysuserid=1008, sysgroupid=1003, homedir=/home/vpopmail/domains/
> aloo.com.br/8/airton.arantes, address=airton.arantes [at] aloo,
> fullname=airton arantes coelho filho, maildir=<null>, quota=<null>,
> options=disablewebmail=0,disablepop3=0,disableimap=0
> May 23 12:49:41 mail1 authdaemond: password matches successfully
> May 23 12:49:41 mail1 authdaemond: Authenticated: sysusername=<null>,
> sysuserid=1008, sysgroupid=1003, homedir=/home/vpopmail/domains/
> aloo.com.br/8/airton.arantes, address=airton.arantes [at] aloo,
> fullname=airton arantes coelho filho, maildir=<null>, quota=<null>,
> options=disablewebmail=0,disablepop3=0,disableimap=0
>
>
> what I can conclude is that my password is ok, but the message when I'm
> using telnet is not right.
>
>
> Does anyone here can help me?
>
>
>
>
>
>
> --
> Airton Arantes Coelho Filho


--
Reinin Oyama <lenin [at] hasiru>


adip at gmx

May 23, 2010, 9:12 PM

Post #4 of 5 (1974 views)
Permalink
Re: courier imap problems [In reply to]

On Sun, 23 May 2010 13:58:52 -0300 Airton Arantes wrote:

> * OK [.CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
> THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL
> ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision,
> Inc. See COPYING for distribution information.
> a login airton.arantes [at] aloo PASSWORD
> * BYE [ALERT] Fatal error: Account's mailbox directory is not owned
> by the correct uid or gid:
> Connection closed by foreign host.
> mail1:/home/vpopmail/bin#
[...]
> May 23 12:49:41 mail1 authdaemond: Authenticated: sysusername=<null>,
> sysuserid=1008, sysgroupid=1003, homedir=/home/vpopmail/domains/
> aloo.com.br/8/airton.arantes, address=airton.arantes [at] aloo,
> fullname=airton arantes coelho filho, maildir=<null>, quota=<null>,
> options=disablewebmail=0,disablepop3=0,disableimap=0

qmail is not vpopmail :) You are running a vpopmail installation. You
should direct your questions about your setup to the vpopmail mailing
lists.
However, while we're here: it appears that, during your domain
migration, you did not set up /home/vpopmail/domains/ owner and rights
correctly. If you installed vpopmail correctly and if vpopmail/vchkpw
uid/gid is 89, homedir must be owned by uid=89 and gid=89. Apart from
this, all the directories must be mode 700. Try to fix these for a test
user and then try to authenticate.
Also, bear in mind that authvchkpw is not supported anymore in
courier-authlib, so the suggestion of switching to dovecot makes sense.
I've just did it recently in production and I'm running both in
parallel, testing courier->dovecot migration and evaluating customer
impact for a couple of test domains. Once testing finished
successfully, I'll scrap courier-authlib and use dovecot exclusively.

--
Adi Pircalabu


christopher at ias

May 23, 2010, 10:59 PM

Post #5 of 5 (1984 views)
Permalink
Re: courier imap problems [In reply to]

> Also, bear in mind that authvchkpw is not supported anymore in
> courier-authlib, so the suggestion of switching to dovecot makes sense.
> I've just did it recently in production and I'm running both in
> parallel, testing courier->dovecot migration and evaluating customer
> impact for a couple of test domains. Once testing finished
> successfully, I'll scrap courier-authlib and use dovecot exclusively.
>

I torpedoed courier-imap from my boxes a long time ago. In fact, I have
completely moved off anything from Sam. No more maildrop, sqwebmail,
courier-auth. spamassassin supports vpopmail. dovecot supports vpopmail.
dovecot offers its own lda and sieve and sasl (did I mention sieve?) and
it pretty much behaves itself. Who needs any of Sam's stuff?

dovecot has pretty much allowed me to tie postfix and vpopmail together
(zarro qmail involved save for the queue installation because vpopmail
expects it and reuse of some qmail's control files for postfix) which is
in keeping with my current opinion that qmail is too much of a hassle
for use on an mx.

Ah, nice to have a fully integrated solution.

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.