[Dovecot] Active Directory 2003 user database and passwords with special characters

2012-10-29 Thread Boris PINON
Hello everybody, As explained in the topic, i have troubles with authentication of my users. First of all, sorry for my poor english... I'm running dovecot v1.2.15 on a Debian 6 64bits server up to date. My users database is an Active Directory 2003 (it's important to know that because Active

Re: [Dovecot] doveadm purge -A via doveadm-proxy director fails after some users

2012-10-29 Thread Timo Sirainen
On 17.10.2012, at 2.18, Daniel Parthey wrote: doveadm -c /etc/dovecot-director/dovecot-director.conf -D purge -A shows the following message in the log when iterating the 49th user: Oct 17 00:47:17 10.129.3.233 dovecot: doveadm: Error: purge: invalid option -- 'e' Oct 17 00:47:17

Re: [Dovecot] Problems with Virtual and mail-search.c

2012-10-29 Thread Timo Sirainen
On 18.10.2012, at 9.03, Levent Dane wrote: I can't reproduce this. What contents do you have in dovecot-virtual files? Also doveconf -n output and gdb backtrace would be helpful: http://dovecot.org/bugreport.html in Code/dovecot-virtual: Archive inthread refs keyword code not

Re: [Dovecot] mail open slowly

2012-10-29 Thread Bernics Gábor | Penta Unió Zrt .
Thanks a lot to everybody First step I will upgrade to dovecot2. I will write my experiences. Running with fsync disabled is like having sex with a Bangkok prostitute without a condom while juggling chainsaws while driving drunk at 250kph at night without headlights. :-) Gabor

Re: [Dovecot] Dovecot quota postgres dictionary problems

2012-10-29 Thread Timo Sirainen
On 19.10.2012, at 10.40, tmihalicek wrote: I have a strange errors in .err log file, but the postgres seem to be filling with quota changes, i will also put configs in Oct 19 09:23:52 mailstore-node-01 dovecot: imap(t...@example.net): Error: read(/var/run/dovecot/dict) failed: Timeout

Re: [Dovecot] LDA without lookup as non-root?

2012-10-29 Thread Timo Sirainen
On 19.10.2012, at 23.43, E.B. wrote: I'm having some problems getting LDA to work without userdb lookups and have a few related questions. This system has all users in MySQL, each user with unique UID/GID, no local users at all. Installation is from apt-get. 1) If LDA is invoked

Re: [Dovecot] Configuring Dovecot Snarf plugin for the first time

2012-10-29 Thread Timo Sirainen
On 21.10.2012, at 4.52, Jeffrey Ross wrote: However whenever I enable the snarf plugin using the example on the wiki page my email is not loaded and when I remove my configuration for snarf my email re-appears. Based upon what I can tell the snarf plugin is either not loading (but I see

Re: [Dovecot] trash plugin not doing it's job

2012-10-29 Thread Timo Sirainen
On 18.10.2012, at 11.05, Jan-Frode Myklebust wrote: I enabled the trash plugin yesterday, adding trash to mail_plugins, and configuring the plugin setting trash = /etc/dovecot/dovecot-trash.conf.ext. But I still see users with lots of files in INBOX.Trash getting bounced because of quota

Re: [Dovecot] Auth caching and password changes

2012-10-29 Thread Timo Sirainen
On 22.10.2012, at 13.58, Angel L. Mateo wrote: My question now is there any way to configure authentication so a mechanism is only use when connections coming from a set of IPs? local/remote {} blocks were supposed to provide this. They don't currently work for auth process settings

Re: [Dovecot] [dovecot} Invalid mailbox name.

2012-10-29 Thread Timo Sirainen
On 24.10.2012, at 17.46, Alexander Weber wrote: if address :is to mantis-admin@* { fileinto /home/shared/.automail.Bugtracker/; } Use mailbox name, not filesystem path: fileinto shared/automail/Bugtracker;

Re: [Dovecot] Dovecot sends BYE while fetching X-GM-MSGID

2012-10-29 Thread Timo Sirainen
On 25.10.2012, at 13.03, Loshkovskyi Andrii wrote: While using the following set of commands, I am having the error as below: FETCH 7 (X-GM-MSGID) A15 FETCH 7 (X-GM-MSGID) A15 BAD Error in IMAP command FETCH: Unknown parameter X-GM-MSGID Can I somehow disable such errors so that Dovecot

Re: [Dovecot] [dovecot} Invalid mailbox name.

2012-10-29 Thread Alexander Weber
Am 29.10.2012 16:04, schrieb Timo Sirainen: On 24.10.2012, at 17.46, Alexander Weber wrote: if address :is to mantis-admin@* { fileinto /home/shared/.automail.Bugtracker/; } Use mailbox name, not filesystem path: fileinto shared/automail/Bugtracker; error: msgid=*: failed to

Re: [Dovecot] Dovecot stops to work - anvil problem

2012-10-29 Thread Timo Sirainen
On 26.10.2012, at 13.24, FABIO FERRARI wrote: Hi all, we have a problem about anvil, it seems that when we have a high load the dovecot stops to work. Sometimes it is sufficient to make a dovecot reload, but sometimes we have to restart it. Oct 26 11:13:55 anvil: Error: net_accept()

Re: [Dovecot] Can Dovecot authenticate against an external email server?

2012-10-29 Thread Timo Sirainen
On 23.10.2012, at 23.51, Marc Perkel wrote: Just wondering if anyone has done this. I have a spam filtering service where I am now storing spam for users I filter for. It's a filter and forward service so I don't control the recipient's email server. What I would like to do somehow is

Re: [Dovecot] dovecot lda - Permission denied

2012-10-29 Thread Timo Sirainen
On 26.10.2012, at 14.44, tony.blue.mailingl...@gmx.de wrote: Oct 25 23:37:13 gustav dovecot: lda: Error: userdb lookup: connect(/var/run/dovecot/auth-userdb) failed: Permission denied (euid=501(andy) egid=100(users) missing +w perm: /var/run/dovecot/auth-userdb, dir owned by 0:0 mode=0755)

Re: [Dovecot] Overlapping userdb/passdbs

2012-10-29 Thread Timo Sirainen
On 26.10.2012, at 22.13, James Devine wrote: I have an ldap server for which each entry includes the email address and the username portion of the email address for authentication. Authentication works by username if the username is unique among all the entries. I need to now add some users

[Dovecot] Out of memory/Managesieve

2012-10-29 Thread Jim Knuth
Hello, I have here a problem with managesieve. With the login about webmail (roundcube) comes here in the log: --snip dovecot: managesieve-login: Fatal: pool_system_realloc(4294967296): Out of memory dovecot: managesieve-login: Fatal: master: service(managesieve-login): child 10157 returned

Re: [Dovecot] When are search indexes updated?

2012-10-29 Thread Timo Sirainen
On 28.10.2012, at 4.46, Stan Hoeppner wrote: * When are search indexes updated? When the index is stale. * Are they updated incrementally? * If not, why not? * If so, why would a mailbox's index drift out-of-date, as mine had? When a sufficient number of messages are added to an IMAP

Re: [Dovecot] Rebuilding indexes fails on inconsistent mdbox

2012-10-29 Thread Timo Sirainen
On 24.10.2012, at 14.28, Milan Holzäpfel wrote: Oct 24 10:43:23 two dovecot: imap-login: Login: user=..., method=PLAIN, rip=..., lip=..., mpid=4977, TLS Oct 24 10:43:23 two dovecot: imap(lis...@mjh.name): Error: mdbox map .../mdbox/storage/dovecot.map.index corrupted: Unexpectedly lost

Re: [Dovecot] [dovecot} Invalid mailbox name.

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 17.11, Alexander Weber wrote: fileinto shared/automail/Bugtracker; error: msgid=*: failed to store into mailbox 'shared/.automail.Bugtracker/': Invalid mailbox name. shared/automail/Bugtracker isn't the same as shared/.automail.Bugtracker/. Anyway that specific error

Re: [Dovecot] Out of memory/Managesieve

2012-10-29 Thread Jim Knuth
am 29.10.12 16:23 schrieb Jim Knuth j...@jkart.de: Hello, I have here a problem with managesieve. With the login about webmail (roundcube) comes here in the log: --snip dovecot: managesieve-login: Fatal: pool_system_realloc(4294967296): Out of memory dovecot: managesieve-login: Fatal: master:

Re: [Dovecot] Out of memory/Managesieve

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 17.23, Jim Knuth wrote: I have here a problem with managesieve. With the login about webmail (roundcube) comes here in the log: You can always easily reproduce this? Can you get the network traffic logs between Roundcube and Dovecot and reproduce it by sending those same

Re: [Dovecot] [dovecot} Invalid mailbox name.

2012-10-29 Thread Alexander Weber
Am 29.10.2012 16:34, schrieb Timo Sirainen: On 29.10.2012, at 17.11, Alexander Weber wrote: fileinto shared/automail/Bugtracker; error: msgid=*: failed to store into mailbox 'shared/.automail.Bugtracker/': Invalid mailbox name. shared/automail/Bugtracker isn't the same as

[Dovecot] Save/restore IMAP session state

2012-10-29 Thread Timo Sirainen
Some future Dovecot version will have imap-idle processes where IDLEing IMAP connections get moved, so the system wouldn't waste so much memory for all the IDLEing imap processes. A week ago I thought I'd see how easy it would be to implement this. I got a basic proof of concept working as a

Re: [Dovecot] Save/restore IMAP session state

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 18.53, Timo Sirainen wrote: The patch is ugly and still missing many things. Anyway I thought I'd include it here just in case someone was really eager to continue implementing it. :) I'm not sure when I'll have time for it. Oh, and of course I forgot one file out of the

[Dovecot] INBOX permissios woes

2012-10-29 Thread Josep L. Guallar-Esteve
Hello, I have a dovecot system that uses winbind authentication against Active Directory. I set it up by following the directions in the wiki. That works great. When a new user receives an email, the inbox is created with permissions 600 (rw- --- --) and ownership user:mail , even though I

Re: [Dovecot] Problems with Virtual and mail-search.c

2012-10-29 Thread Levent Dane
On 10/29, Timo Sirainen wrote: On 18.10.2012, at 9.03, Levent Dane wrote: I can't reproduce this. What contents do you have in dovecot-virtual files? Also doveconf -n output and gdb backtrace would be helpful: http://dovecot.org/bugreport.html in Code/dovecot-virtual: Archive

Re: [Dovecot] Problems with Virtual and mail-search.c

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 20.17, Levent Dane wrote: On 10/29, Timo Sirainen wrote: On 18.10.2012, at 9.03, Levent Dane wrote: I can't reproduce this. What contents do you have in dovecot-virtual files? Also doveconf -n output and gdb backtrace would be helpful: http://dovecot.org/bugreport.html

[Dovecot] does dovecot interpret any mail headers specially with maildir?

2012-10-29 Thread Christoph Anton Mitterer
Hi. For mbox, http://wiki2.dovecot.org/MailboxFormat/mbox#Dovecot.27s_Metadata lists a numer of mail headers: - X-IMAPbase - X-IMAP - X-UID - Status - X-Status - X-Keywords - Content-Length that are treated specially by dovecot. It also suggests, that these should be stripped by the LDA (I guess

[Dovecot] POLL: v2.2 to allow one mail over quota?

2012-10-29 Thread Timo Sirainen
Currently if user is 1MB under quota and someone tries to deliver mail that is over 1MB, Dovecot rejects the mail. But smaller mails aren't rejected probably for days. So user might not even realize that they didn't receive one of the mails. Also having a user almost over quota is a rather

Re: [Dovecot] does dovecot interpret any mail headers specially with maildir?

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 22.31, Christoph Anton Mitterer wrote: For mbox, http://wiki2.dovecot.org/MailboxFormat/mbox#Dovecot.27s_Metadata lists a numer of mail headers: - X-IMAPbase - X-IMAP - X-UID - Status - X-Status - X-Keywords - Content-Length that are treated specially by dovecot.

[Dovecot] mbox vs. maildir storage block waste

2012-10-29 Thread Christoph Anton Mitterer
Hi. I recently mentioned in several posts, that I'd tended to use mbox rather than maildir, because you don't loose so much space (due to always allocating full blocks per maildir file and thus per mail). I made some tests of my archive, which consists of some 3,4 million mails at a total of

[Dovecot] v2.2.alpha1 released

2012-10-29 Thread Timo Sirainen
http://dovecot.org/releases/2.2/alpha/dovecot-2.2.alpha1.tar.gz http://dovecot.org/releases/2.2/alpha/dovecot-2.2.alpha1.tar.gz.sig I wanted to start stabilizing v2.2 release some months ago already, but I somehow got stuck adding more and more features. Now it looks like all of the necessary API

Re: [Dovecot] No failover from director to backend?

2012-10-29 Thread Patrick Westenberg
Hi, no one here who is able to reply to my questions? Regards Patrick Patrick Westenberg schrieb: Hi everyone, short version: Is there no built in failover mechanism for the director service to handle a backend failure? Long version: I have a frontend server running the director service

Re: [Dovecot] mbox vs. maildir storage block waste

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 22.54, Christoph Anton Mitterer wrote: I recently mentioned in several posts, that I'd tended to use mbox rather than maildir, because you don't loose so much space (due to always allocating full blocks per maildir file and thus per mail). .. In the end I probably changed my

Re: [Dovecot] does dovecot interpret any mail headers specially with maildir?

2012-10-29 Thread Christoph Anton Mitterer
Hi Timo. On Mon, 2012-10-29 at 22:40 +0200, Timo Sirainen wrote: I wondered, when using maildir, are there any headers that dovecote would treat specially, too? And which I therefore should strip? No. Maildir metadata is stored elsewhere. Great... and I expect that this (no headers from

Re: [Dovecot] No failover from director to backend?

2012-10-29 Thread Timo Sirainen
People already replied and pointed to poolmon. There is no built-in failure handling, because it's not possible to implement it in a way that works well for everyone. Although I think poolmon could also itself use a bit of tweaking. For example if all hosts became very heavily loaded, poolmon

Re: [Dovecot] does dovecot interpret any mail headers specially with maildir?

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 23.09, Christoph Anton Mitterer wrote: On Mon, 2012-10-29 at 22:40 +0200, Timo Sirainen wrote: I wondered, when using maildir, are there any headers that dovecote would treat specially, too? And which I therefore should strip? No. Maildir metadata is stored elsewhere.

Re: [Dovecot] mbox vs. maildir storage block waste

2012-10-29 Thread Christoph Anton Mitterer
On Mon, 2012-10-29 at 23:06 +0200, Timo Sirainen wrote: There is of course mdbox also, which gives the best of both mbox and maildir (and some of its own new annoyances). Thanks, Timo,... I forgot to mention that. For me _personally_ two things speak against using it: a) To be honest, you

Re: [Dovecot] does dovecot interpret any mail headers specially with maildir?

2012-10-29 Thread Christoph Anton Mitterer
On Mon, 2012-10-29 at 23:13 +0200, Timo Sirainen wrote: Great... and I expect that this (no headers from the maildir files are interpreted) applies also, when one imports mails the first time. With import I don't mean via IMAP, but plainly moving e.g. a maildir ++ tree under dovecots

Re: [Dovecot] Problems with Virtual and mail-search.c

2012-10-29 Thread Levent Dane
On 10/29, Timo Sirainen wrote: On 29.10.2012, at 20.17, Levent Dane wrote: On 10/29, Timo Sirainen wrote: On 18.10.2012, at 9.03, Levent Dane wrote: I can't reproduce this. What contents do you have in dovecot-virtual files? Also doveconf -n output and gdb backtrace would be helpful:

Re: [Dovecot] mbox vs. maildir storage block waste

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 23.15, Christoph Anton Mitterer wrote: btw: What are the actual advantages of sdbox over maildir? * Not moving files from new/ to cur/ directory * Not renaming files when changing message flags * Not readdir()ing directories (although maildir_very_dirty_syncs=yes helps a

Re: [Dovecot] Out of memory/Managesieve

2012-10-29 Thread Jim Knuth
am 29.10.12 16:41 schrieb Timo Sirainen t...@iki.fi: On 29.10.2012, at 17.23, Jim Knuth wrote: I have here a problem with managesieve. With the login about webmail (roundcube) comes here in the log: You can always easily reproduce this? Can you get the network traffic logs between

Re: [Dovecot] Out of memory/Managesieve

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 23.43, Jim Knuth wrote: ~# gdb /usr/lib/dovecot/managesieve-login /var/run/dovecot/login/core /var/run/dovecot/login/core: Datei oder Verzeichnis nicht gefunden. You'll of course need to have the core file first. Instead of: dovecot: managesieve-login: Fatal: master:

Re: [Dovecot] does dovecot interpret any mail headers specially with maildir?

2012-10-29 Thread Christoph Anton Mitterer
On Mon, 2012-10-29 at 23:39 +0200, Timo Sirainen wrote: Right. The only special case is X-UIDL: header, which is used for POP3 UIDLs but only if pop3_reuse_xuidl=yes (which isn't really recommended nowadays as there are other ways to do it). Great... I think it would worth adding all this

Re: [Dovecot] mbox vs. maildir storage block waste

2012-10-29 Thread Christoph Anton Mitterer
On Mon, 2012-10-29 at 23:42 +0200, Timo Sirainen wrote: btw: What are the actual advantages of sdbox over maildir? * Not moving files from new/ to cur/ directory * Not renaming files when changing message flags * Not readdir()ing directories (although maildir_very_dirty_syncs=yes helps

Re: [Dovecot] Out of memory/Managesieve

2012-10-29 Thread Jim Knuth
am 29.10.12 22:46 schrieb Timo Sirainen t...@iki.fi: On 29.10.2012, at 23.43, Jim Knuth wrote: ~# gdb /usr/lib/dovecot/managesieve-login /var/run/dovecot/login/core /var/run/dovecot/login/core: Datei oder Verzeichnis nicht gefunden. You'll of course need to have the core file first.

Re: [Dovecot] mbox vs. maildir storage block waste

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 23.54, Christoph Anton Mitterer wrote: On Mon, 2012-10-29 at 23:42 +0200, Timo Sirainen wrote: btw: What are the actual advantages of sdbox over maildir? * Not moving files from new/ to cur/ directory * Not renaming files when changing message flags * Not readdir()ing

Re: [Dovecot] does dovecot interpret any mail headers specially with maildir?

2012-10-29 Thread Timo Sirainen
On 29.10.2012, at 23.52, Christoph Anton Mitterer wrote: On Mon, 2012-10-29 at 23:39 +0200, Timo Sirainen wrote: Right. The only special case is X-UIDL: header, which is used for POP3 UIDLs but only if pop3_reuse_xuidl=yes (which isn't really recommended nowadays as there are other ways to

Re: [Dovecot] does dovecot interpret any mail headers specially with maildir?

2012-10-29 Thread Christoph Anton Mitterer
On Tue, 2012-10-30 at 00:08 +0200, Timo Sirainen wrote: Great... I think it would worth adding all this to: http://wiki2.dovecot.org/MailboxFormat/Maildir Well, that isn't really maildir-specific. It's pop3 specific that is done with all mailbox formats. pop3_reuse_xuidl setting's comments

Re: [Dovecot] POLL: v2.2 to allow one mail over quota?

2012-10-29 Thread Jan-Frode Myklebust
+1 Better to be lenient, than to confuse users by accepting some but not other messages. I believe most larger mail providers has a max message size of around 64MB or less, so allowing the final message to exceed quota by about that sounds reasonable to me. -jf

Re: [Dovecot] does dovecot interpret any mail headers specially with maildir?

2012-10-29 Thread Christoph Anton Mitterer
Please have a look at: http://master.wiki2.dovecot.org/MailboxFormat/mbox?action=diffrev2=17rev1=16 http://master.wiki2.dovecot.org/MailboxFormat/Maildir?action=diffrev2=45rev1=44 whether it's correct. Oh and... I'd assume that everything I've added for maildir also applies to the dbox formats?

Re: [Dovecot] POLL: v2.2 to allow one mail over quota?

2012-10-29 Thread Bob Miller
+1 to one last mail, though it would be nice if the over percentage could be configurable... -- Computerisms Bob Miller 867-334-7117 / 867-633-3760 http://computerisms.ca On Mon, 2012-10-29 at 22:39 +0200, Timo Sirainen wrote: Currently if user is 1MB under quota and someone tries to

Re: [Dovecot] POLL: v2.2 to allow one mail over quota?

2012-10-29 Thread Sven Hartge
Timo Sirainen t...@iki.fi wrote: Currently if user is 1MB under quota and someone tries to deliver mail that is over 1MB, Dovecot rejects the mail. But smaller mails aren't rejected probably for days. So user might not even realize that they didn't receive one of the mails. Also having a user

Re: [Dovecot] POLL: v2.2 to allow one mail over quota?

2012-10-29 Thread Noel Butler
On Mon, 2012-10-29 at 22:39 +0200, Timo Sirainen wrote: So what do you think about v2.2 allowing delivery of one last mail even if it brings the user over quota? +1 only if configurable, and with an additional configurable quota percentage value option for those that do enable the

Re: [Dovecot] POLL: v2.2 to allow one mail over quota?

2012-10-29 Thread Sven Hartge
Noel Butler noel.but...@ausics.net wrote: On Mon, 2012-10-29 at 22:39 +0200, Timo Sirainen wrote: So what do you think about v2.2 allowing delivery of one last mail even if it brings the user over quota? +1 only if configurable, and with an additional configurable quota percentage value

Re: [Dovecot] mbox vs. maildir storage block waste

2012-10-29 Thread Christoph Anton Mitterer
On Tue, 2012-10-30 at 00:05 +0200, Timo Sirainen wrote: And I guess the interior of the files is the same? I.e. just the plain mail without any changes or quoting? Yes, but it's in dbox format so it contains also some extra metadata (not in the mail headers). Yeah of course... but the

Re: [Dovecot] mbox2mdir... what about UIDs/etc? (was: how to best import Evolution/Thunderbird mail into dovecot?)

2012-10-29 Thread Christoph Anton Mitterer
Hi again :) In the meantime I made some checks[0] on how much storage one looses by using maildir (compared to mbox)... and decided that it's much but I can live with it. This of course doesn't solve my problems that I have a possibly a mix of different mbox subformats, a mix of different mail

Re: [Dovecot] Changing password for users

2012-10-29 Thread Joseph Tam
Ben Morrow wrote: Maybe replace /usr/bin/passwd with htpasswd? Try pam_pwdfile with poppwd or some other poppassd that supports PAM. That's it! I was trying to remember the name of this PAM module. and is there another way other than poppassd? Write your own PHP script -- it couldn't

[Dovecot] dovecot-lda not correct folder

2012-10-29 Thread tony . blue . mailinglist
Hello, i use dovecot with maildir. The maildir-folder looks like this: vmail/mail/user1/cur vmail/mail/user1/.Sent vmail/mail/user1/.optionalfolder Procmail should put some definded mails in the optionalfolder My uses configuration does not do this: ...