Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-08 Thread Michal Hlavinka
On Wednesday 08 July 2009 03:06:08 Timo Sirainen wrote:
 On Tue, 2009-07-07 at 20:29 -0400, Timo Sirainen wrote:
  On Tue, 2009-07-07 at 20:20 -0400, Timo Sirainen wrote:
   On Wed, 2009-06-24 at 15:38 +0200, Michal Hlavinka wrote:
dovecot: auth(default): gssapi(user,192.168.0.1): authn_name not
authorized
  
   Can you try what it says with these patches:
  
   http://hg.dovecot.org/dovecot-1.2/rev/4172004c1958
   http://hg.dovecot.org/dovecot-1.2/rev/a5c5a912769e
 
  With those patches you also need auth_debug=yes to get everything
  logged.

 I guess this fixes it again:
 http://hg.dovecot.org/dovecot-1.2/rev/f4ff64dd79a9

should I try it only with these 3 patches or even with the last one? 
http://hg.dovecot.org/dovecot-1.2/rev/5d9eab092e97


[Dovecot] Dovecot and ACL

2009-07-08 Thread Daniel Spannbauer

Hello,

I try to get per-mailbox-ACLs on dovecot.

So, I've modded dovecot.conf:

protocol imap {
mail_plugins = acl
}

and

plugin {
acl = vfile
}

When I telnet to dovecot an try the command capability there is 
nothing about acl.
I need acl for open-xchange so I can share Mailboxes over the 
webinterface.

Do I have to create the acl-file manually or does dovecot this automaticly?

reagrds

Daniel

--
Daniel Spannbauer Software Entwicklung
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen   Mobil +49 171 4033220
http://www.marco.de/  Email d...@marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München


Re: [Dovecot] Wrong credential caching

2009-07-08 Thread Ralf Hildebrandt
* Timo Sirainen t...@iki.fi:

 Here again it looks like the user is logging in a second later as
 Loser. Maybe the user has multiple clients? Or the client is just
 messed up and used both.

He changed it back and forth

  I think the auth cache may work case-insensitive, 
 
 It's case-sensitive.
 
 I also tried and couldn't reproduce the problem.

OK. I hate my users :)

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de



Re: [Dovecot] Unable to (un)subscribe mbox with AIX, NFS and netapp filer

2009-07-08 Thread Axel Luttgens

Le 7 juil. 09 à 18:40, Timo Sirainen a écrit :


[...]
In that case I would have used those nfs_flush_*() functions.



Good to know! Thanks for your comment,
Axel

Re: [Dovecot] mbox format and UIDVALIDITY

2009-07-08 Thread Axel Luttgens

Le 7 juil. 09 à 22:04, Timo Sirainen a écrit :


On Wed, 2009-07-01 at 17:48 +0200, Axel Luttgens wrote:

In fact, any additional mailbox is created with that unique and
persistent UIDVALIDITY of 1.


Fixed: http://hg.dovecot.org/dovecot-1.2/rev/568ddefd7c18


Many thanks!
Axel

Re: [Dovecot] System users, mbox format and global ACLs

2009-07-08 Thread Axel Luttgens

Le 8 juil. 09 à 04:53, Timo Sirainen a écrit :


[...]
http://hg.dovecot.org/dovecot-1.2/rev/f3c6cabae3af
http://hg.dovecot.org/dovecot-1.2/rev/4c8175452173
[...]
[...]http://hg.dovecot.org/dovecot-1.2/rev/bf4f542ec6df
[...]
http://hg.dovecot.org/dovecot-1.2/rev/5d1a52e8d320


Ouch!
After having spent several days on that one, I guessed it was far  
beyond me; but I still was too optimistic. ;-)


Thanks,
Axel




[Dovecot] expire plugin with 1.2 cronjob undefined symbol: capability_string

2009-07-08 Thread Robert Schetterer
Hi,
sorry if this asked twice,
i ve searched the list and found some equal posts, but couldnt
get my problem fixed with it

if running cronjob with expire ( using mysql )
i get

dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
/usr/lib/dovecot/expire-tool --test
Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
Info: Module loaded: /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so
Error: dlopen(/usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so)
failed: /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so:
undefined symbol: capability_string
Fatal: Couldn't load required plugins

someone tips how to fix it ?
perhaps problems relate to mail_location settings?

dovecot --version
1.2.rc8

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] Dovecot and ACL

2009-07-08 Thread Axel Luttgens

Le 8 juil. 09 à 09:14, Daniel Spannbauer a écrit :


Hello,

I try to get per-mailbox-ACLs on dovecot.

So, I've modded dovecot.conf:

protocol imap {
mail_plugins = acl
}

and

plugin {
acl = vfile
}

When I telnet to dovecot an try the command capability there is  
nothing about acl.
I need acl for open-xchange so I can share Mailboxes over the  
webinterface.
Do I have to create the acl-file manually or does dovecot this  
automaticly?


Shouldn't this be a matter of enabling the imap_acl plugin?
But yes, the wiki is somewhat silent, since that plugin seems to be  
mentioned only once and very briefly:

http://wiki.dovecot.org/SharedMailboxes/Shared


HTH,
Axel



Re: [Dovecot] Dovecot and ACL

2009-07-08 Thread Daniel Spannbauer



Axel Luttgens schrieb:

Le 8 juil. 09 à 09:14, Daniel Spannbauer a écrit :


Hello,

I try to get per-mailbox-ACLs on dovecot.

So, I've modded dovecot.conf:

protocol imap {
mail_plugins = acl
}

and

plugin {
acl = vfile
}

When I telnet to dovecot an try the command capability there is 
nothing about acl.
I need acl for open-xchange so I can share Mailboxes over the 
webinterface.
Do I have to create the acl-file manually or does dovecot this 
automaticly?


Shouldn't this be a matter of enabling the imap_acl plugin?
But yes, the wiki is somewhat silent, since that plugin seems to be 
mentioned only once and very briefly:

http://wiki.dovecot.org/SharedMailboxes/Shared



Hmmm, I don't have a imap_acl-Plugin.

Sorry but I forgot the Version:
Version is 1.0.rc14

dovecot -n:

# /etc/dovecot/dovecot.conf
protocols: imap imaps pop3
listen(default): *
listen(imap): *
listen(pop3): *:26
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
first_valid_uid: 100
mail_location: maildir:~/maildir
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd


Regards

Daniel





HTH,
Axel



--
Daniel Spannbauer Software Entwicklung
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen   Mobil +49 171 4033220
http://www.marco.de/  Email d...@marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München


Re: [Dovecot] expire plugin with 1.2 cronjob undefined symbol: capability_string

2009-07-08 Thread Robert Schetterer
dovecot@dovecot.org schrieb:
 Hi,
 
 this looks like one of my queued problems:
 
 On AIX I get a message that indicates missing global symbols.
 
 For example client_read_args. It is defined in src/imap/client.c but
 just linked at build time to the imap executable, while the
 expire-tool does not provide this function.
 
 Does expire-tool require the plugins quota and quota_imap at all?
 
 Is it the same issue or just another AIX specific problem I've to fix? :-)
 
 Ralf
 
 
 This is what the AIX runtime linker outputs:
 
 # /usr/local/dovecot-1.2.dev/sbin/dovecot \
 --exec-mail ext \
 /usr/local/dovecot-1.2.dev/libexec/dovecot/expire-tool \
  --test
 
 Info: Loading modules from directory:
  /usr/local/dovecot-1.2.dev/lib/dovecot/imap
 Info: Module loaded:
  /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib10_quota_plugin.so
 Error:
 dlopen(/usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so)
 failed: rtld: 0712-001 Symbol client_read_args was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol client_send_command_error was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol client_send_tagline was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol command_register was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol capability_string was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol command_unregister was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 rtld: 0712-001 Symbol client_send_line was referenced
   from module
 /usr/local/dovecot-1.2.dev/lib/dovecot/imap/lib11_imap_quota_plugin.so(),
   but a runtime definition of the symbol was not found.
 Additional errors occurred but are not reported.
 Fatal: Couldn't load required plugins
 
 
 Robert Schetterer schrieb am 08.07.2009 11:13:
 Hi,
 sorry if this asked twice,
 i ve searched the list and found some equal posts, but couldnt
 get my problem fixed with it

 if running cronjob with expire ( using mysql )
 i get

 dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
 /usr/lib/dovecot/expire-tool --test
 Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
 Info: Module loaded: /usr/lib/dovecot/modules/imap/lib01_acl_plugin.so
 Error: dlopen(/usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so)
 failed: /usr/lib/dovecot/modules/imap/lib02_imap_acl_plugin.so:
 undefined symbol: capability_string
 Fatal: Couldn't load required plugins

 someone tips how to fix it ?
 perhaps problems relate to mail_location settings?

 dovecot --version
 1.2.rc8

 

Hm, I ve read

http://dovecot.org/pipermail/dovecot/2009-June/040126.html

and used this script ( only problem to original was case sensitve
mail_plugins)

#!/bin/bash
MAIL_PLUGINS=${mail_plugins//imap_quota/}
/usr/lib/dovecot/expire-tool $1

now it runs
dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
/usr/sbin/expire-tool.sh --test
Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
Info: rob...@schetterer.com/Trash: stop, expire time in future: Wed Jul
15 10:34:39 2009

but i still have to test if there is a real delete
-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


[Dovecot] Sieve vacation with russian subject

2009-07-08 Thread Nikita Koshikov
Hello list,

I have noticed that sieve vacation action breaks some non-english letters in 
the subject.
I tested with russian language, if subject contains letters from specific 
diapason russian alphabet, the message received with unreadable subject, but 
text in the body with the same letters looks ok.
Here is example of full subject header, it contains russian alphabet:
Subject: абвгде�?жзийклмноп�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?

Maybe this headers will be usefull:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

.dovecot.sieve file looks correct, here is it:
require [vacation];
# rule:[test]
if anyof (true)
{
vacation :days 1 :addresses [u...@domain.com] :subject 
абвгдеёжзийклмнопрстуфхцчшщъыьэюя text:
Тестовое русское сообщение(Test russian message).
;
}

I'm running dovecot-1.1.16 with dovecot-sieve-1.1.6 and managesieve-0.10.6.

Please tell, is it possible to fix this ?


Re: [Dovecot] Dovecot and ACL

2009-07-08 Thread Axel Luttgens

Le 8 juil. 09 à 11:55, Daniel Spannbauer a écrit :


[...]

Hmmm, I don't have a imap_acl-Plugin.

Sorry but I forgot the Version:
Version is 1.0.rc14


Hmm, I guess you're out of luck then; from http://wiki.dovecot.org/ACL:

Dovecot v1.0 and v1.1 supports administrator-configured ACL
files. v1.2+ supports also IMAP ACL extension which allows
users to change ACLs themselves.

Are there reasons for not trying to upgrade?

Axel



Re: [Dovecot] Dovecot and ACL

2009-07-08 Thread Daniel Spannbauer



Axel Luttgens schrieb:

Le 8 juil. 09 à 11:55, Daniel Spannbauer a écrit :


[...]

Hmmm, I don't have a imap_acl-Plugin.

Sorry but I forgot the Version:
Version is 1.0.rc14


Hmm, I guess you're out of luck then; from http://wiki.dovecot.org/ACL:

Dovecot v1.0 and v1.1 supports administrator-configured ACL
files. v1.2+ supports also IMAP ACL extension which allows
users to change ACLs themselves.

Are there reasons for not trying to upgrade?


Hmmm, thats bad.
Update isn't easy. I use SuSE 10.2 on a few machines. On SuSE with RPM 
dovecot has a lot of dependencies which should alll be solved :)


I try to build a new one from SuSE 11.1 on my old system and try it to 
install.


Thanks a lot

Regards

Daniel





Axel



--
Daniel Spannbauer Software Entwicklung
marco Systemanalyse und Entwicklung GmbH  Tel   +49 8333 9233-27 Fax -11
Rechbergstr. 4 - 6, D 87727 Babenhausen   Mobil +49 171 4033220
http://www.marco.de/  Email d...@marco.de
Geschäftsführer Martin Reuter HRB 171775 Amtsgericht München


Re: [Dovecot] Problem with sieve and german umlauts

2009-07-08 Thread Robert Schetterer
Timo Sirainen schrieb:
 On Mon, 2009-06-29 at 11:04 +0200, M. Bobkiewicz wrote:
 Dear list,
 I?m running a postfix (2.5.6) / Dovecot (1.1.11) on a Centos 5.2 box. 
 I?ve written a small gui application to simply create Out of Office 
 replys with sieve. The resulting code did work with maildrop without any 
 problems. Now sieve fails when it meets any german umlauts like ä or ü. 
 It just stops compiling the scripts and complains about the missing 
 };. A simple fix is to just replace the umlauts, but that doesn?t meet 
 the expectations of my users. Is there any escape code I could use or 
 any way to place the mail text outside the script?
 
 Are you giving the characters in UTF-8? I think it should work fine. You
 could also try with the new Dovecot v1.2 Sieve plugin and its tools
 (e.g. sievec or sieve-test), even if you don't end up using them in
 prodution. It might give a better error message.
 

using horde ingo on hardy debian with 1.2 sieve
vacation has no problems with german umlauts
using

locale
LANG=de_DE.UTF-8
LC_CTYPE=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] Sieve vacation with russian subject

2009-07-08 Thread Axel Luttgens

Le 8 juil. 09 à 12:04, Nikita Koshikov a écrit :


Hello list,

I have noticed that sieve vacation action breaks some non-english  
letters in the subject.
I tested with russian language, if subject contains letters from  
specific diapason russian alphabet, the message received with  
unreadable subject, but text in the body with the same letters looks  
ok.

Here is example of full subject header, it contains russian alphabet:
Subject: абвгде�?жзийклмноп�?�?�?�?�?�? 
�?�?�?�?�?�?�?�?�?�?


Maybe this headers will be usefull:
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

.dovecot.sieve file looks correct, here is it:
require [vacation];
# rule:[test]
if anyof (true)
{
   vacation :days 1 :addresses [u...@domain.com] :subject  
абвгдеёжзийклмнопрстуфхцчшщъыьэюя  
text:
Тестовое русское сообщение(Test russian  
message).

;
}

I'm running dovecot-1.1.16 with dovecot-sieve-1.1.6 and  
managesieve-0.10.6.


Please tell, is it possible to fix this ?


I don't know whether dovecot-sieve is supposed to do the conversion  
automatically, but it is sure that an RFC822 header MUST be in US- 
ASCII (so as to be 7bit-clean).


The required encodings are described in:
http://www.rfc-editor.org/rfc/rfc2047.txt
For example, a subject header with the french word Résistance could  
be encoded as:

Subject: =?iso-8859-1?Q?R=E9sistance?=

Could you try by inserting the encoded subject line directly in the  
config file and see what gives?
On the other hand, perhaps does sieve provide the needed tools itself;  
someone?


Axel

Re: [Dovecot] expire plugin with 1.2 cronjob undefined symbol: capability_string

2009-07-08 Thread Ralf Becker
Thanks, that's it!
I've added it to the dovecot wiki:
   http://wiki.dovecot.org/Plugins/Expire


By the way:

You are using:

  #!/bin/bash
  MAIL_PLUGINS=${mail_plugins//imap_quota/}
  /usr/lib/dovecot/expire-tool $1

While mail_plugins in not defined and therefore empty it's the same
like:

  #!/bin/bash
  MAIL_PLUGINS=
  /usr/lib/dovecot/expire-tool $1

so you are not removing just imap_quota but your are removing _all_
plugins. Just for correctness :-)


Ralf


Robert Schetterer schrieb am 08.07.2009 11:57:
 
 Hm, I ve read
 
 http://dovecot.org/pipermail/dovecot/2009-June/040126.html
 
 and used this script ( only problem to original was case sensitve
 mail_plugins)
 
 #!/bin/bash
 MAIL_PLUGINS=${mail_plugins//imap_quota/}
 /usr/lib/dovecot/expire-tool $1
 
 now it runs
 dovecot -c /etc/dovecot/dovecot.conf --exec-mail ext
 /usr/sbin/expire-tool.sh --test
 Info: Loading modules from directory: /usr/lib/dovecot/modules/imap
 Info: rob...@schetterer.com/Trash: stop, expire time in future: Wed Jul
 15 10:34:39 2009
 
 but i still have to test if there is a real delete

-- 
__

 Dipl.-Inform. (FH) Ralf Becker Rechenzentrum (r/ft) der FH Trier
 (Network|Mail|Web|Firewall)   University of applied sciences
 Administrator   Schneidershof, D-54293 Trier

   Mail: beck...@fh-trier.deFon: +49 651 8103 499
Web: http://www.fh-trier.de/~beckerrFax: +49 651 8103 214
 PubKey: http://www.fh-trier.de/~beckerr Crypto: GnuPG, S/MIME
__

 Wenn Gott gewollt haette, dass E-Mail in HTML geschrieben wuerden,
 endeten Gebete traditionell mit /amen. (Tom Listen)


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Dovecot] Sieve vacation with russian subject

2009-07-08 Thread Stephan Bosch

Oops forgot a few remarks.

Axel Luttgens wrote:
I don't know whether dovecot-sieve is supposed to do the conversion 
automatically, but it is sure that an RFC822 header MUST be in US-ASCII 
(so as to be 7bit-clean).

Sieve is supposed to do the conversion implicitly, yes.


The required encodings are described in:
http://www.rfc-editor.org/rfc/rfc2047.txt
For example, a subject header with the french word Résistance could be 
encoded as:

Subject: =?iso-8859-1?Q?R=E9sistance?=

Could you try by inserting the encoded subject line directly in the 
config file and see what gives?

Hmm, that should work (for now). This is not user friendly though.

On the other hand, perhaps does sieve provide the needed tools itself; 
someone?


Read my other post for the rest of the story.

Regards,

Stephan


Re: [Dovecot] dovecot 1.2rc5 fails to authenticate user via GSSAPI

2009-07-08 Thread Michal Hlavinka
On Wednesday 08 July 2009 03:06:08 Timo Sirainen wrote:
 On Tue, 2009-07-07 at 20:29 -0400, Timo Sirainen wrote:
  On Tue, 2009-07-07 at 20:20 -0400, Timo Sirainen wrote:
   On Wed, 2009-06-24 at 15:38 +0200, Michal Hlavinka wrote:
dovecot: auth(default): gssapi(user,192.168.0.1): authn_name not
authorized
  
   Can you try what it says with these patches:
  
   http://hg.dovecot.org/dovecot-1.2/rev/4172004c1958
   http://hg.dovecot.org/dovecot-1.2/rev/a5c5a912769e
 
  With those patches you also need auth_debug=yes to get everything
  logged.

 I guess this fixes it again:
 http://hg.dovecot.org/dovecot-1.2/rev/f4ff64dd79a9

We've tested dovecot with all four available patches (it means up to date 
mech-gssapi.c ) and it wokrs. 

Thanks!


Re: [Dovecot] System users, mbox format and global ACLs

2009-07-08 Thread Axel Luttgens

Le 8 juil. 09 à 04:54, Timo Sirainen a écrit :


On Tue, 2009-07-07 at 22:53 -0400, Timo Sirainen wrote:
I had hoped no one would ever try to use ACLs with mbox format.. I  
don't

think I want to try to make it work.


Oops, forgot to delete the second sentence. I did it anyway after some
internal struggling. :)



Really sorry for having occasioned so much trouble...
As a miserable attempt to diminish my culpability: since various pages  
in the wiki explicitely mention the use of ACLs with the mbox format  
and the CONTROL setting, I first thought in all innocence that I was  
doing something wrong, then tended to believe that some slight glitch  
had been introduced with 1.2, and then...


That said, I really think it's a great thing to keep the mbox format  
on a par with the other ones[1].

Even if, of course, it comes with its limitations.

So, once again, many thanks.
Axel

[1] As Mark would say: Compatibility, compatibility ;-)

Re: [Dovecot] Sieve vacation with russian subject

2009-07-08 Thread Nikita Koshikov
On Wed, 8 Jul 2009 12:41:38 +0200
Axel Luttgens axelluttg...@swing.be wrote:

 Le 8 juil. 09 à 12:04, Nikita Koshikov a écrit :
 
  Hello list,
 
  I have noticed that sieve vacation action breaks some non-english  
  letters in the subject.
  I tested with russian language, if subject contains letters from  
  specific diapason russian alphabet, the message received with  
  unreadable subject, but text in the body with the same letters looks  
  ok.
  Here is example of full subject header, it contains russian alphabet:
  Subject: абвгде�?жзийклмноп�?�?�?�?�?�? 
  �?�?�?�?�?�?�?�?�?�?
 
  Maybe this headers will be usefull:
  MIME-Version: 1.0
  Content-Type: text/plain; charset=utf-8
  Content-Transfer-Encoding: 8bit
 
  .dovecot.sieve file looks correct, here is it:
  require [vacation];
  # rule:[test]
  if anyof (true)
  {
 vacation :days 1 :addresses [u...@domain.com] :subject  
  абвгдеёжзийклмнопрстуфхцчшщъыьэюя  
  text:
  Тестовое русское сообщение(Test russian  
  message).
  ;
  }
 
  I'm running dovecot-1.1.16 with dovecot-sieve-1.1.6 and  
  managesieve-0.10.6.
 
  Please tell, is it possible to fix this ?
 
 I don't know whether dovecot-sieve is supposed to do the conversion  
 automatically, but it is sure that an RFC822 header MUST be in US- 
 ASCII (so as to be 7bit-clean).
 
 The required encodings are described in:
   http://www.rfc-editor.org/rfc/rfc2047.txt
 For example, a subject header with the french word Résistance could  
 be encoded as:
   Subject: =?iso-8859-1?Q?R=E9sistance?=
 
 Could you try by inserting the encoded subject line directly in the  
 config file and see what gives?

This made a trick, I have tried variant with =?UTF-8?B? - that worked for me, 
but this is not user way.
I think, the best way will be to exlain my users not to put non-english 
characters in the subject.

 On the other hand, perhaps does sieve provide the needed tools itself;  
 someone?
 
 Axel

Thanks everyone for replies.


[Dovecot] Optimal quota method for SQL

2009-07-08 Thread Tom Sommer
Hi,

I just installed 1.2.0 and I'm gonna set up some quota on my vitual users.

I' ve got dovecot set up as LDA, and currently I'm using the dict-mysql
method described for 1.2.0, but it's not really working at all.

Am I correct in assuming that with this method I can define the quota
limit in my dict (sql field)?

This is my current config:

dict {
  quotadict = mysql:/etc/dovecot-dict-sql.conf
}

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

protocol lda {
mail_plugins = quota
.
}

I want quota to be disabled unless otherwise specified in my SQL database.

// Tom




Re: [Dovecot] Dovecot and ACL

2009-07-08 Thread Mario Antonio


Daniel,

Dovecot v1.0 and v1.1 supports administrator-configured ACL files.
v1.2+ supports also IMAP ACL extension which allows users to change ACLs
themselves.
http://wiki.dovecot.org/ACL

I think to share mailboxes in OPen-Xchange, you will need Version 1.2
(IMap ACL extension)

An Alternate way using Soft Links:
http://wiki.dovecot.org/SharedMailboxes/Symlinks

Regards,

Mario Antonio

Daniel Spannbauer wrote:

Hello,

I try to get per-mailbox-ACLs on dovecot.

So, I've modded dovecot.conf:

protocol imap {
mail_plugins = acl
}

and

plugin {
acl = vfile
}

When I telnet to dovecot an try the command capability there is 
nothing about acl.
I need acl for open-xchange so I can share Mailboxes over the 
webinterface.
Do I have to create the acl-file manually or does dovecot this 
automaticly?


reagrds

Daniel






Re: [Dovecot] Dovecot-1.1.15 panics

2009-07-08 Thread Mike Abbott

Either there's a bit stranger bug


It appears to be related to the readdir()-returns-EINVAL issue.   
Fixing that stopped the assertion from failing.


There is still lots of noise in the log though.  The attached perl  
script just sends and retrieves mail over and over:
$ ./dere.pl --iterations 1000 --sendfor 3 --server mailhost.my.domain  
--sender a...@b.c --username user1 --password test

[...]
Pid 24307 iteration 74 at Wed Jul  8 08:17:38 2009
Sent 738 message(s)
INBOX contains 698 message(s)

Pid 24307 iteration 75 at Wed Jul  8 08:17:48 2009
Sent 626 message(s)
INBOX contains 725 message(s)

When run against a Mac OS X server with dovecot-1.1.16 and dovecot's  
deliver via postfix, there are lots of errors and warnings.  See the  
attached log.  Are these normal?


Thanks.

#!/usr/bin/perl

# Deliver and retrieve mail.  Stress test.

use strict;
use Net::SMTP;
use Net::IMAP::Simple;
use Email::Simple;
use Getopt::Long;

sub usage()
{
	die EOT;
Usage: $0 [options] parameters
Options:
	--iterations count	number of iterations
	--sendfor seconds	send messages for this many seconds
	--verbose		verbose
Parameters:
	--server host		SMTP/IMAP server
	--sender addr		e-mail address of sender
	--password pass		IMAP password of username
	--username name		username of recipient (userna...@server)
EOT
}

my %opts;
GetOptions(\%opts,
'iterations=i',
'password=s',
'sender=s',
'sendfor=i',
'server=s',
'username=s',
'verbose',
) || usage();

usage() unless defined $opts{password};
usage() unless defined $opts{sender};
$opts{sendfor} = 2 unless defined $opts{sendfor};
usage() unless defined $opts{server};
usage() unless defined $opts{username};

my $iteration = 0;
while (!defined($opts{iterations}) || ++$iteration = $opts{iterations}) {
	print Pid $$ iteration $iteration at  . scalar(localtime) . \n;
	send_messages($iteration);
	get_messages();
	print \n;
}

sub send_messages()
{
	my $iteration = shift;

	my $smtp = Net::SMTP-new($opts{server})
		or die(Can't connect to SMTP server \$opts{server}\: $!\n);

	my $start_time = time;
	my $counter = 0;
	do {
		++$counter;
		my $message = EOT;
Subject: $0 pid $$, iteration $iteration, counter $counter
From: $opts{sender}
To: $opts{usernam...@$opts{server}
Content-type: text/plain; charset=US-ASCII

STOPPING BY WOODS ON A SNOWY EVENING

		ROBERT FROST

Whose woods these are I think I know.
His house is in the village, though;
He will not see me stopping here
To watch his woods fill up with snow.

My little horse must think it queer
To stop without a farmhouse near
Between the woods and frozen lake
The darkest evening of the year.

He gives his harness bells a shake
To ask if there is some mistake.
The only other sound's the sweep
Of easy wind and downy flake.

The woods are lovely, dark, and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep.
EOT
		print Sending pid $$, iter $iteration, count $counter\n if $opts{verbose};

		$smtp-mail($opts{sender})
			or die(SMTP mail from $opts{sender}: $!\n);
		$smtp-to($opts{usernam...@$opts{server})
			or die(SMTP rcpt to $opts{username}: $!\n);
		$smtp-data($message)
			or die(SMTP data: $!\n);
	} while ($start_time + $opts{sendfor}  time);

	$smtp-quit() or die(SMTP quit: $!\n);

	print Sent $counter message(s)\n;
}

sub get_messages()
{
	my $imap = Net::IMAP::Simple-new($opts{server})
		or die(Can't connect to IMAP server \$opts{server}\: $Net::IMAP::Simple::errstr\n);
	$imap-login($opts{username}, $opts{password})
		or die(IMAP login $opts{username} $opts{password}:  . $imap-errstr . \n);
	my $nm = $imap-select(INBOX)
		or die(IMAP select INBOX:  . $imap-errstr . \n);
	print INBOX contains $nm message(s)\n;
	for (my $i = 1; $i = $nm; ++$i) {
		my $seen = $imap-seen($i) ? Old : New;
		my $header = $imap-top($i)
			or die(IMAP top $i:  . $imap-errstr . \n);
		my $es = Email::Simple-new(join '', @$header);
		printf $seen [%05d] %s\n, $i, $es-header(Subject)
			if $opts{verbose};
		my $message = $imap-get($i)
			or die(IMAP get $i:  . $imap-errstr . \n);
		if ($opts{verbose}) {
			print for @$message;
		}

		$imap-delete($i)
			or die(IMAP delete $i:  . $imap-errstr . \n);
	}

	$imap-quit()
		or die(IMAP quit:  . $imap-errstr . \n);
}






dovecot-errors.log
Description: Binary data




Re: [Dovecot] Optimal quota method for SQL

2009-07-08 Thread Timo Sirainen

On Jul 8, 2009, at 8:39 AM, Tom Sommer wrote:

I' ve got dovecot set up as LDA, and currently I'm using the dict- 
mysql

method described for 1.2.0, but it's not really working at all.


dovecot -n? Log output with mail_debug=yes when saving messages?


Am I correct in assuming that with this method I can define the quota
limit in my dict (sql field)?


Quota limits are defined in quota_rule setting. You can have your  
userdb override the global one.



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


Looks ok. This should track quota, but have any limits for it. For  
users that need quota just override the quota_rule.


I want quota to be disabled unless otherwise specified in my SQL  
database.


I suppose you're using userdb sql?


[Dovecot] Mailbox to maildir conversion

2009-07-08 Thread Klaus Rueschstroer
Hi,

how i transfer  the Tag's in the mbox File's  ( X-Keywords: $label1) in
the maildir structure



With best regards

Klaus Rueschstroer


Re: [Dovecot] problem with convert-tool: Invalid mailbox name

2009-07-08 Thread Ezequiel Alfíe
Additional information:

I'm having the same problem with dovecot-1.2-0.rc6.1

On Wed, Jul 8, 2009 at 1:25 AM, Ezequiel Alfíeeal...@gmail.com wrote:
 Hello everyone.

 I'm having a problem with convert-tool while trying to convert mbox
 folders to maildir.

 I'm running dovecot-1.1.16 on Centos 5.3

 If the user has subfolders, convert-tool fails saying:

 Mailbox conversion: Couldn't create mailbox sub/folder3: Invalid mailbox 
 name

 However, if I ran the convert-tool with the same arguments and same
 folders with dovecot 1.1.11 on Ubuntu 9.04 it works fine.

 Any pointers for troubleshooting this?

 Thanks in advance,

 Ezequiel



[Dovecot] getting Apple Mail and dovecot/IMAP to co-operate

2009-07-08 Thread Jim Reid
Hi. I've been fighting a losing battle to get Apple Mail and dovecot  
to play nice. When dovecot is told to use mbox-style mailboxes, it's  
not possible to create child mailboxes. Apple Mail whines The IMAP  
command “CREATE” failed with server error: Mailbox doesn't allow  
inferior mailboxes.. I've looked through the documentation, the wiki  
and searched the mail archives without finding a solution. Can anyone  
help?


I've tried (and failed) to get a hybrid maildir/mbox setup to work  
like that shown on http://wiki.dovecot.org/Namespaces. When that gets  
plugged into dovecot.conf, Apple Mail blocks, with the Activity window  
saying waiting for login or something like that, even though a valid  
imaps connection and login has been established.


There's nothing getting logged by dovecote for both of these problems,  
even when syslog is turned all the way to debug priority.


Here's the current configuration info:

shaun# dovecot -n
# 1.1.16: /usr/local/etc/dovecot.conf
# OS: FreeBSD 7.2-RELEASE amd64  ufs
base_dir: /var/run/dovecot/
syslog_facility: local4
protocols: imaps
listen: *, [::]
ssl_cert_file: /usr/local/etc/ssl/certs/dovecot.pem
ssl_key_file: /usr/local/etc/ssl/private/dovecot.pem
ssl_cipher_list: ALL:!LOW:!SSLv2
login_dir: /var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
login_max_processes_count: 8
login_max_connections: 32
max_mail_processes: 32
mail_privileged_group: mail
mail_location: mbox:/mail/imap/%u:INBOX=/var/mail/%u
mail_debug: yes
mbox_write_locks: fcntl
auth default:
  mechanisms: cram-md5
  verbose: yes
  debug: yes
  passdb:
driver: pam
  passdb:
driver: passwd-file
args: /usr/local/etc/dovecot-md5
  userdb:
driver: passwd
shaun# dovecot --version
1.1.16



Re: [Dovecot] getting Apple Mail and dovecot/IMAP to co-operate

2009-07-08 Thread Timo Sirainen
On Wed, 2009-07-08 at 17:58 +0100, Jim Reid wrote:
 Hi. I've been fighting a losing battle to get Apple Mail and dovecot  
 to play nice. When dovecot is told to use mbox-style mailboxes, it's  
 not possible to create child mailboxes. Apple Mail whines The IMAP  
 command “CREATE” failed with server error: Mailbox doesn't allow  
 inferior mailboxes.. I've looked through the documentation, the wiki  
 and searched the mail archives without finding a solution. Can anyone  
 help?

If you want to create e.g. sub/box, start from nothing. Don't create
sub. Give the mailbox name as sub/box. The sub then can't have
messages, but it can have other child mailboxes.

 I've tried (and failed) to get a hybrid maildir/mbox setup to work  
 like that shown on http://wiki.dovecot.org/Namespaces. When that gets  
 plugged into dovecot.conf, Apple Mail blocks, with the Activity window  
 saying waiting for login or something like that, even though a valid  
 imaps connection and login has been established.

I don't really know about that. What kind of a namespace configuration
exactly did you use?


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] getting Apple Mail and dovecot/IMAP to co-operate

2009-07-08 Thread Jim Reid

On 8 Jul 2009, at 18:08, Timo Sirainen wrote:


On Wed, 2009-07-08 at 17:58 +0100, Jim Reid wrote:

Hi. I've been fighting a losing battle to get Apple Mail and dovecot
to play nice. When dovecot is told to use mbox-style mailboxes, it's
not possible to create child mailboxes. Apple Mail whines The IMAP
command “CREATE” failed with server error: Mailbox doesn't allow
inferior mailboxes.. I've looked through the documentation, the wiki
and searched the mail archives without finding a solution. Can anyone
help?


If you want to create e.g. sub/box, start from nothing. Don't create
sub. Give the mailbox name as sub/box. The sub then can't have
messages, but it can have other child mailboxes.


Thanks for the quick response Timo. Sadly, your suggestion doesn't  
look as if it'll work because there are many non-empty parent  
mailboxes that have to get shifted to the new dovecot server. ie There  
are messages in sub as well as sub/box: too many to move to sub/ 
whatever. And there are many of these sorts of folders too. Some  
mailboxes are even more deeply nested with subfolders: sub/box1/box2  
where sub/box1 holds messages. Looks like an all-mbox solution isn't  
going to be viable at all. Oh well.



I've tried (and failed) to get a hybrid maildir/mbox setup to work
like that shown on http://wiki.dovecot.org/Namespaces. When that gets
plugged into dovecot.conf, Apple Mail blocks, with the Activity  
window
saying waiting for login or something like that, even though a  
valid

imaps connection and login has been established.


I don't really know about that. What kind of a namespace configuration
exactly did you use?


Here's the last one I tried before hitting a dead end. There were  
various combinations of settings for the prefix, hidden and list  
variables that were tried unsuccessfully before that.


###namespace private {
###  separator = /
###  #prefix = #mbox/
###  location = mbox:INBOX=/var/mail/%u
###  inbox = yes
###  #hidden = yes
###  list = no   # for v1.1+
###}
###namespace private {
###  separator = /
###  prefix =
###  location = maildir:/mail/imap/$u:LAYOUT=fs
###  inbox = no
###  list = yes
###}




Re: [Dovecot] getting Apple Mail and dovecot/IMAP to co-operate

2009-07-08 Thread Timo Sirainen
On Wed, 2009-07-08 at 18:33 +0100, Jim Reid wrote:
 Thanks for the quick response Timo. Sadly, your suggestion doesn't  
 look as if it'll work because there are many non-empty parent  
 mailboxes that have to get shifted to the new dovecot server. ie There  
 are messages in sub as well as sub/box: too many to move to sub/ 
 whatever. And there are many of these sorts of folders too. Some  
 mailboxes are even more deeply nested with subfolders: sub/box1/box2  
 where sub/box1 holds messages. Looks like an all-mbox solution isn't  
 going to be viable at all. Oh well.

Right, in that case you can't use FS layout. But you could use e.g.
Maildir++ layout:

mail_location = mbox:~/mail:LAYOUT=maildir++

Then the mailboxes get created like:

~/mail/.sub
~/mail/.sub.box

  I don't really know about that. What kind of a namespace configuration
  exactly did you use?
 
 Here's the last one I tried before hitting a dead end. There were  
 various combinations of settings for the prefix, hidden and list  
 variables that were tried unsuccessfully before that.
 
 ###namespace private {
 ###  separator = /
 ###  #prefix = #mbox/
 ###  location = mbox:INBOX=/var/mail/%u

This is a broken location setting. It's missing the mbox root directory.

 ###  inbox = yes
 ###  #hidden = yes
 ###  list = no   # for v1.1+
 ###}

It should be list=yes, otherwise mailboxes aren't visible to client.
Probably hidden=yes too so it won't confuse other clients.

 ###namespace private {
 ###  separator = /
 ###  prefix =

Two namespaces can't have the same prefix. You commented out in the
first one, so that doesn't work. If you wanted Dovecot to somehow
automatically figure out what mailboxes are maildir and what are mboxes,
that's not possible yet.

 ###  location = maildir:/mail/imap/$u:LAYOUT=fs

There's no such thing as $u. I guess meant %u.

 ###  inbox = no
 ###  list = yes
 ###}



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Problem with 1.2 and sieve: failed with unsuccessful implicit keep

2009-07-08 Thread Timo Sirainen
On Wed, 2009-07-08 at 19:37 +0200, Julien Danjou wrote:

 Jul  8 18:47:51 prometheus dovecot: deliver(j...@danjou.info):
 mkdir_parents_chown(danjou.info/jd/) failed: Permission denied
 (euid=8(mail) egid=8(mail))

The problem is this. It tries to create a non-existing directory, but
can't because of permission problems. Although this may be misleading,
because you're not using absolute paths in the user's home (mail?)
directory. I'd fix that first. Maybe this problem goes away after that
too.

 Jul  8 18:47:51 prometheus dovecot: deliver(j...@danjou.info): copy:
 i_stream_read() failed: No such file or directory
 Jul  8 18:47:51 prometheus dovecot: deliver(j...@danjou.info): sieve:
 msgid=?
 1186f9b5-0529-4622-8f4a-58462f9a4...@svr-exchange.siege.ldlc.com:
 failed to store into mailbox 'INBOX': Internal error occurred. Refer
  to server log for more information. [2009-07-08 18:47:51]
 Jul  8 18:47:51 prometheus dovecot: deliver(j...@danjou.info): read(mail,
 uid=1) failed: Permission denied

All this is a result from the first error.


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Problem with 1.2 and sieve: failed with unsuccessful implicit keep

2009-07-08 Thread Timo Sirainen
On Wed, 2009-07-08 at 13:46 -0400, Timo Sirainen wrote:
 On Wed, 2009-07-08 at 19:37 +0200, Julien Danjou wrote:
 
  Jul  8 18:47:51 prometheus dovecot: deliver(j...@danjou.info):
  mkdir_parents_chown(danjou.info/jd/) failed: Permission denied
  (euid=8(mail) egid=8(mail))
 
 The problem is this. It tries to create a non-existing directory, but
 can't because of permission problems. Although this may be misleading,
 because you're not using absolute paths in the user's home (mail?)
 directory. I'd fix that first. Maybe this problem goes away after that
 too.

http://hg.dovecot.org/dovecot-1.2/rev/6d7f6ea02e17 makes it log the
current directory in the above error message when the path is relative.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Problem with 1.2 and sieve: failed with unsuccessful implicit keep

2009-07-08 Thread Julien Danjou
At 1247075539 time_t, Timo Sirainen wrote:
 http://hg.dovecot.org/dovecot-1.2/rev/6d7f6ea02e17 makes it log the
 current directory in the above error message when the path is relative.

Ok, that helps to see what's wrong, thanks:

Jul  8 20:50:16 prometheus dovecot: deliver(j...@danjou.info):
mkdir_parents_chown(danjou.info/jd/) in directory /var/spool/postfix
failed: Permission denied (euid=8(mail) egid=8(mail))
Jul  8 20:50:16 prometheus dovecot: deliver(j...@danjou.info): copy:
i_stream_read() failed: No such file or directory

Of course, that fails.

The thing is that danjou.info/jd/ is the homedir of the user (returned
by SQL), and as you saw in my dovecot.conf, there's nothing like
/var/spool/postfix for mail_location:

mail_location = maildir:/var/mail/vmail/%h 

/var/spool/postfix is probably the directory where postfix starts
dovecot, since it's the home for postfix user.

I smell (did not dig into the code) that there's a chdir() to
mail_location that is missing for a reason I don't know.

(FWIW, I know have 4 mails in Postfix queue on 4 differents account stuck,
whereas I still receive others mail without any problems (since I read you ;-).

Cheers,
-- 
Julien Danjou
// ᐰ jul...@danjou.info   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// This is the end of my signature.


signature.asc
Description: Digital signature


Re: [Dovecot] Problem with 1.2 and sieve: failed with unsuccessful implicit keep

2009-07-08 Thread Timo Sirainen
On Wed, 2009-07-08 at 21:03 +0200, Julien Danjou wrote:
 At 1247075539 time_t, Timo Sirainen wrote:
  http://hg.dovecot.org/dovecot-1.2/rev/6d7f6ea02e17 makes it log the
  current directory in the above error message when the path is relative.
 
 Ok, that helps to see what's wrong, thanks:
 
 Jul  8 20:50:16 prometheus dovecot: deliver(j...@danjou.info):
 mkdir_parents_chown(danjou.info/jd/) in directory /var/spool/postfix
 failed: Permission denied (euid=8(mail) egid=8(mail))
 Jul  8 20:50:16 prometheus dovecot: deliver(j...@danjou.info): copy:
 i_stream_read() failed: No such file or directory
 
 Of course, that fails.
 
 The thing is that danjou.info/jd/ is the homedir of the user (returned
 by SQL),

Make your SQL query return absolute path for home dir.

 I smell (did not dig into the code) that there's a chdir() to
 mail_location that is missing for a reason I don't know.

It's not supposed to chdir to mail_location. It's supposed to chdir to
home dir.


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] Problem with 1.2 and sieve: failed with unsuccessful implicit keep

2009-07-08 Thread Julien Danjou
At 1247082407 time_t, Timo Sirainen wrote:
 let the bug? The idea is anyway that you return
 home=/var/mail/vmail/danjou.info/jd and set
 
 mail_location = maildir:%h
 
 That makes much more sense to me. I've considered making it an error to
 return relative home dirs from userdb, but that might break some setups
 that are actually working right..

Like mine. I don't think this is *bad* since it's, AFAIK, Dovecot
only use in homedir to expand %h. Or do I miss another point?

 Well, I guess there's some confusion about what a home dir is.. With
 Dovecot the home dir is always what userdb returns as the home dir.
 Dovecot doesn't care about /etc/passwd at all, unless your userdb is
 passwd. So Dovecot doesn't know/care that deliver is run as mail user,
 it doesn't care what /etc/passwd contains for the mail user.

Okay, sorry for the confusion. I don't know why I though it was doing
some chdir() in a part of mail_location, which has no sense.

  where as mail_location is /var/mail/vmail/%h.
  And almost all the mails (except the couples of ones I mentionned) are
  delivered and still delivered currently.
 
 It's probably the large mails that cause the problem. Dovecot writes
 them to a temporary file under home directory.

OK, that would explains everything actually, depending on what you call
home directory. :-) If it's the user's home, it really has no sense
since nowhere it returns something with /var/spool/postfix.

Well, anyway, I changed my setup to return absolute path and it seems to
work, the mails got delivered.

I really suggest you[1] rather try to reproduce and fix the bug, or
really disallow relative path in home directory since it's seems
partly-broken, or maybe only for large file (your theory :).

[1] Yeah, I know, it's easy to say... :-)

Cheers,
-- 
Julien Danjou
// ᐰ jul...@danjou.info   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// I'm no superman.


signature.asc
Description: Digital signature


Re: [Dovecot] Problem with 1.2 and sieve: failed with unsuccessful implicit keep

2009-07-08 Thread Timo Sirainen
On Wed, 2009-07-08 at 22:11 +0200, Julien Danjou wrote:
 Like mine. I don't think this is *bad* since it's, AFAIK, Dovecot
 only use in homedir to expand %h. Or do I miss another point?

Home directory may also be used for other things, although mainly only
when Sieve is enabled.

 I really suggest you[1] rather try to reproduce and fix the bug, or
 really disallow relative path in home directory since it's seems
 partly-broken, or maybe only for large file (your theory :).

I don't really know what to do about this. I don't think Dovecot should
waste time always checking that directories exist when it's not
necessary. Checking and preventing relative paths might be a
possibility, but I don't really want to break existing setups.

The improved error message will hopefully be enough for now. :)



signature.asc
Description: This is a digitally signed message part