Re: [Dovecot] 2.1: problems compiling fts-lucene - CLucene git version necessary?

2011-09-20 Thread Lutz Preßler
On Mo, 19 Sep 2011, Timo Sirainen wrote:

 On Sun, 2011-09-18 at 13:27 +0200, Lutz Preßler wrote:
  Hello,
  On So, 11 Sep 2011, Timo Sirainen wrote:
   On 11.9.2011, at 22.22, Lutz Preßler wrote:
I have problems recompiling the Debian squeeze auto build packages
with --with-lecene. Is the git (2.3) version of CLucene necessary?
   Yes.
  Ok, I now tried to test with clucene-core-2.3.3.4. Quite unsucessfully...
  I built libclucene-core-static.a and libclucene-shared-static.a after
  changing the cmake option (BUILD_STATIC_LIBRARIES). But despite enabling
  BUILD_CONTRIBS, BUILD_CONTRIBS_LIB no snowball/libstemmer has been build.
 
 You need to install libstemmer separately. I think I used
 http://snowball.tartarus.org/dist/libstemmer_c.tgz
Still having build problems --with-stemmer... libstemmer built and referenced
seperately, libtextcat as Debian package, it's:
lucene-wrapper.cc: In function 'lucene_index* lucene_index_init(const char*, 
mailbox_list*, const fts_lucene_settings*)':
lucene-wrapper.cc:108: error: no matching function for call to 
'lucene::analysis::snowball::SnowballAnalyzer::SnowballAnalyzer(const char*)'
../../../../clucene-core-2.3.3.4/src/contribs-lib/CLucene/snowball/SnowballAnalyzer.h:32:
 note: candidates are: 
lucene::analysis::snowball::SnowballAnalyzer::SnowballAnalyzer(const TCHAR*, 
const TCHAR**)
../../../../clucene-core-2.3.3.4/src/contribs-lib/CLucene/snowball/SnowballAnalyzer.h:28:
 note: 
lucene::analysis::snowball::SnowballAnalyzer::SnowballAnalyzer(const TCHAR*)
../../../../clucene-core-2.3.3.4/src/contribs-lib/CLucene/snowball/SnowballAnalyzer.h:22:
 note: 
lucene::analysis::snowball::SnowballAnalyzer::SnowballAnalyzer(const 
lucene::analysis::snowball::SnowballAnalyzer)

index-set.default_language is char, but TCHAR is wchar_t but not char?

 
  dovecot: imap(...): Error: fts_lucene: default_language set, but Dovecot 
  built without stemmer support
 
 Fixed: http://hg.dovecot.org/dovecot-2.1/rev/02c84406c661
Without stemmer support it works nicely now though.
One further question: Is fts indexing after delivery still on your TODO list?

Lutz 


Re: [Dovecot] mail_max_userip_connections=10

2011-09-20 Thread Tom Clark
If it is the same problem with K9 (although Timo doesn't think it is) we
fixed it on the K9 machine by turning off PUSH mail folders.

Tom

-Original Message-
From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On
Behalf Of Timo Sirainen
Sent: 19 September 2011 7:12 PM
To: Asai
Cc: Dovecot Mailing List
Subject: Re: [Dovecot] mail_max_userip_connections=10

On 19.9.2011, at 20.43, Asai wrote:

 If you figure it out, please post the solution, because we're running into
a similar issue right now with K9 mail where it's causing us to get this
error:imap-login: Disconnected: Connection queue full

That's a different problem. You need to increase number of login processes /
connections. http://wiki2.dovecot.org/LoginProcess




[Dovecot] DRAC plugin for Dovecot-2.x

2011-09-20 Thread USUDA Hisashi
Hello All,

I released the DRAC plugin for dovecot-2.x.

http://sourceforge.jp/projects/dovecot2-drac/

It's based the plugin for dovecot-1.1:
http://dovecot.org/patches/1.1/drac.c

Please see README file for details.

Best regards,
-- 
  mailto:us...@designet.co.jp


Re: [Dovecot] outlook 2007 very slow.

2011-09-20 Thread Charles Marcus

On 2011-09-19 7:03 PM, Linda Walsh dove...@tlinx.org wrote:

Another problem -- AFAIK, outlook is only 32bit. My mom gets
harassed, constantly to move things out of her primary .pst file and
into 'archives', (where she can't easily access them and they don't
have to be indexed...) because, the internal format became more
strained as it got larger. With 6G of folders, indexing those, your
user might be hitting outlook memory problems (not running out, but
'thrashing')...


Outlook  2007 were limited to 2GB .pst files.

 2007 could use max of 20GB .pst files, although in my experience it 
gets slow/sluggish with more than 10GB (and keep good backups, .pst 
files can get corrupted if you look at them too hard)...


IMAP support got much better in 2007, and is even better in 2010, but 
Outlook still only really shines as an Exchange client, and that is the 
way Microsoft wants it (and understandably so)...


Personally, I would only use Outlook in an Exchange environment, never 
as a standalone email client, although it's calendar is much better than 
Thunderbird+Lightning I'm sad to say...


--

Best regards,

Charles


Re: [Dovecot] Why can NOT login as root

2011-09-20 Thread Charles Marcus

On 2011-09-19 7:22 PM, Linda Walsh dove...@tlinx.org wrote:

If the root user is receiving emails, these need to be redirected to
another user so they can be read via IMAP.



I guess the source needs a patch.


Only if you like wasting your time.


Why would dovecot choose to play nursemaid to people who want to read
root email remotely via IMAPS?


It is generally considered 'standard procedure' to alias root to another 
user account for mail. That's one of the first things I do when setting 
up a new server, whether it is a mail server or other...


--

Best regards,

Charles


Re: [Dovecot] outlook 2007 very slow.

2011-09-20 Thread dovecot
On 20/09/11 11:21, Charles Marcus wrote:

 IMAP support got much better in 2007, 

How did it get better? They removed NAMESPACE support when moving from
2003 to 2007, which was a complete ball ache for us.

 and is even better in 2010

Do they support ACL in 2010? They don't in 2007, which is really
frustrating. What is better about 2010 IMAP support compared to 2007?
I'm genuinely interested to know...

-- 
Mike Cardwell https://grepular.com/  https://twitter.com/mickeyc
Professional  http://cardwellit.com/ http://linkedin.com/in/mikecardwell
PGP.mit.edu   0018461F/35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] outlook 2007 very slow.

2011-09-20 Thread Charles Marcus
On 2011-09-20 6:30 AM, dove...@lists.grepular.com 
dove...@lists.grepular.com wrote:

On 20/09/11 11:21, Charles Marcus wrote:


IMAP support got much better in 2007,


How did it get better? They removed NAMESPACE support when moving from
2003 to 2007, which was a complete ball ache for us.


2003 was basically unusable on large mail stores. 2007 actually became 
usable, in that it was much more responsive when working with mail, but 
my testing didn't really go beyond that, it was more curiosity than 
anything (and, I have ONE friend who insists on using Outlook because 
the Calendar is so much better than anything else out there).



and is even better in 2010



Do they support ACL in 2010? They don't in 2007, which is really
frustrating. What is better about 2010 IMAP support compared to 2007?
I'm genuinely interested to know...


What do you mean by 'ACL support'? Do you mean the ability to 
create/edit them on shared folders? If so, then no, not natively, I 
don't think, but I didn't do any intensive testing, all I can tell you 
is it is much more responsive, especially on larger folders.


--

Best regards,

Charles


Re: [Dovecot] outlook 2007 very slow.

2011-09-20 Thread Mike Cardwell
On 20/09/11 11:46, Charles Marcus wrote:

 and is even better in 2010
 
 Do they support ACL in 2010? They don't in 2007, which is really
 frustrating. What is better about 2010 IMAP support compared to 2007?
 I'm genuinely interested to know...
 
 What do you mean by 'ACL support'? Do you mean the ability to 
 create/edit them on shared folders?

Yes. Support for the IMAP ACL extension.

 If so, then no, not natively, I 
 don't think, but I didn't do any intensive testing, all I can tell you 
 is it is much more responsive, especially on larger folders.

This is a real shame. IMAP can do so much more than Exchange's IMAP
implementation allows.

-- 
Mike Cardwell https://grepular.com/  https://twitter.com/mickeyc
Professional  http://cardwellit.com/ http://linkedin.com/in/mikecardwell
PGP.mit.edu   0018461F/35BC AF1D 3AA2 1F84 3DC3 B0CF 70A5 F512 0018 461F



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] mail_max_userip_connections=10

2011-09-20 Thread Stan Hoeppner

On 9/19/2011 7:36 AM, Tom Clark wrote:

Hi Paul,

It's coming from the same IP address through his ADSL. Hence he gets the
problem with max_userip_connections.

I think I tracked down the problem. He's been using K9 mail which seems to
have a problem where it doesn't release a connection and has 1 connection
per subscribed folder


The reasoning behind the multiple socket communication design in the 
IMAP protocol is flawed, thus we end up with problems like yours, and 
others.  It may have looked good on the white board but it doesn't seem 
to add benefit in production--only add problems.  At least from an SA's 
perspective.  Just about every other modern internet protocol gets by 
with a single socket, and many of those applications are more complex 
than IMAP.


Multiple virtual channels are a good idea at the data link layer of WAN 
communications links, and work well there.  They're a lousy idea at the 
application layer, however, as the IMAP protocol clearly demonstrates. 
Everything IMAP does over multiple sockets could have been accomplished 
over a single socket, with no noticeable decrease in performance, but 
with fewer SA headaches and fewer server resources consumed.


I eagerly await a successor to the current version of IMAP, which will 
hopefully do away with this problematic, unnecessary, multiple socket 
nonsense.  It may be a long wait, unfortunately...


--
Stan


[Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)

2011-09-20 Thread Helge Milde

Hi!
I've followed the guide at http://wiki2.dovecot.org/Plugins/Zlib to try to make 
Dovecot gzip incomming mails, but it doesn't seem to work.
I've made pop/imap read gzipped files, and this seems to work perfectly, but 
LDA is still saving incomming mails in plain text.
There's not too much information out there regarding the zlib module, so I'm 
not sure where to start debugging the problem, and was hoping someone could 
point me in the right direction.

The only mention of zlib when LDA is delivering a file:
Sep 20 15:51:19 mail dovecot: deliver(helgemil): Module loaded: /usr/lib/dovecot/modules/lda/lib20_zlib_plugin.so   


The most relevant lines from dovecot.conf:
mail_debug = yes
protocols = imap pop3 imaps pop3s
mail_location = maildir:~/Maildir
mail_privileged_group = mail
max_mail_processes = 1024
mail_process_size = 512

protocol imap {
mail_max_userip_connections = 50
mail_plugins = fts fts_squat zlib
}

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
mail_max_userip_connections = 50
mail_plugins = zlib
}

protocol lda {
postmaster_address = postmas...@monsternett.no
mail_plugins = sieve zlib
mail_plugin_dir = /usr/lib/dovecot/modules/lda
sieve_global_dir = /etc/dovecot/sieve/
sieve_global_path = /etc/dovecot/sieve/default.sieve
}

plugin {
zlib_save_level = 6
zlib_save = gz
fts = squat
sieve = ~/dovecot.sieve
sieve_dir = ~/
}

--
Helge Milde, 69701808
www.monsternett.no


[Dovecot] how to disable quota for second namespace?

2011-09-20 Thread Udo Lembke


Hi all,
I have a second namespace as archive, where no quota should be active 
(work with type = shared).

But if I change the type to private the quota will allways count.

My dovecot version is the 2.0.13.

I have tried things like this:
plugin {
  quota_rule = *:storage=500M
  quota_rule2 = Trash:storage=+100M
  quota_rule3 = Sent:storage=+50M
  quota_rule4 = ns=archiv/%u/:ignore
}

It's also doesn't work with quota_rule4 = archiv/%u/:ignore

The namespace:
namespace {
   type = private
   separator = /
   prefix = archiv/%u/
   location = 
maildir:/var/data/archiv/%d/%n:INDEX=/var/data/indexes/archiv/%u:LAYOUT=fs

   inbox = no
   hidden = no
   subscriptions = no
   list = yes
}

Even if I define the namespace for quota I see the quota-value also in 
the root:


plugin {
  quota = maildir:User quota
  quota2 = maildir:Archiv quota:ns=archiv/%u/
}

doveadm quota get -u t...@example.com
Quota name
Type  Value  Limit   %
User quota
STORAGE 1587135 512000 309
User quota
MESSAGE   13346  -   0
Archiv quota  
STORAGE 1359379  -   0
Archiv quota  
MESSAGE   10577  -   0


du -ks /var/data/mail/example.com/test
234364  /var/data/mail/example.com/test

du -ks /var/data/archiv/example.com/test
1383792 /var/data/archiv/example.com/test

Now is the big question, how can I reach such an output?
doveadm quota get -u t...@example.com
Quota name 
Type  Value  Limit  %
User quota 
STORAGE  227756 512000 44
User quota 
MESSAGE2769  -  0
Archiv quota   
STORAGE 1359379  -  0
Archiv quota   
MESSAGE   10577  -  0


I can't believe that's only possible with a shared namespace, or?

Any hints are welcome.


Best regards

Udo



Re: [Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)

2011-09-20 Thread Patrick Domack
I thinking your mail_plugin_dir is not needed, I don't have it  
configured, and that path doesn't even exist on my system, maybe  
hangover from 1.x config?



Quoting Helge Milde he...@monsternett.no:


Hi!
I've followed the guide at http://wiki2.dovecot.org/Plugins/Zlib to  
try to make Dovecot gzip incomming mails, but it doesn't seem to work.
I've made pop/imap read gzipped files, and this seems to work  
perfectly, but LDA is still saving incomming mails in plain text.
There's not too much information out there regarding the zlib  
module, so I'm not sure where to start debugging the problem, and  
was hoping someone could point me in the right direction.


The only mention of zlib when LDA is delivering a file:
Sep 20 15:51:19 mail dovecot: deliver(helgemil): Module loaded:  
/usr/lib/dovecot/modules/lda/lib20_zlib_plugin.so   The most  
relevant lines from dovecot.conf:

mail_debug = yes
protocols = imap pop3 imaps pop3s
mail_location = maildir:~/Maildir
mail_privileged_group = mail
max_mail_processes = 1024
mail_process_size = 512

protocol imap {
mail_max_userip_connections = 50
mail_plugins = fts fts_squat zlib
}

protocol pop3 {
pop3_uidl_format = %08Xu%08Xv
mail_max_userip_connections = 50
mail_plugins = zlib
}

protocol lda {
postmaster_address = postmas...@monsternett.no
mail_plugins = sieve zlib
mail_plugin_dir = /usr/lib/dovecot/modules/lda
sieve_global_dir = /etc/dovecot/sieve/
sieve_global_path = /etc/dovecot/sieve/default.sieve
}

plugin {
zlib_save_level = 6
zlib_save = gz
fts = squat
sieve = ~/dovecot.sieve
sieve_dir = ~/
}

--
Helge Milde, 69701808
www.monsternett.no






Re: [Dovecot] Trouble getting lda to gzip incomming mails (zlib plugin)

2011-09-20 Thread Helge Milde

Well, I can't see why it would hurt either.
The reason we're using that directory is that the sieve plugin is compiled into 
lda/ by default, I think. I will try to move the sieve files into dovecot/ and 
remove mail_plugin_dir tomorrow, but I don't think it will help since dovecot 
has no problems *loading* the library.

On Tue, Sep 20, 2011 at 11:54:21AM -0400, Patrick Domack wrote:
I thinking your mail_plugin_dir is not needed, I don't have it 
configured, and that path doesn't even exist on my system, maybe 
hangover from 1.x config?



Quoting Helge Milde he...@monsternett.no:


Hi!
I've followed the guide at http://wiki2.dovecot.org/Plugins/Zlib to 
try to make Dovecot gzip incomming mails, but it doesn't seem to 
work.
I've made pop/imap read gzipped files, and this seems to work 
perfectly, but LDA is still saving incomming mails in plain text.
There's not too much information out there regarding the zlib 
module, so I'm not sure where to start debugging the problem, and 
was hoping someone could point me in the right direction.


The only mention of zlib when LDA is delivering a file:
Sep 20 15:51:19 mail dovecot: deliver(helgemil): Module loaded: 
/usr/lib/dovecot/modules/lda/lib20_zlib_plugin.so   The most 
relevant lines from dovecot.conf:

mail_debug = yes
protocols = imap pop3 imaps pop3s
mail_location = maildir:~/Maildir
mail_privileged_group = mail
max_mail_processes = 1024
mail_process_size = 512

protocol imap {
   mail_max_userip_connections = 50
   mail_plugins = fts fts_squat zlib
}

protocol pop3 {
   pop3_uidl_format = %08Xu%08Xv
   mail_max_userip_connections = 50
   mail_plugins = zlib
}

protocol lda {
   postmaster_address = postmas...@monsternett.no
   mail_plugins = sieve zlib
   mail_plugin_dir = /usr/lib/dovecot/modules/lda
   sieve_global_dir = /etc/dovecot/sieve/
   sieve_global_path = /etc/dovecot/sieve/default.sieve
}

plugin {
   zlib_save_level = 6
   zlib_save = gz
   fts = squat
   sieve = ~/dovecot.sieve
   sieve_dir = ~/
}

--
Helge Milde, 69701808
www.monsternett.no






--
Helge Milde, 69701808
www.monsternett.no


Re: [Dovecot] mail_max_userip_connections=10

2011-09-20 Thread Asai
Thanks for the insight, Tom.  Yeah, it was a different problem, and we 
solved it.



On 9/20/2011 1:15 AM, Tom Clark wrote:

If it is the same problem with K9 (although Timo doesn't think it is) we
fixed it on the K9 machine by turning off PUSH mail folders.

Tom

-Original Message-
From: dovecot-boun...@dovecot.org [mailto:dovecot-boun...@dovecot.org] On
Behalf Of Timo Sirainen
Sent: 19 September 2011 7:12 PM
To: Asai
Cc: Dovecot Mailing List
Subject: Re: [Dovecot] mail_max_userip_connections=10

On 19.9.2011, at 20.43, Asai wrote:


If you figure it out, please post the solution, because we're running into

a similar issue right now with K9 mail where it's causing us to get this
error:imap-login: Disconnected: Connection queue full

That's a different problem. You need to increase number of login processes /
connections. http://wiki2.dovecot.org/LoginProcess




[Dovecot] About using Dovecot indexes with Thunderbird/kmail

2011-09-20 Thread Anton Aylward
I have Dovecot running well on my Mandriva mail hub, handing out IMAP to 
the household LAN.  This is 1.2.15.  Eventually I'll upgrade the OS and 
get 2.x, but this is working fine.


So this question is really about the mail readers I use and how they 
make use of Dovecot.


I have Thunderbird on my laptop and KMail2 on my desktop.



Dovecot indexes.  GOOD!
The trouble is that the mail readers want their own indexes :-(


I wish that Thunderbird would NOT index mail on my laptop, but it does. 
 I wish Kmail2 would not use nepomuk/akonadi to index the mail but it 
does.  Why can't they both believe the indexes used by Dovecot?


Is this an unreasonable request?
--
We stand behind all of our products, except for the manure spreader.
 -- Corporate motto of an equipment manufacturer


Re: [Dovecot] About using Dovecot indexes with Thunderbird/kmail

2011-09-20 Thread Charles Marcus

On 2011-09-20 4:03 PM, Anton Aylward anton.aylw...@antonaylward.com wrote:

I wish that Thunderbird would NOT index mail on my laptop, but it does.


So turn it (GLODA) off...

--

Best regards,

Charles


[Dovecot] Sieve: Vacation, handle and variable

2011-09-20 Thread René Neumann
Hi *,

I am adding a generic way for vacation-replies in my sieve setup. There
I set the handle and the reason using variables (see end of mail). My
simple question now is: Though variable expansion is not done for
subject and reason, is it done for the handle? Because else there seems
no way in configuring the vacation action via variables.

I tried to read the code for this extension, but ... well ... the whole
sieve implementation is way more complicated then I figured ^^. Thus I
take the question to the list.

Thanks,
René

- default.sieve -

require [..., include, variables];

# set this to the text you want to get included in the vacation-mail
global [vacation, vhandle];

set vhandle ;
set vacation ;

[...]

include :personal vacation;

- vacation.sieve -

require [variables, include, vacation];

# this is set in the including script
global [vacation, vhandle];

if string :is ${vacation}  {
return;
}

# ensure we have a handle
if string :is ${vhandle}  {
set vhandle ${vacation};
}

if header :matches subject * {
set sbj Out of office [was: ${1}];

vacation :addresses [...]
 :from ... :days 7 :handle ${vhandle}
 :subject ${sbj} ${vacation};
}

-



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] About using Dovecot indexes with Thunderbird/kmail

2011-09-20 Thread Anton Aylward

Charles Marcus said the following on 09/20/2011 04:22 PM:


On 2011-09-20 4:03 PM, Anton Aylwardanton.aylw...@antonaylward.com  wrote:

I wish that Thunderbird would NOT index mail on my laptop, but it does.


So turn it (GLODA) off...



Ah
https://wiki.mozilla.org/Thunderbird:Using_Gloda
Well it is off, but I still have these index files ...

So perhaps its not index that taking all the space and gets rebuilt when 
T Bird says its downloading the headers and indexing ...



And then there's nepomuk I'm coming to hate nepomuk!

--
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Knuth


Re: [Dovecot] Sieve: Vacation, handle and variable

2011-09-20 Thread René Neumann
Am 20.09.2011 22:38, schrieb René Neumann:
 Hi *,
 
 I am adding a generic way for vacation-replies in my sieve setup. There
 I set the handle and the reason using variables (see end of mail). My
 simple question now is: Though variable expansion is not done for
 subject and reason, is it done for the handle? Because else there seems
 no way in configuring the vacation action via variables.

Ok. I just learned about sieve-test. And this shows me:

* send vacation message:
= seconds   : 604800
= subject: FooSubj
= from   : ...
= handle : ${vhandle}

So the handle does not expand variables. Hence: Would it be possible to
add for example a non-standard :expand list option to vacation, where
'list' contains the names of the options where it is safe to do
variable-expansion?

- René



signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] Sieve: Vacation, handle and variable

2011-09-20 Thread Stephan Bosch

Op 20-9-2011 23:48, René Neumann schreef:

Am 20.09.2011 22:38, schrieb René Neumann:

Hi *,

I am adding a generic way for vacation-replies in my sieve setup. There
I set the handle and the reason using variables (see end of mail). My
simple question now is: Though variable expansion is not done for
subject and reason, is it done for the handle? Because else there seems
no way in configuring the vacation action via variables.

Ok. I just learned about sieve-test. And this shows me:

* send vacation message:
 =  seconds   : 604800
 =  subject: FooSubj
 =  from   : ...
 =  handle : ${vhandle}

So the handle does not expand variables. Hence: Would it be possible to
add for example a non-standard :expand list option to vacation, where
'list' contains the names of the options where it is safe to do
variable-expansion?


No need. This is a violation of the standard and it was actually a long 
standing FIXME already. Fortunately, it was quite simple to repair:


http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/fe6df3425850

This will be included in the next release.

Regards,

Stephan


Re: [Dovecot] About using Dovecot indexes with Thunderbird/kmail

2011-09-20 Thread Willie Gillespie

On 09/20/2011 03:37 PM, Anton Aylward wrote:

https://wiki.mozilla.org/Thunderbird:Using_Gloda
Well it is off, but I still have these index files ...

So perhaps its not index that taking all the space and gets rebuilt when
T Bird says its downloading the headers and indexing ...


Just have to ask: Is Keep messages for this account on this computer 
checked under the Synchronization  Storage settings?