Re: [Dovecot] Namespace Problems

2007-05-30 Thread Rainer Sigl

Many thanks,
its working fine with your suggestion.
But only with outlook I still have problems. Today morning I found out 
that outlook does work only I keep the separator line empty

with

namespace private {
#   separator = .
  prefix = INBOX.
  inbox = yes
  hidden = no
}

But the result isn't satisfying. Outlook means it cannont connect to 
server after connection was established, timeouts, goes in offline modus 
etc.


Rainer


Kenny Dail schrieb:


Hi all,

after an update from dovecot beta version to 1.0.0.-1 today morning I 
had different effects:
thunderbird-, kmail-, Apple-clients, pine  and squirrelmail could 
receive email correct with imaps. But not MSOutlook!!!
Varying the namespace configurations in dovecot.conf I got different 
results with MSOutlook working but with thunderbird, squirrelmail etc. 
all folders are displayed but not the root Inbox etc.

Its important to know that I migrated from courier-imap to dovecot.

My well working namespace config BEFORE upgrade to 1.0.0-1:
   



 


Here my actual namespace configs:
   




 


namespace private {
  separator =
  prefix = INBOX.
  inbox = no
  hidden = no
}
namespace private {
  separator = /
  prefix = INBOX/
  inbox = no
  hidden = yes
}
namespace private {
  separator = .
  prefix = INBOX.
  inbox = yes
  hidden = yes
}

   


Try it using only one namespace which matches what you are really doing.
With 1.0 this works for me with all clients I've tried, including Apple.

namespace private {
  separator = .
  prefix = INBOX.
  inbox = yes
  hidden = no
}


 

In varying inbox and hidden keywords I found this configuration. Most 
things are working with this but in squirrelmal I can't access inbox, 
the main folder.


How do I have to configure that everythings works satisfying??

dovecot.conf and dovecot-sql.conf I send in the attachment.
   



instead of sending dovecot.conf, next time use dovecot -n

 



--
-
Rainer Sigl,  | email: [EMAIL PROTECTED]
MPI f. extraterrestrische Physik, | phone: +49 (89) 3-3557
Postfach 1312,| fax:   +49 (89) 3-3569
D-85741 Garching, Germany | web:   http://www.mpe.mpg.de/~sigl/ 



[Dovecot] Dovecot Authentication Problem (REVISED)

2007-05-30 Thread Odhiambo WASHINGTON

Hello List,

I am back again and I think I am edging closer to getting a solution.
I have done some modifications and now dovecot gives me a different
error message than before

Here is what I have for the password_query and user_query 


password_query = SELECT popbox.cleartext AS password FROM popbox, domain \
WHERE popbox.local_part = 'eddie' AND popbox.domain_name = 'demo.wananchi.com' \
AND popbox.domain_name = domain.domain_name;
+--+
| password |
+--+
| boeing8  |
+--+

user_query = SELECT CONCAT(domain.path, '/', popbox.mbox_name) as home, \
69 as uid, 6 as gid  FROM popbox, domain WHERE popbox.local_part = 'eddie' \
AND  popbox.domain_name = 'demo.wananchi.com' AND \
popbox.domain_name = domain.domain_name;
++-+-+
| home   | uid | gid |
++-+-+
| /var/spool/virtual/demo.wananchi.com/eddie |  69 |   6 |
++-+-+

When I test to connect to the pop3 daemon, this is what happens now:

[EMAIL PROTECTED] 0 7173
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
+OK Welcome. Dovecot is Ready to serve your emails.
user [EMAIL PROTECTED]
+OK
pass boeing8
-ERR [IN-USE] Internal login failure. Refer to server log for more information.
Connection closed by foreign host.


...and this is what dovecot writes to the log:
[EMAIL PROTECTED] /var/log/dovecot.log
dovecot: May 30 12:00:04 Info: auth(default): client in: AUTH   1   PLAIN   
service=POP3secured lip=62.8.64.4   rip=62.8.64.4   
resp=AGVkZGllQGRlbW8ud2FuYW5jaGkuY29tAGJvZWluZzg=
dovecot: May 30 12:00:04 Info: auth-worker(default): mysql: Connected to 
localhost (virtualemail)
dovecot: May 30 12:00:04 Info: auth-worker(default): sql([EMAIL 
PROTECTED],62.8.64.4): query: SELECT popbox.cleartext AS password FROM popbox, 
domain WHERE popbox.local_part = 'eddie' AND popbox.domain_name = 
'demo.wananchi.com' AND popbox.domain_name = domain.domain_name
dovecot: May 30 12:00:04 Info: auth(default): client out: OK1   [EMAIL 
PROTECTED]
dovecot: May 30 12:00:04 Info: auth(default): master in: REQUEST2   
36772   1
dovecot: May 30 12:00:04 Info: auth-worker(default): sql([EMAIL 
PROTECTED],62.8.64.4): SELECT CONCAT(domain.path, '/', popbox.mbox_name) as 
home, 69 as uid, 6 as gid  FROM popbox, domain WHERE popbox.local_part = 
'eddie' AND popbox.domain_name = 'demo.wananchi.com' AND popbox.domain_name = 
domain.domain_name
dovecot: May 30 12:00:05 Error: child 39853 (auth-worker) killed with signal 11
dovecot: May 30 12:00:05 Info: auth(default): master out: FAIL  2
dovecot: May 30 12:00:05 Info: pop3-login: Internal login failure: user=<[EMAIL 
PROTECTED]>, method=PLAIN, rip=62.8.64.4, lip=62.8.64.4, secured



The output of dovecot -n:

# /usr/local/etc/dovecot.conf
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot.log
protocols: pop3
listen: *:7173
ssl_disable: yes
disable_plaintext_auth: no
shutdown_clients: no
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/pop3-login
login_greeting: Welcome. Dovecot is Ready to serve your emails.
login_process_size: 64
login_max_processes_count: 200
verbose_proctitle: yes
first_valid_uid: 69
first_valid_gid: 6
mail_extra_groups: exim
mail_location: maildir:/var/spool/virtual/%d/%n
mail_debug: yes
mail_executable: /usr/local/libexec/dovecot/pop3
mail_plugin_dir: /usr/local/lib/dovecot/pop3
pop3_uidl_format: %Mf
pop3_client_workarounds: outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login digest-md5 cram-md5
  verbose: yes
  debug: yes
  debug_passwords: yes
  passdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
  userdb:
driver: sql
args: /usr/local/etc/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/run/dovecot/auth-client
  mode: 432
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: root
  group: wheel


User's mail is stored in /var/spool/virtual/$domain/$user/{new,cur,tmp}
The path /var/spool/virtual/ is owned by uid:gid 69:6, and is writeable
by that uid.


I'd be happy to use a second brain and a third eye to help me figure out 
the problem.



-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+==+
|\  _,,,---,,_ | Odhiambo Washington<[EMAIL PROTECTED]>
Zzz /,`.-'`'-.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_) | GSM: +254 722 743223   +254 733 744121
+==+

Democracy is a device that insures we shall be governed no better than
we deserve.
-- George Bernard Shaw


Re: [Dovecot] Stop Maildir appending to path

2007-05-30 Thread Justin McAleer

Henry wrote:

dovecot -n:
# /etc/dovecot/dovecot.conf


... snip ...

  userdb:
driver: static
args: uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes


Try adding mail_location=~/ to the args above.


  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: vmail
--

dovecot version: 1.0.rc15

--

Debian Etch (Stable) on AMD64




[Dovecot] frequent index rebuilds versus disabled indexes

2007-05-30 Thread Justin McAleer
Ok, here's the short and sweet version of my dilemma. I have a group of 
servers mounting a shared NFS device to hold mail data for many 
different domains. Is it worth the load balancing management nightmare 
of setting up dedicating smtp, pop, and imap to one server (failing over 
to another in the group if the server goes down) to keep indexes on 
local disk? It's very tempting to just disable indexes and not worry 
about which server a user hits, and considering the vast majority of our 
170,000 accounts only have about a 20MB quota, I'm not sure indexes will 
help that many users. Although, I guess I would need to work out 
something for the few huge accounts we do have.


Re: [Dovecot] deliver rejection message

2007-05-30 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 24 May 2007, Antonio Casado Rodríguez wrote:


Another possibility is to give two answers: one in English and another
one in the default language of server. Example:
Cuota de espacio excedida / Quota exceeded.


It should still be automatically parsable. I really hate localized 
Exchange, it's DSNs are very unhelpful, sometimes it's even hard to tell 
which recipient failed.


Exim, for example, makes it nice:
==

This message was created automatically by mail delivery software (Exim).

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

   [EMAIL PROTECTED]
 SMTP error from remote mailer after RCPT TO:<[EMAIL PROTECTED]>:
 host ux-2s11z.inf.fh-bonn-rhein-sieg.de [10.20.1.10]:
 550 5.1.1 <[EMAIL PROTECTED]>... User unknown

===

That's the start of the DSN in text/plain.

The paragraphes are indented by recipient and broken to fit into the RFC 
72 columns.

Moreover, you have the SMTP error code and a human readable reason.

Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBRl2AAy9SORjhbDpvAQL6gAf/b2LyTZnOi69OYXDM4VBIs5ANnuoDAkt2
p5oCyS4Y7QDSiOGu9oqiWbPbdp6fGsaywliOEeH7MoH11Ye7xgImNk8Dwh8p4nMr
C0kaXmfTi1noqe50jKYt/YbWOf2u987dAdOp0OEBRg+7ypP8X24fIFzWLw40SC91
dhlK0ofJ0eBNtOpo2oZa/bM78uK3opm0Fv93ZcYBXlKnmc6sslE34VROd126mJ0b
NRhsxsyWhV9HilpgLLDBxDqmY93xTyJGY6HnwpUUUyo7XPObgEwzf/Ap3ZhnxCRL
ThiZLnwvxX7XqkbVeZKNHw56y+PxJaVJlfGkU+IYC84YWThLGYZ+vA==
=1PWN
-END PGP SIGNATURE-

[Dovecot] IMAP traffic logging

2007-05-30 Thread Chris Laif

Hi.

I wonder if it is possible to log the number of bytes send in response
to IMAP commands. Unfortunately there seems to be no config option
similar to "pop3_logout_format".

Courier writes a log file like this (header/body bytes):
imaplogin: DISCONNECTED, ip=[:::10.123.0.234], headers=0, body=0

Chris


[Dovecot] What are they trying to do here?

2007-05-30 Thread Jon Slater
Hi!

 

I’m new to the list, and I’m not really having a ‘problem’, but I’m seeing
something in my log files that I wonder if I should be concerned.

 

I’ve been using Dovecot (dovecot-0.99.14-8.fc4) on my Fedora Core 4 (kernel
2.6.17-1.2142_FC4) machine from quite some time.

 

For the last few days, I’ve been seeing this in my daily ‘Logwatch’ e-mail:

dovecot:

Authentication Failures:

rhost= : 139 Time(s)

   root: 13 Time(s)

Unknown Entries:

   check pass; user unknown: 139 Time(s)

 

So it looks pretty obvious that someone (using root and an assortment of
other login names) is trying to access by dovecot server.

 

My first ‘issue’ is I can’t find a log file anywhere that tells me the IP
address of the attacker.  I see a series of ‘authentication failure’
messages in my /log/messages file:

 

May 29 21:23:35 mydomainname dovecot(pam_unix)[15317]: authentication
failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=root

May 29 21:23:35 mydomainname dovecot(pam_unix)[15318]: check pass; user
unknown

May 29 21:23:35 mydomainname dovecot(pam_unix)[15318]: authentication
failure; logname= uid=0 euid=0 tty= ruser= rhost= 

May 29 21:23:36 mydomainname dovecot(pam_unix)[15320]: check pass; user
unknown

May 29 21:23:36 mydomainname dovecot(pam_unix)[15320]: authentication
failure; logname= uid=0 euid=0 tty= ruser= rhost=

 

But I don’t find anything in any other log files to indicate where this is
coming from.

 

Secondly, I’m wondering if I have anything to be concerned about.

 

Thanks in advance for you help!

 

Jon


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.472 / Virus Database: 269.8.3/824 - Release Date: 5/29/2007
1:01 PM
 


[Dovecot] dovecot scaling issue?

2007-05-30 Thread it-dovecot
Hi!

We are running dovecot-imapd on Debian sarge out of the backports.org
packages (version 1.0.rc15-1~bpo1).

We have ~ 80 clients using secure IMAP.

I understand that imap-login has to run for every SSL connection. Thus I
already increased the max value for the number of imap-login processes.

But unfortunately dovecot is unresponsive from time to time. Where can
I tune the installation? Do I need to upgrade to 1.0.0, for which no
backported packages exist for Debian sarge?

This is the output of dovecot -n:

log_timestamp: %Y-%m-%d %H:%M:%S 
listen: *:143
ssl_listen: *:993
ssl_cert_file: /etc/courier/imapd.pem
ssl_key_file: /etc/courier/imapd.pem
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
login_processes_count: 12
login_max_processes_count: 512
verbose_proctitle: yes
mail_location: 
maildir:~/.Maildir:INDEX=/var/cache/dovecot/INBOX.%u:CONTROL=/var/cache/dovecot/INBOX.%u
mail_full_filesystem_access: yes
maildir_stat_dirs: yes
maildir_copy_with_hardlinks: yes
namespace:
  type: private
  separator: .
  prefix: INBOX.
  inbox: yes
namespace:
  type: public
  separator: .
  prefix: shared.
  location: 
maildir:~/.Maildir/shared:INDEX=/var/cache/dovecot/shared.%u:CONTROL=/var/cache/dovecot/shared.%u
auth default:
  verbose: yes
  passdb:
driver: passwd
  userdb:
driver: passwd

Homedirectories are on NFS, /var/cache/dovecot is a local filesystem.
Clients are mostly Thunderbird, where max connection to IMAP server is
set to 5.

Greetings
-- 
Robert Sander Senior Manager Information Systems
Epigenomics AGKleine Praesidentenstr. 110178 Berlin, Germany
phone:+49-30-24345-0fax:+49-30-24345-555
http://www.epigenomics.com [EMAIL PROTECTED]


Re: [Dovecot] Converting mbox to Maildir, all prior read messages are downloaded as new

2007-05-30 Thread FiL @ Kpoxa

Timo Sirainen wrote:

 On Fri, 2007-05-25 at 14:36 -0400, FiL wrote:
> This is not only about POP3, as far as I can tell. If you
> converting mbox to Maildir (dovecot to dovecot) - UIDs change. And
> if you have your client set to cache all the messages and you have
> over 1Gb in your mail... well, it will be transferring all your
> mail again. Deleting the old one (as it is not on the server
> anymore) and re-downloading new ones.

 Right. But it's not as bad as with POP3 where the messages are
 downloaded as duplicates.


It's pretty bad if you trying to check your mail over the slow 
connection (and some users do that).
Also at least 1/3 of my users have 100Mb just in the inbox and much more 
in other mailboxes. And I know, that

server just wouldn't handle the load the first day after migration.


> I have all my mbox-es in /raid/mbox/%u I have set convert_mail =
> mbox:/raid/mbox/%u:INBOX=/var/mail/%u in the dovecot.conf. But for
> some reason the folder with mail doesn't get renamed after
> conversion. Is that the way it should be?

 And the destination isn't /raid/mbox/%u? It should have renamed the
 %u to %u-converted.


The destination is /raid/Maildir/%u/ but the original folder doesn't get 
renamed. I will play with it a little more and let you know

the details.

FiL






[Dovecot] AIX mail quota plugin problems

2007-05-30 Thread Stewart Dean

 From reading the wiki for a filesystem quota, I took my shot at
1) building my binaries using the mods in AIXPluginsSupport
2) changing dovecot.conf and
3) putting the plugins in the library
But I'm getting this error message when I invoke dovecot:

Plugin imap_quota not found from directory /usr/local/lib/dovecot
Error: imap dump-capability process returned 89

It would seem that
a) I have the syntax or the parameters wrong
b) I didn't get the changes to the AIX build environment right

I've attached the dovecot -n output.

Here are the details of what I did.

1) dovecot.conf

 === within the imap config section ===
  # Support for dynamically loadable plugins. mail_plugins is a space 
separated

  # list of plugins to load.
  #mail_plugins =
  #mail_plugin_dir = /usr/lib/dovecot/imap
  # SD 5/24/07 tryout FS quota plugin
  mail_plugins = quota imap_quota
  mail_plugin_dir = /usr/local/lib/dovecot/imap


plugin {
  # Here you can give some extra environment variables to mail processes.
  # This is mostly meant for passing parameters to plugins. %variable
  # expansion is done for all values.

  # Quota plugin. Multiple backends are supported:
  #   dirsize: Find and sum all the files found from mail directory.
  #Extremely SLOW with Maildir. It'll eat your CPU and disk 
I/O.

  #   dict: Keep quota stored in dictionary (eg. SQL)
  #   maildir: Maildir++ quota
  #   fs: Read-only support for filesystem quota
  #quota = maildir
  # SD 5/24/07 Try FS quota support
  quota = fs

I've tried it as both

mail_plugin_dir = /usr/local/lib/dovecot/imap

and

mail_plugin_dir = /usr/local/lib/dovecot

2) Both ways I see this error message:

4229 [EMAIL PROTECTED]:/usr/local/etc ## dovecot
ILoading modules from directory: /usr/local/lib/dovecot
IModule loaded: /usr/local/lib/dovecot/lib10_quota_plugin.so
FPlugin imap_quota not found from directory /usr/local/lib/dovecot
Error: imap dump-capability process returned 89

4272 [EMAIL PROTECTED]:/usr/local/lib/dovecot/imap ## dovecot
ILoading modules from directory: /usr/local/lib/dovecot/imap
IModule loaded: /usr/local/lib/dovecot/imap/lib10_quota_plugin.so
FPlugin imap_quota not found from directory /usr/local/lib/dovecot/imap
Error: imap dump-capability process returned 89
  

3) These directories have the following contents:

4292 [EMAIL PROTECTED]:/usr/local/lib/dovecot ## ls -al
total 1168
drwxr-xr-x   3 root system  512 May 24 12:36 ./
drwxr-xr-x   7 root system  512 May 21 14:31 ../
-rw-r--r--   1 root sys  292522 May 22 15:12 
052207-1455-64bit-ssl.lib10_quota_plugin.a
-rwxr-xr-x   1 root sys 904 May 22 15:12 
052207-1455-64bit-ssl.lib10_quota_plugin.la*
-rwxr-xr-x   1 root sys  270499 May 22 15:12 
052207-1455-64bit-ssl.lib10_quota_plugin.so*

drwxr-xr-x   2 root system  512 May 24 12:41 imap/
lrwxrwxrwx   1 root system   65 May 24 12:36 
lib10_quota_plugin.a@ -> /usr/local/lib/dovecot/052207-1

455-64bit-ssl.lib10_quota_plugin.a
lrwxrwxrwx   1 root system   66 May 24 12:36 
lib10_quota_plugin.la@ -> /usr/local/lib/dovecot/052207-

1455-64bit-ssl.lib10_quota_plugin.la*
lrwxrwxrwx   1 root system   66 May 24 12:36 
lib10_quota_plugin.so@ -> /usr/local/lib/dovecot/052207-

1455-64bit-ssl.lib10_quota_plugin.so*

[EMAIL PROTECTED]:/usr/local/lib/dovecot/imap ## ls -al
total 152
drwxr-xr-x   2 root system  512 May 24 12:41 ./
drwxr-xr-x   3 root system  512 May 24 12:36 ../
-rw-r--r--   1 root system19250 May 22 15:12 
052207-1455-64bit-ssl.lib11_imap_quota_plugin.a
-rwxr-xr-x   1 root system  944 May 22 15:12 
052207-1455-64bit-ssl.lib11_imap_quota_plugin.la*
-rwxr-xr-x   1 root system28645 May 22 15:12 
052207-1455-64bit-ssl.lib11_imap_quota_plugin.so*
lrwxrwxrwx   1 root system   66 May 24 12:36 
lib10_quota_plugin.so@ -> /usr/local/lib/dovecot/052207-

1455-64bit-ssl.lib10_quota_plugin.so*
lrwxrwxrwx   1 root system   75 May 24 12:36 
lib11_imap_quota_plugin.a@ -> /usr/local/lib/dovecot/ima

p/052207-1455-64bit-ssl.lib11_imap_quota_plugin.a
lrwxrwxrwx   1 root system   76 May 24 12:36 
lib11_imap_quota_plugin.la@ -> /usr/local/lib/dovecot/im

ap/052207-1455-64bit-ssl.lib11_imap_quota_plugin.la*
lrwxrwxrwx   1 root system   76 May 24 12:36 
lib11_imap_quota_plugins.so@ -> /usr/local/lib/dovecot/i


Any suggestions?

--

Stewart Dean, Unix System Admin, Henderson Computer Resources
Center of Bard College, Annandale-on-Hudson, New York  12504
[EMAIL PROTECTED]  voice: 845-758-7475, fax: 845-758-7035


--- Begin Message ---
# /usr/local/etc/dovecot.conf
listen: *:10143
ssl_listen: *:10943
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_processes_count: 12
login_max_processes_count: 774
verbose_proctitle: yes
first_valid_uid: 200
mail_location: m

[Dovecot] Dovecot support for smd5 and ldap-md5

2007-05-30 Thread Eric and Barbara Sammons

Working with a dovecot migration, I am curious what version (if any)
of Dovecot (dovecot-auth) supports SMD5 and ldap-MD5 when using
Dovecot -> OpenLDAP direct binding?

Thank you!
Eric


[Dovecot] Index file rewrite status

2007-05-30 Thread Timo Sirainen
The biggest problem with getting v1.0 out was getting its index file
code stable. v1.1 plans included doing large changes to the index file
code, so it's important to get the new code stable as soon as possible.
Since I've managed to stay pretty productive for the last few weeks,
I've been mostly just coding the index changes. Once I'm sure that the
code is again fully working I'll commit it to hg, relax a bit and then
I'll again start answering mails in this list.

It looks like the code is almost working, but it's still giving failures
once in a while. Below are anyway a few benchmarks for you to see how
it's progressing. I haven't yet done all the optimizations I've planned,
but looks like it already gives 25-30% better performance in cydir
tests. The cydir benchmarks are the most important ones because cydir
relies completely on index files, so the benchmarks are practically
index benchmarks. And the 25-30% is mostly about CPU usage I think,
reduced dovecot.index file rewrites will help with disk I/O as well.

The new index code should be pretty NFS friendly. I think there is going
to be only one place where I'll need to force attribute cache flush and
then probably a couple of places where data cache needs to be flushed
(I'm not exactly sure about that yet, I'll have to know more about NFS
data caching).

One other thing I'm hoping to implement is that the index functions
would almost never fail. If anything breaks, the indexes should be moved
to memory. Any corrupted data should be ignored and anything that looks
good would still be used (important with cydir/dbox).

I've even managed to remove about 500 lines of code:
 26 files changed, 3258 insertions(+), 3753 deletions(-)
(about 2000 insert+deletions are just cut&pasting code to different
files)

Append-only tests:

mmap_disable=no, fsync_disable=yes
Current hg (before index rewrite), cydir:

./imaptest - append=100,0 logout=0 select=0 clients=1 secs=5
Logi Appe 
100% 100% 
   1 2602   1/  1
   0 2671   1/  1
   0 2750   1/  1
   0 2363   1/  1
Totals:
   1 13206 

Index rewrite, cydir:

Totals:
Logi Appe 
100% 100% 
   1 4251   1/  1
   0 3914   1/  1
   0 3514   1/  1
   0 2985   1/  1
   0 2538   1/  1
Totals:
   1 17202 

Maildir (not much difference between rewrite/no rewrite):
Logi Appe 
100% 100% 
   1  917   1/  1
   0  498   1/  1
   0  284   1/  1
   0  273   1/  1
   0  296   1/  1
Totals:
   1 2268 

mbox (+300 with index rewrite):
Logi Appe 
100% 100% 
   1 1827   1/  1
   0 1688   1/  1
   0 1811   1/  1
   0 2040   1/  1
Totals:
   1 9114 

Then a bit more generic test:

Old index code, cydir:

./imaptest secs=10 clients=10
Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 
100%  50%  50% 100% 100% 100%  50% 100% 100% 100% 100% 
  30%  5%  
3417 1713 1713 3416 3403 4840 1719 1260 3403 1999 6816 

New index code, cydir:

Logi List Stat Sele Fetc Fet2 Stor Dele Expu Appe Logo 
100%  50%  50% 100% 100% 100%  50% 100% 100% 100% 100% 
  30%  5%  
4686 2349 2317 4678 4675 6636 2323 1628 4675 2585 9353 



signature.asc
Description: This is a digitally signed message part


[Dovecot] dovecot performance slow + time issue solved

2007-05-30 Thread Paul A

This is is follow up to my previous post about dovecot performance being
slow.

BTW, thanks to all that replied.

For one month we have been trying to figure why suddenly dovecot was slow.
We had two server's running dovecot with the same config and one was fine
while the other wasn't very slow. The server that was slow was on a virtual
server and we noticed some time errors in the logs and installed ntpd which
didn't help the problem.

After trying to tweak the config etc... I put dovecot on a new  server and
its running great. 

Before I was seeing 35% idle cpu with 700 + pop3 login sessions and another
400 imap. Since we moved to a new server, that has no time issues, we are
seeing 97% idle cpu with 50 - 70 pop3 logins and 40 imap while performance
is a lot faster. 

The previous system, giving us all the problems, was on a virtual server
running Virtual Iron software. The hardware was the same on both.

Here's what I was seeing, that contributed to the problems causing 7000
angry customers to call us :)

[EMAIL PROTECTED] etc]# ps aux | grep pop3 | wc -l
740
[EMAIL PROTECTED] etc]# ps aux | grep imap | wc -l
450
[EMAIL PROTECTED] etc]#


May 29 11:42:19 pop dovecot: POP3(xxx): Time just moved backwards by 1
seconds. I'll sleep now until we're back in present.
May 29 11:42:19 pop dovecot: POP3(xxx): Time just moved backwards by 1
seconds. I'll sleep now until we're back in present.
May 29 11:42:31 pop dovecot: POP3(xxx): Time just moved backwards by 1
seconds. I'll sleep now until we're back in present.
May 29 11:42:42 pop dovecot: POP3(xxx): Time just moved backwards by 1
seconds. I'll sleep now until we're back in present.

I was also getting postfix "backwards time" errors. I guess these errors
were causing login sessions to stay up longer then they should have which
backed up my server. I hope this helps someone out sooner as I had a feeling
the time was causing the problems but mgt here didn't let me try to move it
to another server until they exhausted all other options. 



Thanks,

Paul
 




[Dovecot] testink

2007-05-30 Thread Timo Sirainen
# Protocols we want to be serving:
#  imap imaps pop3 pop3s
#protocols = imap imaps

# IP or host address where to listen in for connections. It's not
currently
# possible to specify multiple addresses. "*" listens in all IPv4
interfaces.
# "[::]" listens in all IPv6 interfaces, but may also listen in all IPv4
# interfaces depending on the operating system. You can specify ports
with
# "host:port".
#imap_listen = *
#pop3_listen = *




Re: [Dovecot] testink

2007-05-30 Thread Timo Sirainen
On Thu, 2007-05-31 at 01:44 +0300, Timo Sirainen wrote:

Whops :) What happened to my filter that was supposed to prevent all
mails coming from me if they weren't properly pgp-signed..



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] testink

2007-05-30 Thread Charles Marcus

Timo Sirainen wrote:

On Thu, 2007-05-31 at 01:44 +0300, Timo Sirainen wrote:

Whops :) What happened to my filter that was supposed to prevent all
mails coming from me if they weren't properly pgp-signed..


It got the flue...

;)


Re: [Dovecot] testink

2007-05-30 Thread Timo Sirainen
On Thu, 2007-05-31 at 01:45 +0300, Timo Sirainen wrote:
> On Thu, 2007-05-31 at 01:44 +0300, Timo Sirainen wrote:
> 
> Whops :) What happened to my filter that was supposed to prevent all
> mails coming from me if they weren't properly pgp-signed..

Oh, right. Since I'm sending my own mails via dovecot.org it doesn't
check my mails at all. So I guess that pgp check is a bit pointless. But
I guess it doesn't hurt either.

Anyway, the test is complete. :)

: permission denied. Command output: Don't post
your whole
dovecot.conf. Use dovecot -n instead.

It greps for a comment inside dovecot.conf that hasn't changed since
v0.99:

"^# IP or host address where to listen in for connections."

The next thing would be to figure out a rule to stop people from posting
new messages by replying to existing messages. I suppose it should be
done only if:

 - Message contains In-Reply-To: header
 - Subject doesn't contain Re:
 - Body doesn't contain any quotes
 - User's first message to list

The last check is the difficult one. I guess I'll leave this alone for a
while.



signature.asc
Description: This is a digitally signed message part