Glenn Leavell
2005-Aug-25 02:54 UTC
[Dovecot] a few questions about my experience with alpha1
Hi all, I've just switched from 0.99.10.6 to alpha1 on a Solaris 9 system, and I have a few questions: 1) I'm using "verbose_proctitle = yes" but I don't see the special username or IP address information in the output of ps. I've used: ps -fu dovecot ps -ef | grep dovecot /usr/ucb/ps aux | grep dovecot The process table simply shows the /usr/local/sbin/dovecot, dovecot-auth, and imap-login processes. Is there something else that I need to do, or is there a special way that I should use ps? 2) After sending dovecot a HUP signal, the logs will report something like: Warning: SIGHUP received - reloading configuration And everything seems to work fine. However, *sometimes* after sending a HUP signal, logging will stop indefinitely. Has anyone else noticed anything similar? 3) We use UW in production, and I'm new to any real use of namespaces. Almost all of our clients use the root "~/Mail/" to find their folders (in $HOME/Mail/) and their INBOXes are located in $HOME/.inbox. A few people actually find their folders with the direct path Mail/foldername. So, I'm trying to configure Dovecot to work with any of these roots / prefixes: ~/Mail/ Mail/ "" (empty/blank) I'm using the namespace configuration below, and it seems to work with any of the above prefixes. However, the logging that I see makes me wonder if I'm doing it the best way. Note the attached log file. All of this output was generated with this single IMAP command: A01 LOGIN bozo mypassword Here's my configuration: **************************************************************************** # Default namespace private { separator = / prefix location = mbox:%h/Mail/:INBOX=%h/.inbox:INDEX=%h/Mail/ inbox = yes hidden = no } # This is the standard ~/Mail/ namespace that our clients tend to use namespace private { separator = / prefix = ~/Mail/ location = mbox:%h/Mail/ hidden = yes } # This namespace is for a few folks who might actually try to # directly access "Mail/foldername" -- as if they were accessing a real # filesystem path. namespace private { separator = / prefix = Mail/ location = mbox:%h/Mail/ hidden = yes } **************************************************************************** So, is this the best way to configure the namespaces for what I'm trying to accomplish? And any pointers on how to interpret what Dovecot is working through with regard to the attached logs would be appreciated. Notice the "Sending log messages too fast, throttling.." message (again, generated from that single login command). What might be causing that? By the way, is there any real difference between the use of %h/Mail and the possible use of ~/Mail in the location fields above? Thanks very much! -- Glenn Leavell <glenn at usg.edu> Office of Information and Instructional Technology Board of Regents of the University System of Georgia -------------- next part -------------- Aug 24 22:15:34 Info: Dovecot v1.0.alpha1 starting up dovecot: Aug 24 22:15:52 Info: imap-login: Login: user=<bozo>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured dovecot: Aug 24 22:15:52 Info: IMAP(bozo): Effective uid=13054, gid=1 dovecot: Aug 24 22:15:52 Info: IMAP(bozo): Namespace: type=private, prefix=, sep=/, inbox=yes, hidden=no, subscriptions=no dovecot: Aug 24 22:15:52 Info: IMAP(bozo): mbox: data=/home/bozo/Mail/:INBOX=/home/bozo/.inbox:INDEX=/home/bozo/Mail/ dovecot: Aug 24 22:15:52 Info: IMAP(bozo): mbox: root=/home/bozo/Mail, index=/home/bozo/Mail/, inbox=/home/bozo/.inbox dovecot: Aug 24 22:15:52 Info: IMAP(bozo): Namespace: type=private, prefix=~/Mail/, sep=/, inbox=no, hidden=yes, subscriptions=no dovecot: Aug 24 22:15:52 Info: IMAP(bozo): mbox: data=/home/bozo/Mail/ dovecot: Aug 24 22:15:52 Info: IMAP(bozo): mbox: INBOX defaulted to /home/bozo/Mail/inbox dovecot: Aug 24 22:15:52 Info: IMAP(bozo): mbox: root=/home/bozo/Mail, index=/home/bozo/Mail, inbox=/home/bozo/Mail/inbox dovecot: Aug 24 22:15:52 Info: IMAP(bozo): Namespace: type=private, prefix=Mail/, sep=/, inbox=no, hidden=yes, subscriptions=no dovecot: Aug 24 22:15:52 Info: IMAP(bozo): mbox: data=/home/bozo/Mail/ dovecot: Aug 24 22:15:52 Info: IMAP(bozo): mbox: INBOX defaulted to /home/bozo/Mail/inbox dovecot: Aug 24 22:15:52 Error: IMAP(bozo): Sending log messages too fast, throttling.. dovecot: Aug 24 22:15:54 Info: IMAP(bozo): mbox: root=/home/bozo/Mail, index=/home/bozo/Mail, inbox=/home/bozo/Mail/inbox
Curtis Maloney
2005-Aug-25 03:00 UTC
[Dovecot] a few questions about my experience with alpha1
Glenn Leavell wrote:> Hi all, > > I've just switched from 0.99.10.6 to alpha1 on a Solaris 9 system, > and I have a few questions: > > 1) I'm using "verbose_proctitle = yes" but I don't see the special > username or IP address information in the output of ps. I've used: > > ps -fu dovecot > ps -ef | grep dovecot > /usr/ucb/ps aux | grep dovecot >In most configurations, Dovecot will run the 'imap' program as the user, so you'll likely find (as I do) that you want to use: ps -ef | grep imap -- Curtis Maloney cmaloney at cardgate.net
Timo Sirainen
2005-Aug-28 19:12 UTC
[Dovecot] a few questions about my experience with alpha1
On Wed, 2005-08-24 at 22:54 -0400, Glenn Leavell wrote:> 2) After sending dovecot a HUP signal, the logs will report something > like: > > Warning: SIGHUP received - reloading configuration > > And everything seems to work fine. However, *sometimes* after sending > a HUP signal, logging will stop indefinitely. Has anyone else noticed > anything similar?Is it only logging that stops, or does everything else stop as well? How about sending SIGHUP again, does it fix the problem? Or if not, does SIGUSR1 fix it (SIGUSR1 only reopens log files)?> 3) We use UW in production, and I'm new to any real use of namespaces. > Almost all of our clients use the root "~/Mail/" to find their folders (in > $HOME/Mail/) and their INBOXes are located in $HOME/.inbox. A few people > actually find their folders with the direct path Mail/foldername. So, I'm > trying to configure Dovecot to work with any of these roots / prefixes:...> namespace private { > separator = / > prefix > location = mbox:%h/Mail/:INBOX=%h/.inbox:INDEX=%h/Mail/ > inbox = yes > hidden = no > }The INDEX=%h/Mail/ shouldn't be needed because the default directory is the same as the directory you gave after mbox:, ie. same one.> # This is the standard ~/Mail/ namespace that our clients tend to use > namespace private { > separator = / > prefix = ~/Mail/ > location = mbox:%h/Mail/ > hidden = yes > }Shouldn't you also add :INBOX=%h/.inbox here?> namespace private { > separator = / > prefix = Mail/ > location = mbox:%h/Mail/ > hidden = yes > }And here?> So, is this the best way to configure the namespaces for what I'm trying to > accomplish? And any pointers on how to interpret what Dovecot is working > through with regard to the attached logs would be appreciated. Notice the > "Sending log messages too fast, throttling.." message (again, generated > from that single login command). What might be causing that?If it's finding everything correctly, then only problem you have is that you have set mail_debug=yes. The throttling message comes because imap process is sending log messages too quickly and Dovecot thinks it could benefit from having to be stalled for a while in case it's trying to flood your logs full.> By the way, is there any real difference between the use of %h/Mail and the > possible use of ~/Mail in the location fields above?%h works in all cases, ~/ works only after "mbox:" or "maildir:" string, so %h is preferred until the location/default_mail_env setting itself is split to multiple settings (in Dovecot 2.0). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20050828/e9cf47e6/attachment.bin>