[Dovecot] Mail deletion and Solr index update

2012-08-02 Thread Matthias Rieber
Hi,

I've deleted 1s emails and it seems that every mail is removed with
a single request from Solrs index. This works, but it's quite slow. Is
it possible/plans to improve that?

Matthias


Re: [Dovecot] dovecot-lda setting quota rules

2012-08-02 Thread Timo Sirainen
On 3.8.2012, at 2.13, Lazy wrote:

>> dovecot-lda -o plugin/quota_rule=*:storage=1G
>> 
> 
> thank You !
> 
> This is simple and elegant.
> 
> Sill I need this to be taken from environment, I produced a simple
> patch adding one '-o' from an environment variable.

You can also set environment:

PLUGIN/QUOTA_RULE=*:storage=1G

and then use dovecot-lda -k parameter.

And if even that doesn't work, you could simply create a wrapper script.

> If You consider this useful I can try and make it more generic, enable
> multiple option overriding.

You can also give -o parameter multiple times.


Re: [Dovecot] dovecot-lda setting quota rules

2012-08-02 Thread Lazy
2012/7/31 Timo Sirainen :
> On 18.7.2012, at 4.33, Lazy wrote:
>
>> I wan't it to stay that way. The problem is that it dosn't update the
>> quota rules in Maildir when quota is changed in userdb.
>> I have the rules avaiable in qmail-lda's environment, but I need an
>> idea on how to feed the quota rule string to quota plugin without
>> doing userdb lookup.
>>
>> What whould be the best way to do this, maybe in
>> plugins/quota/quota.c:quota_root_add_rules() ?
>
> dovecot-lda -o plugin/quota_rule=*:storage=1G
>

thank You !

This is simple and elegant.

Sill I need this to be taken from environment, I produced a simple
patch adding one '-o' from an environment variable.

If You consider this useful I can try and make it more generic, enable
multiple option overriding.


Regards,
Michal Grzedzicki


[Dovecot] Overriding inbox= in userdb extra fields

2012-08-02 Thread Bret Martin
Hello,

I'm trying to set up an alternate user with a different inbox using passwd-file 
and userdb extra fields and the extra field settings don't seem to be taking 
effect. I've used auth_debug and mail_debug and I'm unclear how I can further 
troubleshoot this.

Is it possible to have inbox=yes in one namespace globally and then override 
this for one user by setting inbox=no for that namespace and then inbox=yes for 
another?

My doveconf -n is below. I would like to have inbox=yes for the inbox 
namespace, inbox=no for the virtual namespace, and then be able to invert these 
for selected users using userdb extra fields. My attempt at doing this so far 
looks like

bam-ios:[REDACTED]:500:500::/home/bam::user=bam namespace/inbox/inbox=no 
namespace/virtual/inbox=yes

Changing the user with user= seems to work fine, but the inbox= changes don't. 
Here is some relevant log data.

Aug  2 11:37:29 new-miranda dovecot: auth: Debug: Loading modules from 
directory: /usr/lib/dovecot/modules/auth
Aug  2 11:37:29 new-miranda dovecot: auth: Debug: passwd-file 
/etc/dovecot/users: Read 1 users in 0 secs
Aug  2 11:37:29 new-miranda dovecot: auth: Debug: auth client connected 
(pid=14967)
Aug  2 11:37:29 new-miranda dovecot: auth: Debug: client in: 
AUTH#0111#011PLAIN#011service=imap#011secured#011session=Rgx2MErG4wBAd51y#011lip=216.93.241.245#011rip=64.119.157.114#011lport=993#011rport=38115#011resp=
Aug  2 11:37:29 new-miranda dovecot: auth: Debug: 
passwd-file(bam-ios,64.119.157.114,): lookup: user=bam-ios 
file=/etc/dovecot/users
Aug  2 11:37:29 new-miranda dovecot: auth: Debug: 
auth(bam-ios,64.119.157.114,): username changed bam-ios -> bam
Aug  2 11:37:29 new-miranda dovecot: auth: Debug: client out: 
OK#0111#011user=bam#011namespace/inbox/inbox=no#011namespace/virtual/inbox=yes
Aug  2 11:37:29 new-miranda dovecot: auth: Debug: master in: REQUEST#[REDACTED]
Aug  2 11:37:29 new-miranda dovecot: auth: Debug: 
passwd-file(bam,64.119.157.114,): lookup: user=bam 
file=/etc/dovecot/users
Aug  2 11:37:29 new-miranda dovecot: auth: 
passwd-file(bam,64.119.157.114,): unknown user
Aug  2 11:37:29 new-miranda dovecot: auth: Debug: 
passwd(bam,64.119.157.114,): lookup
Aug  2 11:37:29 new-miranda dovecot: auth: Debug: master out: 
USER#0111425670145#011bam#011system_groups_user=bam#011uid=500#011gid=500#011home=/home/bam
Aug  2 11:37:29 new-miranda dovecot: imap-login: Login: user=, 
method=PLAIN, rip=64.119.157.114, lip=216.93.241.245, mpid=14970, TLS, 
session=
Aug  2 11:37:29 new-miranda dovecot: imap: Debug: Loading modules from 
directory: /usr/lib/dovecot/modules
Aug  2 11:37:29 new-miranda dovecot: imap: Debug: Module loaded: 
/usr/lib/dovecot/modules/lib20_virtual_plugin.so
Aug  2 11:37:29 new-miranda dovecot: imap(bam): Debug: Effective uid=500, 
gid=500, home=/home/bam
Aug  2 11:37:29 new-miranda dovecot: imap(bam): Debug: Namespace inbox: 
type=private, prefix=, sep=, inbox=yes, hidden=no, list=yes, subscriptions=yes 
location=mdbox:/srv/mail/bam/mdbox
Aug  2 11:37:29 new-miranda dovecot: imap(bam): Debug: fs: 
root=/srv/mail/bam/mdbox, index=, control=, inbox=, alt=
Aug  2 11:37:29 new-miranda dovecot: imap(bam): Debug: Namespace : Using 
permissions from /srv/mail/bam/mdbox: mode=0700 gid=-1
Aug  2 11:37:29 new-miranda dovecot: imap(bam): Debug: Namespace virtual: 
type=private, prefix=virtual/, sep=/, inbox=no, hidden=yes, list=no, 
subscriptions=yes location=virtual:/srv/mail/bam/virtual
Aug  2 11:37:29 new-miranda dovecot: imap(bam): Debug: fs: 
root=/srv/mail/bam/virtual, index=, control=, inbox=, alt=
Aug  2 11:37:29 new-miranda dovecot: imap(bam): Debug: Namespace mdbox: 
type=private, prefix=mdbox/, sep=/, inbox=no, hidden=yes, list=no, 
subscriptions=yes location=mdbox:/srv/mail/bam/mdbox
Aug  2 11:37:29 new-miranda dovecot: imap(bam): Debug: fs: 
root=/srv/mail/bam/mdbox, index=, control=, inbox=, alt=

I also tried not having inbox=yes anywhere in the global configurations, but 
then I get

Aug  2 11:52:22 new-miranda dovecot: imap(bam): Error: user bam: Initialization 
failed: namespace configuration error: inbox=yes namespace missing

I'm having great luck with the virtual plugin, but I only want to use it for 
the inbox on some clients. Any ideas on why my inbox=yes/no overrides aren't 
taking effect?

Thanks,

--Bret


# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.5 ext4
mail_location = mdbox:/srv/mail/%u/mdbox
mail_plugins = " virtual"
namespace inbox {
  inbox = no
  location = 
  prefix = 
}
namespace mdbox {
  hidden = yes
  list = no
  location = 
  prefix = mdbox/
  separator = /
}
namespace virtual {
  hidden = yes
  inbox = yes
  list = no
  location = virtual:/srv/mail/%u/virtual
  prefix = virtual/
  separator = /
}
passdb {
  args = scheme=SSHA512 username_format=%u /etc/dovecot/users
  driver = passwd-file
}
passdb {
  driver = pam
}
protocols = " imap"
service imap-login {
  inet_listener imap {
port = 0
  }
}
ssl_cert = 

Re: [Dovecot] LZMA2 (xz) support for Dovecot?

2012-08-02 Thread Timo Sirainen
On 2.8.2012, at 10.58, Brad Smith wrote:

> Thoughts on adding LZMA2 (xz) support via liblzma to Dovecot?

If someone sends a patch I'll add it. Apparently its API should be similar to 
zlib so probably it's just a matter of renaming some functions and such.



[Dovecot] ACL with MySQL dict => full table scans (was: v2.1.9 released)

2012-08-02 Thread Roland Rosenfeld
On Wed, 01 Aug 2012, Timo Sirainen wrote:

> I've again mostly finished reading and answering most of the mails in
> Dovecot mailing list. There are a couple annoyingly difficult / time
> consuming bugreport mails that I haven't replied to yet, but if anyone
> thinks I should have replied to something already feel free to resend
> the mail.

I'm not sure where my request was annoying or difficult, but I didn't
read an answer to it ;-)
http://www.dovecot.org/list/dovecot/2012-July/067130.html

Maybe you could have a look at it...

Tscho

Roland

-- 
Roland Rosenfeld  -  Content Delivery  -  NED  -  Technik
NetCologne Gesellschaft für Telekommunikation mbH  -  HRB 25580, AG Köln
Am Coloneum 9   50829 Köln   Tel.: +49 221 -373   Fax: +49 221 -7373
Geschäftsführer: Dr. Hans Konle (Sprecher), Karl-Heinz Zankel


Re: [Dovecot] imap(xxxxxxxx): Error: opendir(/user/xxxxxxxx/.imap) failed: No such file or directory

2012-08-02 Thread Frank Bonnet

On 08/02/2012 12:04 AM, Daniel Parthey wrote:

Timo Sirainen wrote:

On Wed, 2012-08-01 at 14:00 +0200, Frank Bonnet wrote:

where the  will probably work if you do something like:

a list "" *
b lsub "" *
c select inbox

if not, check what IMAP commands your IMAP client sends when it fails. 
http://wiki2.dovecot.org/Debugging/Rawlog

I ran it anyway , the output is below

All good, except the error didn't happen. So you'd need to look at the
IMAP traffic to see which command generates the error.

Frank, please do a plaintext connect on IMAP port 143 from your mail client
to dovecot with a changed test password and record your traffic using tcpdump
or wireshark, something like this:

tcpdump -n -s 0 -w /tmp/pcap.dat -i eth0 tcp port 143

Then view the file pcap.dat with wireshark[1], right click on the TCP connection
and select "Follow TCP Stream" from the context menu. Then you'll get the IMAP
commands and responses spoken between Thunderbird and Dovecot.

Regards
Daniel

[1] http://www.wireshark.org/


Hello

Thanks for your help.

well I did but haven't found anything interrestiing in tcpdump log ...
and the problem did not happened this morning since I have
mail_debug=no in 10-logging.conf file then restart dovecot ...

BTW if it matter the users's home directories is a link than point
to the real directory.






[Dovecot] LZMA2 (xz) support for Dovecot?

2012-08-02 Thread Brad Smith
Timo,

Thoughts on adding LZMA2 (xz) support via liblzma to Dovecot?

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] zlib plugin maildir broken ?/ Cached message size smaller than expected / with 2.1.9 patch ?

2012-08-02 Thread Robert Schetterer
Am 01.08.2012 14:58, schrieb Timo Sirainen:
> On 1.8.2012, at 15.43, Robert Schetterer wrote:
> 
 If you don't mind the messages' IMAP UIDs changing, you could give the -f 
 parameter to fix those.
>>>
>>> i will try things couldn not get more worst
>>
>> ./maildir-size-check.sh -f maildir is an unknown option...?
> 
> Oh, looks like I forgot to re-upload it after adding that option. It's there 
> now.
> 

Hi Timo, most of the Problems are fixed now
many thx for your script

, but how to avoid that in future ( Maildir filename has wrong S value )

with Ralf

you released a patch

diff -r 3599790da3d7 src/lib-storage/index/istream-mail.c
--- a/src/lib-storage/index/istream-mail.c  Wed Mar 21 14:25:12 2012 +0200
+++ b/src/lib-storage/index/istream-mail.c  Wed Mar 21 17:58:00 2012 +0200
@@ -20,6 +20,7 @@
struct mail *mail = mstream->mail;
enum mail_lookup_abort orig_lookup_abort;

+   return FALSE;
if (mstream->expected_size != (uoff_t)-1)
return TRUE;

would it be a good idea to include it in 2.1.9 for me ?
as it looks like its not in the public code ?

-- 
Best Regards
MfG Robert Schetterer