Re: [qmailtoaster] Re: One user account can't login to Squirrelmail

2014-07-28 Thread Diana Calder
Hello Eric,

Friday, July 25, 2014, 7:13:21 PM, you wrote:

 On 07/25/2014 10:45 AM, Diana Calder wrote:
 Thursday, July 24, 2014, 6:57:21 PM, Eric wrote:

 On 07/24/2014 06:39 AM, Diana Calder wrote:
 I have an odd problem with one user account. When trying to login to
 Squirrelmail, the login will hang for several seconds then result in:

 ERROR: Connection dropped by IMAP server.
 Query: LOGOUT

 This is now happening with more than one user account. The problem has
 returned on the one that I *thought* I had fixed plus it's showing up
 on multiple other accounts. Yet some still work.


snip

 Anybody have any suggestions? I'm just about ready to give in and do a
 fresh install of CentOS and Qmail, then import all of my old messages.
 Except that I'm not entirely certain that the problem won't follow the
 old messages to a new box.


 Please post result of:
 # doveconf -n

[root@qmail ~]# doveconf -n
# 2.2.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-431.20.3.el6.x86_64 x86_64 CentOS release 6.5 (Final) ext4
auth_cache_size = 32 M
auth_mechanisms = plain login digest-md5 cram-md5
debug_log_path = /var/log/dovecot-debug.log
default_client_limit = 1024
disable_plaintext_auth = no
first_valid_gid = 89
first_valid_uid = 89
log_path = /var/log/dovecot.log
login_greeting = Dovecot toaster ready.
mail_debug = yes
mail_location = maildir:/home/vpopmail/domains/essexcountylibrary.ca/%n/Maildir
mail_plugins =  quota
namespace {
  inbox = yes
  location = 
  mailbox Drafts {
auto = subscribe
special_use = \Drafts
  }
  mailbox Sent {
auto = subscribe
special_use = \Sent
  }
  mailbox Sent Messages {
auto = no
special_use = \Sent
  }
  mailbox Spam {
auto = create
special_use = \Junk
  }
  mailbox Trash {
auto = subscribe
special_use = \Trash
  }
  prefix = 
  separator = .
  type = private
}
passdb {
  args = cache_key=%u webmail=127.0.0.1
  driver = vpopmail
}
plugin {
  quota = maildir:ignore=Trash
  quota_rule = ?:storage=0
}
protocols = imap pop3
service imap-login {
  process_limit = 300
  process_min_avail = 5
  service_count = 0
}
service pop3-login {
  service_count = 0
}
ssl_cert = /var/qmail/control/servercert.pem
ssl_key = /var/qmail/control/servercert.pem
userdb {
  args = cache_key=%u quota_template=quota_rule=*:backend=%q
  driver = vpopmail
}
protocol imap {
  imap_capability = IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE 
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN 
NAMESPACE UIDP LUS LIST-EXTENDED I18NLEVEL=1 ESEARCH ESORT SEARCHRES WITHIN 
CONTEXT=SEARCH LIST-STATUS
  imap_client_workarounds = delay-newmail
  mail_max_userip_connections = 0
  mail_plugins =  quota imap_quota
}
protocol pop3 {
  pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
  pop3_fast_size_lookups = yes
  pop3_lock_session = yes
}


 Also, how many SM users are there, and how many IMAP that are not SM?

All users (about 94 total) have access to Squirrelmail. Of those 94,
most only sign in maybe once a week, if that, and 27 accounts would
only rarely sign in to Squirrelmail - usually when out of office.
Non-SM IMAP - the 27 accounts that I already mentioned - will
eventually all be on non-SM IMAP but five or six are currently still
on POP3.


-- 
Best regards,
 Diana Calder mailto:dcal...@essexcountylibrary.ca
Automation Technician(519) 776-5241 x.131
Essex County Library
Essex, ON


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: One user account can't login to Squirrelmail

2014-07-28 Thread Eric Shubert

On 07/23/2014 10:57 AM, Diana Calder wrote:

As a side note - when we moved to a CentOS6 VM with the compatible
version of Qmailtoaster, we made the switch from Courier to Dovecot at
the same time. That appears to have left a number of Courier
directories behind in each account's Maildir. Does anyone have a
cleanup script to get rid of these obsolete directories?


It should be a pretty simple matter (for some of us) to write a script 
that will remove all courier related cruft from the mail store. If 
someone would care to write this, I'd be happy to include it in the 
qmailtoaster-util package.


Thanks.

--
-Eric 'shubes'


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: One user account can't login to Squirrelmail

2014-07-28 Thread Eric Shubert

On 07/28/2014 06:45 AM, Diana Calder wrote:

Hello Eric,

Friday, July 25, 2014, 7:13:21 PM, you wrote:


On 07/25/2014 10:45 AM, Diana Calder wrote:

Thursday, July 24, 2014, 6:57:21 PM, Eric wrote:


On 07/24/2014 06:39 AM, Diana Calder wrote:

I have an odd problem with one user account. When trying to login to
Squirrelmail, the login will hang for several seconds then result in:

ERROR: Connection dropped by IMAP server.
Query: LOGOUT


This is now happening with more than one user account. The problem has
returned on the one that I *thought* I had fixed plus it's showing up
on multiple other accounts. Yet some still work.



snip


Anybody have any suggestions? I'm just about ready to give in and do a
fresh install of CentOS and Qmail, then import all of my old messages.
Except that I'm not entirely certain that the problem won't follow the
old messages to a new box.



Please post result of:
# doveconf -n


[root@qmail ~]# doveconf -n
# 2.2.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-431.20.3.el6.x86_64 x86_64 CentOS release 6.5 (Final) ext4
auth_cache_size = 32 M
auth_mechanisms = plain login digest-md5 cram-md5
debug_log_path = /var/log/dovecot-debug.log
default_client_limit = 1024
disable_plaintext_auth = no
first_valid_gid = 89
first_valid_uid = 89
log_path = /var/log/dovecot.log
login_greeting = Dovecot toaster ready.
mail_debug = yes
mail_location = maildir:/home/vpopmail/domains/essexcountylibrary.ca/%n/Maildir
mail_plugins =  quota
namespace {
   inbox = yes
   location =
   mailbox Drafts {
 auto = subscribe
 special_use = \Drafts
   }
   mailbox Sent {
 auto = subscribe
 special_use = \Sent
   }
   mailbox Sent Messages {
 auto = no
 special_use = \Sent
   }
   mailbox Spam {
 auto = create
 special_use = \Junk
   }
   mailbox Trash {
 auto = subscribe
 special_use = \Trash
   }
   prefix =
   separator = .
   type = private
}
passdb {
   args = cache_key=%u webmail=127.0.0.1
   driver = vpopmail
}
plugin {
   quota = maildir:ignore=Trash
   quota_rule = ?:storage=0
}
protocols = imap pop3
service imap-login {
   process_limit = 300
   process_min_avail = 5
   service_count = 0
}
service pop3-login {
   service_count = 0
}
ssl_cert = /var/qmail/control/servercert.pem
ssl_key = /var/qmail/control/servercert.pem
userdb {
   args = cache_key=%u quota_template=quota_rule=*:backend=%q
   driver = vpopmail
}
protocol imap {
   imap_capability = IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE 
SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN 
NAMESPACE UIDP LUS LIST-EXTENDED I18NLEVEL=1 ESEARCH ESORT SEARCHRES WITHIN 
CONTEXT=SEARCH LIST-STATUS
   imap_client_workarounds = delay-newmail
   mail_max_userip_connections = 0
   mail_plugins =  quota imap_quota
}
protocol pop3 {
   pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
   pop3_fast_size_lookups = yes
   pop3_lock_session = yes
}



Also, how many SM users are there, and how many IMAP that are not SM?


All users (about 94 total) have access to Squirrelmail. Of those 94,
most only sign in maybe once a week, if that, and 27 accounts would
only rarely sign in to Squirrelmail - usually when out of office.
Non-SM IMAP - the 27 accounts that I already mentioned - will
eventually all be on non-SM IMAP but five or six are currently still
on POP3.




I don't notice a problem here off hand. I am curious to know how you 
came up with the imap_capability parameters, given that they're not in 
the stock config. Same goes for the mailbox sections. BL, should these 
be included in the stock QMT configuration perhaps?


This problem is a bit mysterious, given that some users appear to be ok, 
yet this one user is problematic. In your original post, you mentioned 
haging for several seconds. What's several? I'm wondering if there's 
some (unexpected) data that's causing a problem, especially given the 
apparent disparity with quota that you also mentioned. I think I'd dig 
around in that area to see what turns up.


--
-Eric 'shubes'


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



Re: [qmailtoaster] Re: One user account can't login to Squirrelmail

2014-07-25 Thread Diana Calder
Thursday, July 24, 2014, 6:57:21 PM, Eric wrote:

 On 07/24/2014 06:39 AM, Diana Calder wrote:
 Hello Angus,

 Wednesday, July 23, 2014, 2:20:45 PM, you wrote:


 Diana Calder wrote:
 I have an odd problem with one user account. When trying to login to
 Squirrelmail, the login will hang for several seconds then result in:

 ERROR: Connection dropped by IMAP server.
 Query: LOGOUT

This is now happening with more than one user account. The problem has
returned on the one that I *thought* I had fixed plus it's showing up
on multiple other accounts. Yet some still work.

Here's what the Dovecot log shows:

Jul 25 13:30:08 imap-login: Info: Aborted login (auth failed, 1
attempts in 2 secs): user=pacad...@essexcountylibrary.ca,
method=CRAM-MD5, rip=::1, lip=::1, secured,
session=2x6i7Af/NwAB

All accounts still work with either POP3 or IMAP from a client (The
Bat!), they only have issues in Squirrelmail.

Having said, that, I will occasionally see an IMAP account hang in
The Bat! - it will hang up on accessing the account for hours until
the user manually tells The Bat! to abort the connection. It logs in
okay:

 25/07/2014, 13:21:02: IMAP  - Connecting to IMAP server 
in.essexcountylibrary.ca on port 143
 25/07/2014, 13:21:02: IMAP  - Connected to IMAP server 
(in.essexcountylibrary.ca)
25/07/2014, 13:21:02: IMAP  - Dovecot toaster ready.
 25/07/2014, 13:21:02: IMAP  - Authenticating (user: 
pacad...@essexcountylibrary.ca, method: LOGIN)...
 25/07/2014, 13:21:02: IMAP  - IMAP server authentication OK, server says 
Logged in

 But that's where it hangs - it simply stays connected to the server
 forever without ever updating the mailboxes OR erroring out.

 Here's what Dovecot shows in this case:

Jul 25 13:32:23 imap-login: Info: Login:
user=pacadm...@essexcountylibrary.ca, method=PLAIN,
rip=205.207.189.15, lip=205.207.189.144, mpid=3558,
session=b9TM9Af/gQDNz70P

This looks exactly like the first log entry for a fully successful
connection via The Bat!:

Jul 25 13:34:36 imap-login: Info: Login:
user=dcal...@essexcountylibrary.ca, method=PLAIN,
rip=205.207.189.15, lip=205.207.189.144, mpid=3707,
session=ccS3/Af/mwDNz70P

Jul 25 13:34:41 imap(dcal...@essexcountylibrary.ca): Info:
Disconnected: Disconnected in IDLE in=4199 out=76924


 I haven't observed any SM specific problems with large mailboxes. There
 were problems with Courier IMAP and large mailboxes, but Dovecot should
 have no problems with them. This is one of the reasons we're using 
 dovecot instead of courier now.

 I wouldn't hesitate to let users have 1G mailboxes, so long as you have
 the disk space.

Yes, we have the disk space. I already had the headache of having to
increase the partition size once, so I made sure to make it
ridiculously huge when I did that.

 Also, be sure to use the dirindex option if you use the ext3/4 
 filesystem. Not having that turned on can cause performance problems 
 with folders which have a large number of messages.

Yep, that was already on. I also went in and enabled noatime but,
considering that it didn't help with the problem, I'm debating
turning that back off.

Anybody have any suggestions? I'm just about ready to give in and do a
fresh install of CentOS and Qmail, then import all of my old messages.
Except that I'm not entirely certain that the problem won't follow the
old messages to a new box.


-- 
Best regards,
 Diana Calder mailto:dcal...@essexcountylibrary.ca
Automation Technician(519) 776-5241 x.131
Essex County Library
Essex, ON


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: One user account can't login to Squirrelmail

2014-07-25 Thread Eric Shubert

On 07/25/2014 10:45 AM, Diana Calder wrote:

Thursday, July 24, 2014, 6:57:21 PM, Eric wrote:


On 07/24/2014 06:39 AM, Diana Calder wrote:

Hello Angus,

Wednesday, July 23, 2014, 2:20:45 PM, you wrote:



Diana Calder wrote:

I have an odd problem with one user account. When trying to login to
Squirrelmail, the login will hang for several seconds then result in:

ERROR: Connection dropped by IMAP server.
Query: LOGOUT


This is now happening with more than one user account. The problem has
returned on the one that I *thought* I had fixed plus it's showing up
on multiple other accounts. Yet some still work.

Here's what the Dovecot log shows:

Jul 25 13:30:08 imap-login: Info: Aborted login (auth failed, 1
attempts in 2 secs): user=pacad...@essexcountylibrary.ca,
method=CRAM-MD5, rip=::1, lip=::1, secured,
session=2x6i7Af/NwAB

All accounts still work with either POP3 or IMAP from a client (The
Bat!), they only have issues in Squirrelmail.

Having said, that, I will occasionally see an IMAP account hang in
The Bat! - it will hang up on accessing the account for hours until
the user manually tells The Bat! to abort the connection. It logs in
okay:

  25/07/2014, 13:21:02: IMAP  - Connecting to IMAP server 
in.essexcountylibrary.ca on port 143
  25/07/2014, 13:21:02: IMAP  - Connected to IMAP server 
(in.essexcountylibrary.ca)

25/07/2014, 13:21:02: IMAP  - Dovecot toaster ready.

  25/07/2014, 13:21:02: IMAP  - Authenticating (user: pacad...@essexcountylibrary.ca, 
method: LOGIN)...
  25/07/2014, 13:21:02: IMAP  - IMAP server authentication OK, server says Logged 
in

  But that's where it hangs - it simply stays connected to the server
  forever without ever updating the mailboxes OR erroring out.

  Here's what Dovecot shows in this case:

Jul 25 13:32:23 imap-login: Info: Login:
user=pacadm...@essexcountylibrary.ca, method=PLAIN,
rip=205.207.189.15, lip=205.207.189.144, mpid=3558,
session=b9TM9Af/gQDNz70P

This looks exactly like the first log entry for a fully successful
connection via The Bat!:

Jul 25 13:34:36 imap-login: Info: Login:
user=dcal...@essexcountylibrary.ca, method=PLAIN,
rip=205.207.189.15, lip=205.207.189.144, mpid=3707,
session=ccS3/Af/mwDNz70P

Jul 25 13:34:41 imap(dcal...@essexcountylibrary.ca): Info:
Disconnected: Disconnected in IDLE in=4199 out=76924



I haven't observed any SM specific problems with large mailboxes. There
were problems with Courier IMAP and large mailboxes, but Dovecot should
have no problems with them. This is one of the reasons we're using
dovecot instead of courier now.



I wouldn't hesitate to let users have 1G mailboxes, so long as you have
the disk space.


Yes, we have the disk space. I already had the headache of having to
increase the partition size once, so I made sure to make it
ridiculously huge when I did that.


Also, be sure to use the dirindex option if you use the ext3/4
filesystem. Not having that turned on can cause performance problems
with folders which have a large number of messages.


Yep, that was already on. I also went in and enabled noatime but,
considering that it didn't help with the problem, I'm debating
turning that back off.

Anybody have any suggestions? I'm just about ready to give in and do a
fresh install of CentOS and Qmail, then import all of my old messages.
Except that I'm not entirely certain that the problem won't follow the
old messages to a new box.



Please post result of:
# doveconf -n

Also, how many SM users are there, and how many IMAP that are not SM?

--
-Eric 'shubes'


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: One user account can't login to Squirrelmail

2014-07-24 Thread Eric Shubert

On 07/24/2014 06:39 AM, Diana Calder wrote:

Hello Angus,

Wednesday, July 23, 2014, 2:20:45 PM, you wrote:



Diana Calder wrote:

I have an odd problem with one user account. When trying to login to
Squirrelmail, the login will hang for several seconds then result in:

ERROR: Connection dropped by IMAP server.

   [ ... snip ... ]

A possible symptom or secondary issue is that the problem account is
using 78% of its 1Gb quota ... He has about 700
messages in his Inbox ...



That might be the issue.



I've seen SquirrelMail serve up blank pages, apparently due to timeout
issues, when trying to open mail folders that contained very large numbers
of messages. I'd give serious consideration to the possibility that
something like that is happening here.


snip

Rather than mucking about with the directories on the server as admin,
I decided to just use his The Bat! POP3 account to Dispatch Mail on
Server - All Messages. I'm not quite sure when or how but, at some
point, his POP3 settings had obviously been changed to leave
everything on the server, then changed back to delete from server when
deleted from The Bat! but NOT changed back to delete everything else
from the server after a set length of time - he had messages on there
dating back to about a year after he started working here.

Not only did he have messages going back 3 years, he also had messages
with huge attachments. I somewhat arbitrarily decided that, since he
was using POP3, anything that was previously downloaded was fair game,
and deleted everything more than 90 days old from the server. While
that took him down to only using 16% of his 1Gb quota, it did not
immediately correct the login issue.

However, when I tested again this morning, I was able to login with
his account via Squirrelmail. So, whether it was really the messages
that I cleared out or something else entirely, I don't know. We'll see
what happens over the next little while. Especially when I move his
The Bat! account over to IMAP, as we've been slowly but steadily
migrating all of our user accounts from POP3 (client)  IMAP (webmail)
to IMAP only. Considering the way that his account has been acting,
I'll probably hold off on it till the very end.

I'm also reconsidering that 1Gb quota that some staff members were
given. Realistically speaking, if large numbers of messages may cause
Squirrelmail issues, it might be best to drop that down to 500Mb.





I haven't observed any SM specific problems with large mailboxes. There 
were problems with Courier IMAP and large mailboxes, but Dovecot should 
have no problems with them. This is one of the reasons we're using 
dovecot instead of courier now.


I wouldn't hesitate to let users have 1G mailboxes, so long as you have 
the disk space.


Also, be sure to use the dirindex option if you use the ext3/4 
filesystem. Not having that turned on can cause performance problems 
with folders which have a large number of messages.


--
-Eric 'shubes'


-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com



[qmailtoaster] Re: One user account can't login to Squirrelmail

2014-07-24 Thread Eric Shubert
That would be the /var/log/dovecot.log file now. The old qmlog imap4 
file (and also pop3) are not used with dovecot. Just to be clear.


--
-Eric 'shubes'

On 07/23/2014 12:56 PM, Dan McAllister wrote:

Diana:

Have you looked into the IMAP log file? (should be accessible with a
qmlog command: *qmlog imap4* -- or if using ssl: *qmlog imap4-ssl*)

I'm guessing the IMAP server is crashing for some reason -- hoping the
log file will say what.

Dan
IT4SOHO

On 7/23/2014 3:12 PM, Diana Calder wrote:

Wednesday, July 23, 2014, 2:53:08 PM, Kelly wrote:


Is the disable web access box checked if you look at the account in
vqadmin?

No, it isn't. I tried checking it, modifying the account, then
unchecking and modifying the account again, just to make sure. No
change.


On 07/23/2014 13:57, Diana Calder wrote:

I have an odd problem with one user account. When trying to login to
Squirrelmail, the login will hang for several seconds then result in:

ERROR:
ERROR: Connection dropped by IMAP server.
Query: LOGOUT








--
IT4SOHO, LLC
33 - 4th Street N, Suite 211
St. Petersburg, FL 33701-3806

CALL TOLL FREE:
   877-IT4SOHO

877-484-7646 Phone
727-647-7646 Local
727-490-4394 Fax

We have support plans for QMail!






-
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com