Re: [Dovecot] Design: Adding checksums to index files

2013-08-05 Thread Attila Nagy
On 08/05/13 14:47, Timo Sirainen wrote: I've been planning on adding these for years. Maybe it's about time soon. I guess they could be added already to v2.2, but enabled only by a new setting because it requires file format changes that old Dovecots can't then read. I could probably patch

Re: [Dovecot] Passing data safely in password_key?

2013-08-02 Thread Attila Nagy
On 08/02/2013 02:32 PM, Timo Sirainen wrote: On Mon, 2013-07-29 at 09:22 +0200, Attila Nagy wrote: On 07/28/13 13:49, Attila Nagy wrote: Hi, I would like to convert my custom POP/IMAP proxy to Dovecot's. In this proxy I do more than giving back user name, password and the host and I need

Re: [Dovecot] Passing data safely in password_key?

2013-07-29 Thread Attila Nagy
On 07/28/13 13:49, Attila Nagy wrote: Hi, I would like to convert my custom POP/IMAP proxy to Dovecot's. In this proxy I do more than giving back user name, password and the host and I need extra information. Luckily all of them are available as variables, but more than one comes as user

[Dovecot] Passing data safely in password_key?

2013-07-28 Thread Attila Nagy
Hi, I would like to convert my custom POP/IMAP proxy to Dovecot's. In this proxy I do more than giving back user name, password and the host and I need extra information. Luckily all of them are available as variables, but more than one comes as user input (like user name and cleartext

[Dovecot] How the does new autocreate method works?

2013-05-23 Thread Attila Nagy
Hi, I'm trying to migrate from the deprecated autocreate plugin to the mailbox { auto }setting without success. What do I forget, or misunderstand? I deliver mails via LMTP and log in on IMAP, neither of them create the folders other than the inbox itself. # doveconf -n # 2.2.2:

Re: [Dovecot] How the does new autocreate method works?

2013-05-23 Thread Attila Nagy
On 05/23/13 14:01, Timo Sirainen wrote: On 23.5.2013, at 14.26, Attila Nagy b...@fsn.hu wrote: I'm trying to migrate from the deprecated autocreate plugin to the mailbox { auto }setting without success. What do I forget, or misunderstand? I deliver mails via LMTP and log in on IMAP, neither

Re: [Dovecot] How the does new autocreate method works?

2013-05-23 Thread Attila Nagy
On 05/23/13 14:08, Timo Sirainen wrote: On 23.5.2013, at 15.06, Attila Nagy b...@fsn.hu wrote: On 05/23/13 14:01, Timo Sirainen wrote: On 23.5.2013, at 14.26, Attila Nagy b...@fsn.hu wrote: I'm trying to migrate from the deprecated autocreate plugin to the mailbox { auto }setting without

Re: [Dovecot] Non-standard fields?

2013-01-04 Thread Attila Nagy
On 01/04/13 01:01, Timo Sirainen wrote: - are there any plans to utilize these? No. Other Maildir tools would probably break if they were used. Dovecot's extra maildir metadata is placed to dovecot-uidlist file. That's why I'm asking, I don't want to write a tool, which will break with a

[Dovecot] Non-standard fields?

2012-12-30 Thread Attila Nagy
Hi, Non-standard fields are mentioned here: http://wiki2.dovecot.org/MailboxFormat/Maildir and they are stated as currently not used. Questions: - am I right that if they will be used, they will be key=value pairs, like fields in the base filename? Like:

Re: [Dovecot] dsync redesign

2012-03-24 Thread Attila Nagy
On 03/23/12 22:25, Timo Sirainen wrote: In case anyone is interested in reading (and maybe helping!) with a dsync redesign that's intended to fix all of its current problems, here are some possibly incoherent ramblings about it: http://dovecot.org/tmp/dsync-redesign.txt and even if you don't

Re: [Dovecot] dsync replication available for testing

2012-03-05 Thread Attila Nagy
On 03/05/12 11:08, Timo Sirainen wrote: On 5.3.2012, at 9.25, Attila Nagy wrote: On 03/04/12 11:44, Timo Sirainen wrote: In dovecot-2.1 hg you can now test dsync-based replication. Everything isn't finished yet, but it appears to work and I've enabled it for my @dovecot.fi mails. Some

Re: [Dovecot] dsync replication available for testing

2012-03-05 Thread Attila Nagy
On 03/05/12 13:48, Timo Sirainen wrote: On 5.3.2012, at 14.15, Attila Nagy wrote: On 03/04/12 11:44, Timo Sirainen wrote: In dovecot-2.1 hg you can now test dsync-based replication. Everything isn't finished yet, but it appears to work and I've enabled it for my @dovecot.fi mails. Some

Re: [Dovecot] dsync replication available for testing

2012-03-04 Thread Attila Nagy
Hi, On 03/04/12 11:44, Timo Sirainen wrote: In dovecot-2.1 hg you can now test dsync-based replication. Everything isn't finished yet, but it appears to work and I've enabled it for my @dovecot.fi mails. Some issues: - public namespace isn't replicated at all - shared namespace is

Re: [Dovecot] FreeBSD maintainer ?

2012-02-26 Thread Attila Nagy
On 02/26/12 08:22, Frank Bonnet wrote: Does the FreeBSD Dovecot's port maintainer read this mailing-list ? If you read it, you may know the answer (depending on which port do you use).

[Dovecot] assertion failed in mail-index.c

2012-01-04 Thread Attila Nagy
Hi, I have this: Jan 04 15:55:21 pop3(jfm47): Panic: file mail-index.c: line 257 (mail_index_keyword_lookup_or_create): assertion failed: (*keyword != '\0') Jan 04 15:55:21 master: Error: service(pop3): child 3391 killed with signal 6 (core not dumped - set service pop3 {

Re: [Dovecot] doveadm + dsync merging

2011-12-29 Thread Attila Nagy
Hi, On 12/29/2011 01:35 PM, Timo Sirainen wrote: doveadm already supports some nice things, such as being able to remotely launch a doveadm command via TCP socket. It also supports executing a command for all users or to some specific users using a wildcard. dsync could use these features,

Re: [Dovecot] Maildir locking

2011-09-15 Thread Attila Nagy
On 09/15/11 10:19, Timo Sirainen wrote: On Wed, 2011-09-14 at 13:32 +0200, Attila Nagy wrote: Hello, I'm looking for the alternative of qmail's chmod -t (sticky bit on the maildir root) for Dovecot. What I'm trying to achieve with this lock: - Dovecot lmtp should give back a temporary error

Re: [Dovecot] Maildir locking

2011-09-15 Thread Attila Nagy
On 09/15/11 10:39, Timo Sirainen wrote: On Thu, 2011-09-15 at 10:25 +0200, Attila Nagy wrote: What is the best way to do this? If there is no such thing currently, would it be hard to implement the sticky bit checking on the root? dovecot-uidlist.lock basically does this. Dovecot comes

Re: [Dovecot] Maildir locking

2011-09-15 Thread Attila Nagy
On 09/15/11 11:43, Timo Sirainen wrote: On Thu, 2011-09-15 at 11:37 +0200, Attila Nagy wrote: So you have a proxy that decides what backend server the connections are redirected to? How about you do it completely without locking with dsync? Moving between servers works basically the same

[Dovecot] Maildir locking

2011-09-14 Thread Attila Nagy
Hello, I'm looking for the alternative of qmail's chmod -t (sticky bit on the maildir root) for Dovecot. What I'm trying to achieve with this lock: - Dovecot lmtp should give back a temporary error (so the email will be deferred and re-delivered later) - all other Dovecot daemons (pop, imap)

Re: [Dovecot] Converting CLIENT_MAIL_DATA_MAX_INMEMORY_SIZE to a configurable?

2011-06-17 Thread Attila Nagy
Hi, Sorry for the late answer... On 06/13/11 15:40, Timo Sirainen wrote: On Thu, 2011-06-09 at 20:56 +0200, Attila Nagy wrote: Hi, Currently Dovecot's LMTPd writes incoming emails to mail_temp_dir if it's bigger than 128k. But I would like to spare those unnecessary operations (creating

[Dovecot] Converting CLIENT_MAIL_DATA_MAX_INMEMORY_SIZE to a configurable?

2011-06-09 Thread Attila Nagy
Hi, Currently Dovecot's LMTPd writes incoming emails to mail_temp_dir if it's bigger than 128k. But I would like to spare those unnecessary operations (creating a file, deleting it, writing into it, reading from it, checking whether there is free space and if not, rejecting (temporarily)

[Dovecot] lda_mailbox_autocreate does not work for lmtp?

2011-06-08 Thread Attila Nagy
Hi, I try to deliver into specific folders with the plus addressing, namely: rcpt to:userid+folder@domain This works only if the folder exists. If it does not, I get the following error: rcpt to:userid+Spam@domain 501 5.5.4 Unsupported options example-config/conf.d/20-lmtp.conf says: # When

Re: [Dovecot] lda_mailbox_autocreate does not work for lmtp?

2011-06-08 Thread Attila Nagy
On 06/08/11 12:11, Attila Nagy wrote: [a lot of things] Oh crap, it turned out that some binary junk crept into the LMTP sequence I tried with copy-paste...

Re: [Dovecot] POP3 error

2011-03-08 Thread Attila Nagy
On 03/08/2011 06:51 PM, Charles Marcus wrote: On 2011-03-08 12:42 PM, Thierry de Montaudry wrote: On 08 Mar 2011, at 19:37, Charles Marcus wrote: So... if the httpd process is the one consuming all of the CPU, doesn't it stand to reason that it might be something to do with one of your web

Re: [Dovecot] POP3 error

2011-03-08 Thread Attila Nagy
On 03/08/2011 09:58 PM, Charles Marcus wrote: I think this is clearly related to Dovecot. It handles load very badly Whoa, pardner, fyi, there are many, many installations humming along smoothly. No offense. It may be more correct to say situations, where the OS can't deliver prompt resources

Re: [Dovecot] POP3 error

2011-03-08 Thread Attila Nagy
On 03/08/2011 10:37 PM, Robert Schetterer wrote: Am 08.03.2011 21:38, schrieb Attila Nagy: On 03/08/2011 06:51 PM, Charles Marcus wrote: On 2011-03-08 12:42 PM, Thierry de Montaudry wrote: On 08 Mar 2011, at 19:37, Charles Marcus wrote: So... if the httpd process is the one consuming all

[Dovecot] Dovecot doesn't show any e-mails, while there are a lot in the maildir

2011-02-18 Thread Attila Nagy
Hi, I've recently seen the following issue. A user logs in with pop3, and sees zero e-mails. The maildir contains emails both in cur and new. The mail delivery is done with qmail, and this user have had no logins before, so it has only the inbox, trash and sent (while dovecot is configured to

Re: [Dovecot] RFC: grouped (f)sync

2011-01-06 Thread Attila Nagy
On 01/05/2011 11:38 PM, Timo Sirainen wrote: On 6.1.2011, at 0.27, Attila Nagy wrote: With this, 10 syncs would happen in every second from Dovecot LDA processes, meaning if a client connects in t=0 it will immediately got the response 250, if a client connects in t=0.05, it will get

[Dovecot] RFC: grouped (f)sync

2011-01-05 Thread Attila Nagy
Hello, Currently Dovecot (and any other application, which cares about e-mail delivery) does at least one fsync per mail delivery. Given that hard disk drives have a very limited IOPS, this effectively limits the maximum mail delivery performance to a very low value, under utilizing the

Re: [Dovecot] Restarting dovecot-auth stops authentication

2010-12-22 Thread Attila Nagy
On 12/21/2010 01:31 PM, Timo Sirainen wrote: On 21.12.2010, at 13.51, Attila Nagy wrote: On 11/18/2010 06:45 PM, Timo Sirainen wrote: On Wed, 2010-11-17 at 21:17 +0100, Attila Nagy wrote: pop3-login: Error: net_connect_unix(pop3) failed: Connection refused Right. This is the main problem

Re: [Dovecot] Restarting dovecot-auth stops authentication

2010-12-21 Thread Attila Nagy
On 11/18/2010 06:45 PM, Timo Sirainen wrote: On Wed, 2010-11-17 at 21:17 +0100, Attila Nagy wrote: pop3-login: Error: net_connect_unix(pop3) failed: Connection refused Right. This is the main problem. So the question becomes why is the connection being refused. I would really love to solve

Re: [Dovecot] Restarting dovecot-auth stops authentication

2010-12-21 Thread Attila Nagy
On 12/21/2010 01:31 PM, Timo Sirainen wrote: On 21.12.2010, at 13.51, Attila Nagy wrote: On 11/18/2010 06:45 PM, Timo Sirainen wrote: On Wed, 2010-11-17 at 21:17 +0100, Attila Nagy wrote: pop3-login: Error: net_connect_unix(pop3) failed: Connection refused Right. This is the main problem

Re: [Dovecot] Restarting dovecot-auth stops authentication

2010-12-21 Thread Attila Nagy
On 12/21/2010 06:41 PM, Timo Sirainen wrote: On 21.12.2010, at 19.37, Attila Nagy wrote: service imap-login { client_limit = 8 Why imap-login with this small client_limit? The default should be ok (1000). Because I think that Dovecot's processes block on IO and not just on distinct IO

Re: [Dovecot] Restarting dovecot-auth stops authentication

2010-11-19 Thread Attila Nagy
On 11/16/10 14:40, Attila Nagy wrote: The Dovecot wiki states that Dovecot's master restarts all died processes, which is good for availability. But when I kill dovecot/auth (to simulate an error condition which happened on a machine), the authentication fails with: Nov 16 14:32:40 be dovecot

Re: [Dovecot] Restarting dovecot-auth stops authentication

2010-11-17 Thread Attila Nagy
On 11/16/10 18:29, Timo Sirainen wrote: On Tue, 2010-11-16 at 14:52 +0100, Attila Nagy wrote: Nov 16 14:32:40 be dovecot: imap: Error: net_connect_unix(auth-master) failed: No such file or directory Of course I forgot to tell it's 2.0.6. 2.0.7 fixed this. Thanks, I've upgraded to it. BTW, I

[Dovecot] Restarting dovecot-auth stops authentication

2010-11-16 Thread Attila Nagy
Hi, The Dovecot wiki states that Dovecot's master restarts all died processes, which is good for availability. But when I kill dovecot/auth (to simulate an error condition which happened on a machine), the authentication fails with: Nov 16 14:32:40 be dovecot: imap: Error:

[Dovecot] Dovecot occasionally stops with Fatal: kevent(): Invalid argument

2010-11-14 Thread Attila Nagy
Hi, FreeBSD/amd64 8-STABLE, Dovecot 2.0.6, stops in random times with: Nov 14 18:42:14 be dovecot: master: Fatal: kevent(): Invalid argument Any ideas? Thanks,

Re: [Dovecot] Dovecot occasionally stops with Fatal: kevent(): Invalid argument

2010-11-14 Thread Attila Nagy
On 11/14/2010 07:12 PM, Timo Sirainen wrote: On 14.11.2010, at 18.11, Timo Sirainen wrote: On 14.11.2010, at 18.11, Timo Sirainen wrote: On 14.11.2010, at 17.52, Attila Nagy wrote: FreeBSD/amd64 8-STABLE, Dovecot 2.0.6, stops in random times with: Nov 14 18:42:14 be dovecot: master: Fatal

Re: [Dovecot] v2.0.5 released

2010-10-04 Thread Attila Nagy
Hi, It seems there is an FD leak in this version. The number of open file descriptors quickly raise after upgrading from 2.0.4. (I haven't got more time to look after the issue, it may be obvious from the diffs) # dovecot -n (after the downgrade) # 2.0.4: /usr/local/etc/dovecot/dovecot.conf

Re: [Dovecot] v2.0.5 released

2010-10-04 Thread Attila Nagy
On 10/04/10 15:48, Timo Sirainen wrote: On Mon, 2010-10-04 at 15:27 +0200, Attila Nagy wrote: It seems there is an FD leak in this version. The number of open file descriptors quickly raise after upgrading from 2.0.4. In which process? Sorry, I had to quickly downgrade, dovecot ate more than

Re: [Dovecot] v2.0.5 released

2010-10-04 Thread Attila Nagy
On 10/04/2010 04:57 PM, Timo Sirainen wrote: On Mon, 2010-10-04 at 15:57 +0200, Attila Nagy wrote: On 10/04/10 15:48, Timo Sirainen wrote: On Mon, 2010-10-04 at 15:27 +0200, Attila Nagy wrote: It seems there is an FD leak in this version. The number of open file descriptors quickly raise

Re: [Dovecot] mail_fsync=never doesn't work?

2010-09-28 Thread Attila Nagy
On 09/27/10 23:26, Timo Sirainen wrote: Thanks! But shouldn't Avoid fsyncing subscriptions file when it doesn't change or if mail_fsync=never. be Avoid re-writing subscriptions file when it doesn't change and fsyncing it if mail_fsync=never.? I mean (I haven't read the code context) if you

Re: [Dovecot] mail_fsync=never doesn't work?

2010-09-28 Thread Attila Nagy
On 09/28/2010 05:09 PM, Timo Sirainen wrote: On Tue, 2010-09-28 at 08:29 +0200, Attila Nagy wrote: Sadly, I'm one of them. Currently during the provisioning it's not guaranteed that a user will have a mailbox in the file system, so autocreating it during pop logins is a bless. :) But POP3

Re: [Dovecot] mail_fsync=never doesn't work?

2010-09-28 Thread Attila Nagy
On 09/28/2010 07:06 PM, Timo Sirainen wrote: On Tue, 2010-09-28 at 19:03 +0200, Attila Nagy wrote: On 09/28/2010 05:09 PM, Timo Sirainen wrote: On Tue, 2010-09-28 at 08:29 +0200, Attila Nagy wrote: Sadly, I'm one of them. Currently during the provisioning it's not guaranteed that a user

[Dovecot] mail_fsync=never doesn't work?

2010-09-27 Thread Attila Nagy
Hello, I've tried to set the above in Dovecot 2.0.3, but according to ktrace (FreeBSD) it still fsync()s a lot (pop3 processes for example). Is this switch useful at all?

Re: [Dovecot] mail_fsync=never doesn't work?

2010-09-27 Thread Attila Nagy
On 09/27/10 15:48, Timo Sirainen wrote: On Mon, 2010-09-27 at 10:09 +0200, Attila Nagy wrote: I've tried to set the above in Dovecot 2.0.3, but according to ktrace (FreeBSD) it still fsync()s a lot (pop3 processes for example). Is this switch useful at all? I did a quick test and didn't see

Re: [Dovecot] mail_fsync=never doesn't work?

2010-09-27 Thread Attila Nagy
On 09/27/2010 04:52 PM, Timo Sirainen wrote: On Mon, 2010-09-27 at 16:31 +0200, Attila Nagy wrote: doveconf -n: mail_plugins = $mail_plugins quota One annoying problem about v2.0's doveconf -n output is that it hides when using multiple var=$var lines.. Did you have more plugins than just

[Dovecot] xz compression support

2010-09-22 Thread Attila Nagy
Hello, Just wondering: Dovecot has gzip/bzip2 compression/decompression support. According to this: http://stephane.lesimple.fr/wiki/blog/lzop_vs_compress_vs_gzip_vs_bzip2_vs_lzma_vs_lzma2-xz_benchmark_reloaded gzip and bzip2 aren't really useful together. While gzip can offer speed and a

[Dovecot] 2.0.3 doesn't start without SSL

2010-09-21 Thread Attila Nagy
Hi, I've upgraded from 2.0.1 to 2.0.3 and while the former starts, the latter doesn't (the config is the same). It bails with: Sep 21 17:15:32 locsocs dovecot: ssl-params: Fatal: Dovecot built without SSL support Sep 21 17:15:32 locsocs dovecot: master: Error: service(ssl-params): command

Re: [Dovecot] 2.0.3 doesn't start without SSL

2010-09-21 Thread Attila Nagy
On 09/21/2010 05:28 PM, Timo Sirainen wrote: On Tue, 2010-09-21 at 17:21 +0200, Attila Nagy wrote: I've upgraded from 2.0.1 to 2.0.3 and while the former starts, the latter doesn't (the config is the same). It bails with: Sep 21 17:15:32 locsocs dovecot: ssl-params: Fatal: Dovecot built

[Dovecot] Best way to migrate from qmail-ldap's autoreply?

2010-09-02 Thread Attila Nagy
Hi, qmail-ldap uses four LDAP attributes for handling autoreplies in qmail-local: - deliverymode (to see whether the autoreply should be send) - mailreplytext, which is a base64 encoded multiline string* - mailreplystart and mailreplystop, unix dates I'm wondering how this could be handled

Re: [Dovecot] Modifying the underlying maildir externally (webmail, replication)

2010-01-22 Thread Attila Nagy
Tony Rutherford wrote: Timo Sirainen wrote: On 20.1.2010, at 22.21, Attila Nagy wrote: After running through http://wiki.dovecot.org/IndexFiles I'm not sure how well would Dovecot work with other programs modifying the maildirs (adding, deleting, moving messages, folders etc). The Main

[Dovecot] Modifying the underlying maildir externally (webmail, replication)

2010-01-20 Thread Attila Nagy
Hello, I have a setup where there are multiple maildir users, one of them being the pop/imap server itself, the others are for example a maildir capable webmail and message replication. I would like to evaluate Dovecot, but I wonder how would its binary indexes and logs fit into this