[Dovecot] quota warning error with dict

2010-07-23 Thread Daniel Luttermann
Version: Dovecot 2.0rc3

Hi,

I try to get the quota-warning.sh script working with quota/dict but I
get some errors.

The script looks like:

#!/bin/sh
PERCENT=$1
USER=$2
cat << EOF | /usr/lib/dovecot/dovecot-lda -d $USER -o 
"plugin/quota=dict:user::proxy::quota quota:noenforcing"
From: qu...@dlutt.de
Subject: quota warning

Your mailbox is now $PERCENT% full.
EOF

In 90-quota I use:

plugin {
  quota = dict:user::proxy::quota
  quota_rule = *:storage=0
}

service dict {
  unix_listener dict {
mode = 0660
user = vmail
group = vmail
  }
}

plugin {
  quota_warning = storage=90%% quota-warning 90 %u
  quota_warning2 = storage=80%% quota-warning 80 %u
}

service quota-warning {
  executable = script /usr/bin/quota-warning.sh
  user = vmail
  unix_listener quota-warning {
mode = 0660
user = vmail
group = vmail
  }
}


When a mailbox is nearly full I get this error:

Jul 24 01:08:34 tux dovecot: dict: Error: dict client: Broken handshake
Jul 24 01:08:34 tux dovecot: lda(testu...@dlutt.de): Error: 
read(/var/run/dovecot/dict) failed: Remote disconnected
Jul 24 01:08:34 tux dovecot: lda(testu...@dlutt.de): Error: Internal quota 
calculation error
Jul 24 01:08:34 tux dovecot: master: Error: service(quota-warning): child 8139 
returned error 75
Jul 24 01:18:11 tux dovecot: dict: Error: dict client: Broken handshake
Jul 24 01:18:11 tux dovecot: lda(testu...@dlutt.de): Error: 
read(/var/run/dovecot/dict) failed: Remote disconnected
Jul 24 01:18:11 tux dovecot: lda(testu...@dlutt.de): Error: Internal quota 
calculation error
Jul 24 01:18:11 tux dovecot: master: Error: service(quota-warning): child 8201 
returned error 75

Thanks.

--
Daniel



Re: [Dovecot] Unknown password scheme SSHA512

2010-07-23 Thread Patrick Westenberg

Timo Sirainen schrieb:


SHA256 requires v1.1 or later. I guess you have v1.0. And if you want SHA512, 
that requires v2.0.


Aww, you´re right. It's 1.0.15!

Thx for your fast help.

Regards
Patrick


Re: [Dovecot] Unknown password scheme SSHA512

2010-07-23 Thread Timo Sirainen
On 23.7.2010, at 23.34, Patrick Westenberg wrote:

> Jul 24 00:31:07 smtp01 dovecot: auth(default): sql(m...@jasbafliesen.de): 
> Unknown password scheme SHA256

SHA256 requires v1.1 or later. I guess you have v1.0. And if you want SHA512, 
that requires v2.0.



[Dovecot] Unknown password scheme SSHA512

2010-07-23 Thread Patrick Westenberg

Hello,

I installed dovecot via Debians apt package manager.
The passwords are stored as SHA256 hash in a PostgreSQL database.
default_pass_scheme in dovecot-sql.conf is set to SHA256.
However, smtp-auth fails.

Jul 24 00:31:07 smtp01 dovecot: auth(default): 
sql(m...@jasbafliesen.de): Unknown password scheme SHA256


Can anybody help me?

Regards
Patrick


[Dovecot] v1.2.13 released

2010-07-23 Thread Timo Sirainen
http://dovecot.org/releases/1.2/dovecot-1.2.13.tar.gz
http://dovecot.org/releases/1.2/dovecot-1.2.13.tar.gz.sig

This release fixes a bug in ACL plugin, which could be considered a security 
bug: If Maildir is used with default settings (INBOX is same as Maildir root 
dir) and user set some ACLs to INBOX, those ACLs were copied to all newly 
created mailboxes. This should have been done only for "default ACLs", but with 
Maildir the INBOX directory is the same as the default ACL directory, so this 
mixup happened. This bug exists only in v1.2.x releases.

Other fixes:

- Fixed iconv() crash when it was processing several kilobytes of
  broken continuous input. This mainly could have caused a problem
  with IMAP SEARCH. Possibly also with some Sieve checks.
- If MIME encoded-words contained line feeds, Dovecot logged
  cache corruption errors.
- mbox: Renaming mailbox under newly created dir didn't move index
  directory.
- mbox: When generating envelope to From_-line, don't append a second
  @owndomain if username already has one. 



[Dovecot] Dovecot and LDAP - virtual hosting problem

2010-07-23 Thread Pavel Dimow
Hello,

I have a small ISP and we have a dovecot for virtual mail hosting with
a postfix and openldap as backend. Now the problem is that there is
one primary domain (example.com) and many other
virtual domains with different users. When user from primary domain
logs in, he is using username as
his username (without domain part) and when user from virtual domain
logs in, he uses usern...@virtualdomain as his username. I don't know
how to make dovecot-ldap.conf to authenticate both users from the same
ldap tree. My ldap tree is organized like:

ou=people,o=example.com,dc=acme
ou=people,o=somevirtdomain.cp,dc=acme

and so on... The only one thing that comes on my mind is something
like (default domain) in dovecot.conf (if %d is empty then
%d=examle.com, othewise...) I know this option does not exist
but is just comes on my mind... Maybe some specific filter_search or
something like that?


Than you for any help in advance.


Re: [Dovecot] SSL / TLS Problem

2010-07-23 Thread Leander S.

 ofcourse - thx ;)

Am 23.07.10 22:07, schrieb Charles Marcus:

Leander S. wrote:

  Am 23.07.10 21:35, schrieb Charles Marcus:

ovecot uses %Lu (the 'L' means 'lowercase')...

^^ Where must I add this option to make it work cause that sounds like
something nice to have ...

In your user query...?




Re: [Dovecot] Shared folders issue

2010-07-23 Thread Timo Sirainen
On Fri, 2010-07-23 at 15:17 +0200, Emmanuel Gonzalez Carmona wrote:
> Hello guys,
> I have an issue with shared folders:
> 
> 1) The USERA shares his INBOX with USERB
> 2) USERB subscribes the USERA share without problems.
> 3) USERA deletes all his / or some directories from his INBOX (Trash, 
> Drafts and Sent)
> 4) USERA logouts and makes login, so dovecot recreates the folders.
> 5) USERB gains access to subscrive those folders (Trash, Drafts and Sent)

Ugh. I guess it's time for v1.2.13. Fixed:
http://hg.dovecot.org/dovecot-1.2/rev/aae3b2a12cd0




Re: [Dovecot] SSL / TLS Problem

2010-07-23 Thread Charles Marcus
Leander S. wrote:
>  Am 23.07.10 21:35, schrieb Charles Marcus:
>> ovecot uses %Lu (the 'L' means 'lowercase')...
> ^^ Where must I add this option to make it work cause that sounds like
> something nice to have ...

In your user query...?


Re: [Dovecot] SSL / TLS Problem

2010-07-23 Thread Pascal Volk
On 07/23/2010 09:46 PM Leander S. wrote:
> ^^ Where must I add this option to make it work cause that sounds like 
> something nice to have ...

See http://wiki.dovecot.org/Variables


Regards,
Pascal
-- 
The trapper recommends today:
http://kopfkrebs.de/mitarbeiter/mitarbeiter_der_woche.html


Re: [Dovecot] Go Away Message after the first successful login on proxy server

2010-07-23 Thread Timo Sirainen
I try to avoid doing any changes to v1.2 anymore that aren't important
bugfixes.

On Fri, 2010-07-23 at 06:49 -0700, Tomislav Mihalicek wrote:
> Okay i fixed this at my own system. I wonder is it possible to remove this in
> the next version of 1.2?
> 
> t.
> 
> 
> Timo Sirainen wrote:
> > 
> > On Fri, 2010-05-07 at 07:06 -0700, Tomislav Mihalicek wrote:
> > 
> >> i have a dovecot 1.2.11 and i have implementation of 2 dovecot machines,
> >> one
> >> proxy one storage part. everything is working fine, i only have one
> >> question
> >> regarding the message that should go away after the first successful
> >> login
> >> on proxy server. how to remove it on proxy server?
> > 
> > I actually removed that message completely from v2.0. It's a bit dirty
> > code. Anyway, it's probably /var/lib/dovecot/auth-success
> > or /usr/local/var/lib/dovecot/auth-success.
> > 
> > 
> > 
> > 
> 




Re: [Dovecot] dovecot director service

2010-07-23 Thread Timo Sirainen
On Fri, 2010-07-23 at 09:55 +0200, Xavier Pons wrote:
> El 22/07/2010 17:08, Timo Sirainen escribió:
> > On Thu, 2010-07-22 at 12:35 +0100, Timo Sirainen wrote:
> >> director_doveadm_port = 991
> >>
> >> Kind of annoying, but I guess I could add that.
> > Added: http://hg.dovecot.org/dovecot-2.0/rev/ab85d17947db
> >
> >
> Hi Timo,
> 
> like you say, I have added director_doveadm_port = 990 

It wasn't actually working. This fixes it:
http://hg.dovecot.org/dovecot-2.0/rev/3ef50adb7abf

> # director service port
>inet_listener {
>  port = 991
>}
> #director-doveadm service port
>inet_listener {
>  port = 990
>}
> }

This is correct.



Re: [Dovecot] SSL / TLS Problem

2010-07-23 Thread Leander S.

 Am 23.07.10 21:35, schrieb Charles Marcus:

ovecot uses %Lu (the 'L' means 'lowercase')...
^^ Where must I add this option to make it work cause that sounds like 
something nice to have ...


Re: [Dovecot] Doveadm protocol for parallel user processing

2010-07-23 Thread Timo Sirainen
On Thu, 2010-07-22 at 15:43 +0100, Timo Sirainen wrote:

> These are too invasive changes to v2.0, so I guess they'll wait until
> v2.1. Luckily there won't be any hugely destabilizing changes going into
> v2.1, so maybe v2.1.0 release won't be too many months after v2.0.0. :)

The changes weren't very invasive after all, so I just added it to v2.0
today: http://hg.dovecot.org/dovecot-2.0/rev/b60e225386bf

Also this is disabled by default, so the potential bugs happen only when
doveadm_worker_count is set to non-zero. I didn't yet write support for
authentication, but it should be pretty easy to add next week.




Re: [Dovecot] managesieve login fails

2010-07-23 Thread Leander S.



Im running Dovecont v1.2.4 - the native out of FreeBSD's ports collection.




Am 12.07.10 11:16, schrieb Stephan Bosch:

Leander S. wrote:

Hi,

when I try to make use of the managesieve capability maillog always
shows:

server dovecot: managesieve-login: Panic: file client.c: line 449
(client_set_auth_waiting): assertion failed: (client->to_auth_waiting
== NULL)
server dovecot: dovecot: child 5926 (login) killed with signal 6
(core not dumped) (ip=192.168.1.233)

... and Thunderbirds remote sieve optimizing plugin won't connect ...

What version of Dovecot and ManageSieve are you using? This sounds
like a bug that was fixed with version v0.11.11 of (Pigeonhole)
ManageSieve for Dovecot v1.2.

Regards,

Stephan.





Re: [Dovecot] SSL / TLS Problem

2010-07-23 Thread Charles Marcus
Leander S. wrote:
>  Am 23.07.10 02:59, schrieb Andrew Bruce:
>> eel free to post this to the running conversation on the list (strip my
>> email address from this email though please)
> The issue was a case sensitive typo. When Setting up your Thunderbird
> don't type in eMail Addresses & Usernames including uppercase letters!
> 
> DON'T: u...@domain.tld
> BUT therefore: u...@domain.tld

Better, when checking for valid recipients, always lowercase the input
befopre doing so.

Dovecot uses %Lu (the 'L' means 'lowercase')...

> I faced that Problem only when I was using dyndns as domain service
> provider.

Dunno about dyndns, but usernames should never be case-sensitive,
passwords always.


Re: [Dovecot] SSL / TLS Problem

2010-07-23 Thread Leander S.

 Am 23.07.10 02:59, schrieb Andrew Bruce:

eel free to post this to the running conversation on the list (strip my
email address from this email though please)
The issue was a case sensitive typo. When Setting up your Thunderbird 
don't type in eMail Addresses & Usernames including uppercase letters!


DON'T: u...@domain.tld
BUT therefore: u...@domain.tld

I faced that Problem only when I was using dyndns as domain service 
provider.


Re: [Dovecot] Dsync ignores INBOX when converting from mbox to maildir

2010-07-23 Thread Henrique Fernandes
Oh, ok.

I thought it did mirroring by the one location, even if the other location
is newer!


[]'sf.rique


On Thu, Jul 22, 2010 at 5:54 PM, Timo Sirainen  wrote:

> On 22.7.2010, at 21.11, Henrique Fernandes wrote:
>
> > location1 is mdbox:~/mdbox  and location2 is maildir:~/Maildir   Right ?
>  or
> > is backwards ? It takes location2 and convert to location1 ?
> >
> > The first guys  explain location1 to location2
> >
> > Wich one is right ? Sorry i do not have any dovecot configured right now!
>
> dsync does two way mirroring. It doesn't matter which one is location1 and
> which one location2.
>
>


Re: [Dovecot] Go Away Message after the first successful login on proxy server

2010-07-23 Thread Tomislav Mihalicek

Okay i fixed this at my own system. I wonder is it possible to remove this in
the next version of 1.2?

t.


Timo Sirainen wrote:
> 
> On Fri, 2010-05-07 at 07:06 -0700, Tomislav Mihalicek wrote:
> 
>> i have a dovecot 1.2.11 and i have implementation of 2 dovecot machines,
>> one
>> proxy one storage part. everything is working fine, i only have one
>> question
>> regarding the message that should go away after the first successful
>> login
>> on proxy server. how to remove it on proxy server?
> 
> I actually removed that message completely from v2.0. It's a bit dirty
> code. Anyway, it's probably /var/lib/dovecot/auth-success
> or /usr/local/var/lib/dovecot/auth-success.
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Go-Away-Message-after-the-first-successful-login-on-proxy-server-tp28486467p29247738.html
Sent from the Dovecot mailing list archive at Nabble.com.



[Dovecot] Shared folders issue

2010-07-23 Thread Emmanuel Gonzalez Carmona

Hello guys,
I have an issue with shared folders:

1) The USERA shares his INBOX with USERB
2) USERB subscribes the USERA share without problems.
3) USERA deletes all his / or some directories from his INBOX (Trash, 
Drafts and Sent)

4) USERA logouts and makes login, so dovecot recreates the folders.
5) USERB gains access to subscrive those folders (Trash, Drafts and Sent)

this is my namespace configuration:

...
namespace private {
   separator = /
   prefix =
   inbox = yes
   #list = yes
   #subscriptions = yes
}

namespace shared {
   separator = /
   prefix = "shared/%%u/"
   location = maildir:/maildirs/%%d/%%u/Maildir
   subscriptions = no
   list = children
}

...
any ideas?



Thanx in advance.
--

Emmanuel Gonzalez
Babel S.r.l. - http://www.babel.it 

<>

Re: [Dovecot] Problem with hard links in lda - please help

2010-07-23 Thread Timo Sirainen
On 23.7.2010, at 11.22, Fabio Ferrari wrote:

> But now the
> deliver -p FILE -d USER
> crashes, giving me a very bad segmentation fault.

Often it happens if you have a something=no setting as the first setting in 
config file. This triggers a glibc bug and crashes it. Move the setting down.



Re: [Dovecot] Problem with hard links in lda - please help

2010-07-23 Thread Fabio Ferrari
Ok, this was the problem, if I manually chown the maildirs it makes the
hardlinks.

Then, I tried to enable virtual users in postfix and dovecot, to make it
work in a more senseful environment. (I'm using passwd files)

But now the
deliver -p FILE -d USER
crashes, giving me a very bad segmentation fault.

Any ideas to debug the problem, of course no logs are written?

Fabio Ferrari

> On Tue, 2010-07-20 at 12:53 +0200, Fabio Ferrari wrote:
>> >> deliver -p  -d 
>> >> deliver -p  -d 
>> >> ...
>> >> deliver -p  -d 
>
> I noticed one thing: The created file's permissions must be the same as
> the destination maildir's. So typically the file needs to be 0600 mode.
> Also all of the users must have the same UID.
>
>
>




Re: [Dovecot] dovecot director service

2010-07-23 Thread Xavier Pons

 El 22/07/2010 17:08, Timo Sirainen escribió:

On Thu, 2010-07-22 at 12:35 +0100, Timo Sirainen wrote:

director_doveadm_port = 991

Kind of annoying, but I guess I could add that.

Added: http://hg.dovecot.org/dovecot-2.0/rev/ab85d17947db



Hi Timo,

like you say, I have added director_doveadm_port = 990 to my director 
configuration, but how

I must add the inet_listener for this port?
I have tried with:

service director {
  unix_listener login/director {
mode = 0666
  }
  fifo_listener login/proxy-notify {
mode = 0666
  }
  unix_listener director-userdb {
mode = 0666
  }
# director service port
  inet_listener {
port = 991
  }
#director-doveadm service port
  inet_listener {
port = 990
  }
}

but I get the error:

[r...@imap2 ~]# doveadm director status -a imap2:990
doveadm(root): Fatal: imap2:990 not a compatible director-doveadm socket

and the log says:
Jul 23 09:50:14 imap2 dovecot: director: Error: 
director(10.180.188.12/in): Wrong protocol in socket (director-doveadm 
vs director)


then also I have tried with:

service director-doveadm {
  inet_listener {
port = 990
  }
}

but when restart the daemon get:

doveconf: Error: service(director-doveadm): executable is empty
doveconf: Fatal: Error in configuration file 
/etc/dovecot-proxy/dovecot.conf: service(director-doveadm): executable 
is empty


How is the correct format to define the inet director-doveadm port?

thanks

Xavier