Re: [Dovecot] mailbox count folders issues

2009-11-23 Thread Nikita Koshikov
On Mon, 23 Nov 2009 11:46:35 -0500
Timo Sirainen  wrote:

> On Mon, 2009-11-23 at 09:59 +0200, Nikita Koshikov wrote:
> > With above patch applied, I got this one crash:
> > 
> > Nov 23 09:42:59 IMAP(al...@domain.com): Panic: file mail-index-sync-ext.c: 
> > line 625 (mail_index_sync_ext_hdr_update): assertion failed: 
> > (ext->hdr_offset + offset + size <= map->hdr.header_size)
> 
> Fixed: http://hg.dovecot.org/dovecot-1.2/rev/40a6a70b3146

Finally it works!!! Thanks.

> 
> Also that crash doesn't get fixed by itself, so either delete the
> virtual mailbox's dovecot.index* files or/and apply this patch:
> 
> http://hg.dovecot.org/dovecot-1.2/rev/9a8eb4d68b04
> 

My indexes are located in the memory (:INDEX=MEMORY:) so I don't apply this 
patch. If you need me to test it - please let me know.

> And I finally created 1000 mailboxes myself and tested that it actually
> works now.
> 

Again, Thanks for your work.


Re: [Dovecot] Core dumped

2009-11-23 Thread Luigi Rosa
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timo Sirainen said the following on 23/11/09 23:16:

> I guess you compiled SQL support as plugins. That's fixed in hg.

You guessed right.


Ciao,
luigi

- --
/
+--[Luigi Rosa]--
\

Of course you can't flap your arms and fly to the moon.
After a while you'd run out of air to push against.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksLcuQACgkQ3kWu7Tfl6ZR7DwCgvjCeY379xvgrWFqpUW/9x8kG
TToAnimbaJUHEEusOWq4AUjkZbRV36mH
=Gi8U
-END PGP SIGNATURE-


Re: [Dovecot] v2.0.alpha3 released

2009-11-23 Thread Luigi Rosa
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timo Sirainen said the following on 23/11/09 23:15:

>> and given an /etc directory without any dovecot subdirectory (I moved it
>> elsewere for testing purposes), is it ok that make install creates 
>> /etc/dovecot
>> without any file in it, but copy the esxample configuration file only in
>> /usr/local/share/doc/dovecot/ ?

> It's the intended behavior. Dunno if it's the best. Copying example
> config directly to /etc/dovecot/ doesn't seem such a good idea.

It would be nice to put a text file like "configuration files go here" or
something like that, or just no action at all. Or maybe a message at the end of
make install procedure.

Maybe it's me, but if I find an empty directory in /etc after an installation,
the first think I think is that something went wrong.



Ciao,
luigi

- --
/
+--[Luigi Rosa]--
\

Studio execs often come from different, non-mammalian evolutionary
chains; I think squid rather than fish came onto land and evolved,
mutated, and began running networks and studios and have kept this
fact from us.
   --J. Michael Straczynski
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksLcqAACgkQ3kWu7Tfl6ZSkuQCgxHLOSKq/rkURyF8QSCiI6k4a
kaUAoKngIR74zirf3P4ep8/MKZPAtS7w
=I/40
-END PGP SIGNATURE-


Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Timo Sirainen
On Nov 23, 2009, at 11:10 PM, Patrick Nagel wrote:

>> Ah, but that's why I had the "keep" there! The reject message of
>> course could have been nicer and said how the guy is gone but this
>> address will be read for a bit longer but anyway stop sending mail
>> here.
> 
> Oh... yeah. I never got past the "reject", I guess ;) That would
> probably be a good solution. Does 'reject' also refrain from sending
> mails to mailing lists,

No, but they get caught as bounces because they're sent from <> address and get 
dropped from the lists.

> auto-generated messages, etc., like 'vacation' does?

IIRC there are a couple of checks against that too. This is anyway basically 
the same as what happens when a user really gets deleted. I don't remember 
seeing any "user doesn't exist" bounces to mailing lists..



Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

On 2009-11-24 11:58, Timo Sirainen wrote:
> On Nov 23, 2009, at 10:54 PM, Patrick Nagel wrote:
> 
>>> Shouldn't that be more like:
>>> 
>>> reject "this guy is gone"; keep;
>> 
>> Yes, that was my first proposal, but that was also rejected harshly
>> by the other project managers. They wanted to have some "transit
>> time" in which the replacement guy would still access the leaving
>> guy's mailbox.
>> 
>> They felt that just deactivating the mailbox and rejecting mails
>> would be "rude".
> 
> Ah, but that's why I had the "keep" there! The reject message of
> course could have been nicer and said how the guy is gone but this
> address will be read for a bit longer but anyway stop sending mail
> here.

Oh... yeah. I never got past the "reject", I guess ;) That would
probably be a good solution. Does 'reject' also refrain from sending
mails to mailing lists, auto-generated messages, etc., like 'vacation' does?

Patrick.

- -- 
STAR Software (Shanghai) Co., Ltd.http://www.star-group.net/
Phone:+86 (21) 3462 7688 x 826 Fax:   +86 (21) 3462 7779

PGP key E883A005 https://stshacom1.star-china.net/keys/patrick_nagel.asc
Fingerprint:   E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAksLXMQACgkQ7yMg/OiDoAWaZgCguKuzYmEzUBhxMC1C2XzB/WLy
gJEAniwNr1m195qxpsIkxl2jNN5HLMsO
=nS3d
-END PGP SIGNATURE-


Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Timo Sirainen
On Nov 23, 2009, at 10:54 PM, Patrick Nagel wrote:

>> Shouldn't that be more like:
>> 
>> reject "this guy is gone";
>> keep;
> 
> Yes, that was my first proposal, but that was also rejected harshly by
> the other project managers. They wanted to have some "transit time" in
> which the replacement guy would still access the leaving guy's mailbox.
> 
> They felt that just deactivating the mailbox and rejecting mails would
> be "rude".

Ah, but that's why I had the "keep" there! The reject message of course could 
have been nicer and said how the guy is gone but this address will be read for 
a bit longer but anyway stop sending mail here.



Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Timo,

On 2009-11-24 11:50, Timo Sirainen wrote:
> On Nov 23, 2009, at 10:44 PM, Patrick Nagel wrote:
> 
>> Someone will probably ask why an auto reply to the same person more than
>> once a day might be necessary. This is why I needed it:
>> A project manager was leaving the company, and the contacts writing him
>> had to be informed that they should write to another address, and that
>> the address they sent their mail to would soon cease to exist. When I
>> set 'days' to 1, there was an outcry by other project managers that the
>> contacts would probably not read the auto reply on the first time, or
>> forget about it immediately, and then send more mails during the day. I
>> had a lengthy discussion involving me questioning those contacts'
>> intellect, but in the end I had to give in to a strong opposition
>> against "only one auto reply per day".
> 
> Shouldn't that be more like:
> 
> reject "this guy is gone";
> keep;

Yes, that was my first proposal, but that was also rejected harshly by
the other project managers. They wanted to have some "transit time" in
which the replacement guy would still access the leaving guy's mailbox.

They felt that just deactivating the mailbox and rejecting mails would
be "rude".

Patrick.

- -- 
STAR Software (Shanghai) Co., Ltd.http://www.star-group.net/
Phone:+86 (21) 3462 7688 x 826 Fax:   +86 (21) 3462 7779

PGP key E883A005 https://stshacom1.star-china.net/keys/patrick_nagel.asc
Fingerprint:   E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAksLWPYACgkQ7yMg/OiDoAXkfwCgrmgKFZRgrTp3lyeWWNjGQDHU
GSkAnitaSPEnupTXG2Oyckz7F2d2EjpJ
=smsY
-END PGP SIGNATURE-


Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Timo Sirainen
On Nov 23, 2009, at 10:44 PM, Patrick Nagel wrote:

> Someone will probably ask why an auto reply to the same person more than
> once a day might be necessary. This is why I needed it:
> A project manager was leaving the company, and the contacts writing him
> had to be informed that they should write to another address, and that
> the address they sent their mail to would soon cease to exist. When I
> set 'days' to 1, there was an outcry by other project managers that the
> contacts would probably not read the auto reply on the first time, or
> forget about it immediately, and then send more mails during the day. I
> had a lengthy discussion involving me questioning those contacts'
> intellect, but in the end I had to give in to a strong opposition
> against "only one auto reply per day".

Shouldn't that be more like:

reject "this guy is gone";
keep;



Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Patrick Nagel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

On 2009-11-24 00:38, Frank Cusack wrote:
> On November 23, 2009 1:19:00 PM +0100 Rene Bakkum
>  wrote:
>>Is there an option to for example
>> auto-reply on every mail that is sendto @domain.com?
>
> The part of this question that was overlooked is "on every mail".
> It would be nice if '0' days meant respond to every message.
>
> Alternatively, can I create an empty address database file that is
> non-writable (or maybe a link to /dev/zero)?

Yes, I'd also be interested in that. I tried a few things when I needed
to set up an auto reply that responds more than once a day, but couldn't
get it to work. I didn't know any other way than having an 'rm
/home/user/.dovecot.lda-dupes' as a cron job run every minute (if there
had come two mails within one minute it wouldn't have been a problem if
only the first had been answered).

Someone will probably ask why an auto reply to the same person more than
once a day might be necessary. This is why I needed it:
A project manager was leaving the company, and the contacts writing him
had to be informed that they should write to another address, and that
the address they sent their mail to would soon cease to exist. When I
set 'days' to 1, there was an outcry by other project managers that the
contacts would probably not read the auto reply on the first time, or
forget about it immediately, and then send more mails during the day. I
had a lengthy discussion involving me questioning those contacts'
intellect, but in the end I had to give in to a strong opposition
against "only one auto reply per day".

Patrick.

- -- 
STAR Software (Shanghai) Co., Ltd.http://www.star-group.net/
Phone:+86 (21) 3462 7688 x 826 Fax:   +86 (21) 3462 7779

PGP key E883A005 https://stshacom1.star-china.net/keys/patrick_nagel.asc
Fingerprint:   E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAksLVrMACgkQ7yMg/OiDoAXdAwCglwmrmlUt6QZHmKAy7tqhYbtU
B9MAnjEKatvh3PxNJySzcgTyYgtlb6DE
=5PJG
-END PGP SIGNATURE-


Re: [Dovecot] Newbee, some questions

2009-11-23 Thread Thomas Harold

On 11/23/2009 2:12 PM, /dev/rob0 wrote:

On Sun, Nov 22, 2009 at 01:55:22PM -0500, Thomas Harold wrote:

We used Postfix only for a long time (SMTP/POP3), ...


Um, no, Postfix does not serve POP3.


Thanks for catching that.  I wonder what the Solaris admin was using to 
serve up POP3 access to the mbox files?  Maybe it was qpopper, that 
sounds familiar...


(I'd have to dig back through my SSH session log files to know for sure.)


Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Timo Sirainen
On Tue, 2009-11-24 at 00:22 +0100, Alexander 'Leo' Bergolth wrote:
> If Shared/spamrep/ contains cur/, new/ and tmp/, I'd suspect that
> dovecot should display Shared/spamrep as a folder but not Shared. Why is
> Shared/ also missing the \Noselect attribute?

I suppose it's a bug. Two-level namespace prefixes haven't been tested
much. I'll see about getting it fixed.



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


Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander 'Leo' Bergolth
On 11/23/2009 11:05 PM, Timo Sirainen wrote:
> On Mon, 2009-11-23 at 22:56 +0100, Alexander 'Leo' Bergolth wrote:
>>> Also do you have
>>> a /var/spool/mail/Shared/spamrep/cur/ directory?
>> Yes:
>> # ls -ld /var/spool/mail/Shared/spamrep/cur
>> drwxrws--- 2 nobody spamrep 6 2009-11-23 16:02
>> /var/spool/mail/Shared/spamrep/cur
> 
> That's the reason this happens. Anything inside it? Probably not? Just
> rmdir it and new/ and tmp/.

Now that I removed the cur folder from Shared/spamrep, everything works
fine. But could you shed some light on this?

If Shared/spamrep/ contains cur/, new/ and tmp/, I'd suspect that
dovecot should display Shared/spamrep as a folder but not Shared. Why is
Shared/ also missing the \Noselect attribute?

Cheers,
--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax  ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria



Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander 'Leo' Bergolth
On 11/23/2009 11:05 PM, Timo Sirainen wrote:
> On Mon, 2009-11-23 at 22:56 +0100, Alexander 'Leo' Bergolth wrote:
>>> Also do you have
>>> a /var/spool/mail/Shared/spamrep/cur/ directory?
>> Yes:
>> # ls -ld /var/spool/mail/Shared/spamrep/cur
>> drwxrws--- 2 nobody spamrep 6 2009-11-23 16:02
>> /var/spool/mail/Shared/spamrep/cur
> 
> That's the reason this happens. Anything inside it? Probably not? Just
> rmdir it and new/ and tmp/.

That did it. Many thanks!

--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax  ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria



Re: [Dovecot] Core dumped (was: v2.0.alpha3 released

2009-11-23 Thread Timo Sirainen
On Sat, 2009-11-14 at 09:12 +0100, Luigi Rosa wrote:
> Installed and configured A3, fired up and activated the client. Everything was
> OK. After a couple of minute of idle, I got this:
> 
> Nov 14 09:05:29 mail dovecot: master: service(auth-worker): child 12669 killed
> with signal 11 (core dumped)

I guess you compiled SQL support as plugins. That's fixed in hg.



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


Re: [Dovecot] v2.0.alpha3 released

2009-11-23 Thread Timo Sirainen
On Sat, 2009-11-14 at 09:03 +0100, Luigi Rosa wrote:
> Given this configure command line
> 
> ./configure --with-mysql --with-ssl=openssl --sysconfdir=/etc 
> --localstatedir=/var
> 
> and given an /etc directory without any dovecot subdirectory (I moved it
> elsewere for testing purposes), is it ok that make install creates 
> /etc/dovecot
> without any file in it, but copy the esxample configuration file only in
> /usr/local/share/doc/dovecot/ ?

It's the intended behavior. Dunno if it's the best. Copying example
config directly to /etc/dovecot/ doesn't seem such a good idea.



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


Re: [Dovecot] Slow IMAP Auth

2009-11-23 Thread Timo Sirainen
On Tue, 2009-11-10 at 22:18 -0500, Jeff Duncan wrote:
> I am experiencing IMAP authentication delays when a client first 
> authenticates, or after the last auth timeout.  There are only a handful of 
> clients - less than 5 - using the server.  I am using a mysql database and I 
> have verified the PAM auth is commented out.  Other than that I can't figure 
> out what might be causing the slow authentication.  The first time a client 
> authenticates with SSL/CRAMD5 it takes almost 20 seconds.  Does anyone have 
> any suggestions?  My config and version is below:
..
>  passdb:
>driver: sql
>args: /etc/dovecot/dovecot-sql.conf
>  passdb:
>driver: sql

Well, you have two passdb sqls.. I'm not really sure what it does when
the other one doesn't have args. It anyway isn't a good idea.



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


Re: [Dovecot] Error: read(/var/run/dovecot/dict-server) failed: Remote disconnected

2009-11-23 Thread Timo Sirainen
On Tue, 2009-11-10 at 23:33 -0800, Lauryca Puyulik wrote:
> deliver(mym...@testtest.ro): Nov 11 09:07:54 Error: Internal quota 
> calculation error
> dovecot: Nov 11 09:07:54 Error: dict: /etc/dovecot/dovecot-dict-quota.conf: 
> 'username_field' missing

What does /etc/dovecot/dovecot-dict-quota.conf contain?



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


Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 22:56 +0100, Alexander 'Leo' Bergolth wrote:
> > Also do you have
> > a /var/spool/mail/Shared/spamrep/cur/ directory?
> 
> Yes:
> # ls -ld /var/spool/mail/Shared/spamrep/cur
> drwxrws--- 2 nobody spamrep 6 2009-11-23 16:02
> /var/spool/mail/Shared/spamrep/cur

That's the reason this happens. Anything inside it? Probably not? Just
rmdir it and new/ and tmp/.



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


Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Seth Mattinen

Rene Bakkum wrote:


I don't like catch-all addresses either, and I have almost never used 
them myself. But our customers seems to like them sometimes, so I can't 
ignore their wishes.


You can't do it with Sieve 'vacation'. Listing the exact address is 
required.


~Seth


Re: [Dovecot] [OT] DRBD

2009-11-23 Thread Eric Jon Rostetter

Quoting Rodolfo Gonzalez Gonzalez :


has someone worked with DRBD (http://www.drbd.org) for HA of mail storage?


Yes.


if so, does it have stability issues?


None that I've run into.


comments and experiences are thanked :)


Works great for me (two machines, sharing via DRBD, using LVM+GFS, in
active-active mode).


Thanks,
Rodolfo.



--
Eric Rostetter
The Department of Physics
The University of Texas at Austin

This message is provided "AS IS" without warranty of any kind,
either expressed or implied.  Use this message at your own risk.


Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander 'Leo' Bergolth
On 11/23/2009 09:51 PM, Timo Sirainen wrote:
> On Mon, 2009-11-23 at 21:39 +0100, Alexander 'Leo' Bergolth wrote:
>> 16 list "" "%"
>>
>> ... and dovecot returns "Shared" without \Noselect:
>>
>> * LIST (\HasChildren) "/" "Shared"
>>
>> Is there a way to tell dovecot that this is only the base of my
>> namespaces and that it should include a \Noselect attribute?
> 
> In my tests it shows \Noselect.. So something's different with you. What
> does it show if you do 1 LIST "" "Shared*"?

 8< 
1 LIST "" "Shared*"
* LIST (\HasChildren) "/" "Shared/spamrep"
* LIST (\HasNoChildren) "/" "Shared/spamrep/INBOX"
* LIST (\HasNoChildren) "/" "Shared/spamrep/ham"
* LIST (\HasNoChildren) "/" "Shared/spamrep/spam-netreport"
* LIST (\HasNoChildren) "/" "Shared/spamrep/spam"
* LIST (\HasNoChildren) "/" "Shared/spamrep/tmp"
 8< 

LIST "" "*" shows:
 8< 
[...]
* LIST (\NoInferiors \Marked) "/" "INBOX"
* LIST (\HasChildren) "/" "Shared/spamrep"
* LIST (\HasNoChildren) "/" "Shared/spamrep/INBOX"
* LIST (\HasNoChildren) "/" "Shared/spamrep/ham"
[...]
 8< 

(without Shared/)

... but LIST "" "%" shows:
 8< 
[...]
* LIST (\NoInferiors \Marked) "/" "INBOX"
* LIST (\HasChildren) "/" "Shared"
1 OK List completed.
 8< 

> Also do you have
> a /var/spool/mail/Shared/spamrep/cur/ directory?

Yes:
# ls -ld /var/spool/mail/Shared/spamrep/cur
drwxrws--- 2 nobody spamrep 6 2009-11-23 16:02
/var/spool/mail/Shared/spamrep/cur

I am using dovecot 1.2.8:
# rpm -q dovecot
dovecot-1.2.8-0_103.fc10.i386
(From ATrpms: http://atrpms.net/dist/f10/dovecot/ )

I have attached the environment captured at the end of the post-login
script.

Thanks,
--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax  ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria



Re: [Dovecot] How unimportant would be mailstore-tidy utility? :-)

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 22:41 +0100, Andrzej Adam Filip wrote:
> One more thing: I would be nice (from my perspective) to keep 
> "message file" in "unix mailbox box file" format (with one or many
> messages in the file).

That's not going to happen.

> Current "message files" in dbox mailbox contain some "binary" header and
> tail - it makes some "very simple" scripting not so simple.

There's going to be a new doveadm utility in Dovecot v2.0. Once it gets
more features, you can hopefully do all the scripting you want with it.



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


Re: [Dovecot] dovecot ignoring folder permissions on directory creation

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-16 at 13:54 +, Peter wrote:
> drwxr-xr-x 3 root   root 21 2009-11-16 13:36 /home
> drwxrwx--x 3 nobody maildir  21 2009-11-16 13:36 /home/mail
> 
> I would expect a user logging in to have their mail directory created
> automatically with the same permissions (but not necessarily the same
> group).

If the group isn't copied, what use is it to copy the group's
permissions?

I don't think Dovecot should copy the parent directory's permissions
when creating mail root dirs. It just seems too dangerous. I know some
people are using 01777 permission root directories, and that really
shouldn't be copied.

> I've tried pre-creation of /home/mail/adomain, /home/mail/adomain/auser and
> /home/mail/adomain/auser/Maildir in each case with permissions 0770 but in
> each case subsequent subdirectories and files are 0700/0600.

Pre-creation (e.g. in post-login script)
of /home/mail/adomain/auser/Maildir should work, and in my testing it
does:

~/Maildir3% ls -la
total 40
drwxrwxrwx  5 timo timo  4096 2009-11-23 16:46 ./
drwxr-xr-x 82 timo timo 12288 2009-11-23 16:41 ../
drwxrwxrwx  2 timo timo  4096 2009-11-23 16:46 cur/
-rw-rw-rw-  1 timo timo64 2009-11-23 16:46 dovecot-uidlist
-rw-r--r--  1 timo timo 8 2009-11-23 16:46 dovecot-uidvalidity
-rw-r--r--  1 timo timo 0 2009-11-23 16:46 dovecot-uidvalidity.4b0b02ad
-rw-rw-rw-  1 timo timo   412 2009-11-23 16:46 dovecot.index.log
drwxrwxrwx  2 timo timo  4096 2009-11-23 16:46 new/
drwxrwxrwx  2 timo timo  4096 2009-11-23 16:46 tmp/

Looks like the dovecot-uidvalidity* permissions aren't correct, I'll fix those.


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


Re: [Dovecot] [OT] DRBD

2009-11-23 Thread Seth Mattinen

Rodolfo Gonzalez Gonzalez wrote:

Hello all,

has someone worked with DRBD (http://www.drbd.org) for HA of mail 
storage? if so, does it have stability issues? comments and experiences 
are thanked :)




Look for thread "Dovecot + DRBD/GFS mailstore" starting 6/5/2009 on this 
list.


~Seth


Re: [Dovecot] How unimportant would be mailstore-tidy utility? :-)

2009-11-23 Thread Andrzej Adam Filip
Timo Sirainen  wrote:
> On Mon, 2009-11-23 at 22:14 +0100, Andrzej Adam Filip wrote:
>> I use dbox mailbox. In dbox-Mails folder I have message files named:
>> 1) u.99  [dbox created file name]
>> 2) 1231249011.P20963Q0M722109.shevek:2,Sa [dovecot maildir created&modified 
>> name]
>> 3) 1.:2,Sa [cyrus name, modified by dovecot maildir] 
>>[ I have used my own cyrus to maildir conversion scripts]
>
> Oh, you're talking about the maildir-dbox hybrid thing. That was
> probably a worse idea than I originally realized. v2.0 can no longer
> read it, so you need to get it converted to dbox-only-files before
> upgrading to it. Now, how exactly to do that .. I suppose I'll have to
> add some setting or some utility to v1.2.

One more thing: I would be nice (from my perspective) to keep 
"message file" in "unix mailbox box file" format (with one or many
messages in the file).

Current "message files" in dbox mailbox contain some "binary" header and
tail - it makes some "very simple" scripting not so simple.

-- 
[pl>en: Andrew] Andrzej Adam Filip : a...@onet.eu
< sam> /.ing an issue is like asking an infinite number of monkeys for
advice
  -- in #debian-devel


[Dovecot] Dovecot on Qnap ts-439

2009-11-23 Thread BeKi

Hello,

I use Xdove 1.2 on my ts-409 together with IMAP/dovecot. I like to see 
the same folder structure on my different workstation (private/work ...).


I move the mails into the folder structure I created. That works fine. 
But since I use Xdove with IMAP I have the problem that my mailclient 
loads all mails I already stored in different folders again into the 
INBOX (some mails also multiple with subfolders). These mails are 
duplicates (or multiples) because I delete them all. The mails in my 
folders are still there.


Up to now I tried different mail clients. Thunderbird 2.x/3.x, Pegasus 
4.5, Outlook Express. All behave the same way, so I think it must have 
something  to do with the server.


The times when the clients loads the mails into INBOX are not regular 
intervals. It can be a day when this happens again or one week.


Maybe one of you heard about this and can give me hints where to look for.

Which configuration files shall I post to help debug?

Thanks, Bernd


Re: [Dovecot] How unimportant would be mailstore-tidy utility? :-)

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 22:14 +0100, Andrzej Adam Filip wrote:
> I use dbox mailbox. In dbox-Mails folder I have message files named:
> 1) u.99  [dbox created file name]
> 2) 1231249011.P20963Q0M722109.shevek:2,Sa [dovecot maildir created&modified 
> name]
> 3) 1.:2,Sa [cyrus name, modified by dovecot maildir] 
>[ I have used my own cyrus to maildir conversion scripts]

Oh, you're talking about the maildir-dbox hybrid thing. That was
probably a worse idea than I originally realized. v2.0 can no longer
read it, so you need to get it converted to dbox-only-files before
upgrading to it. Now, how exactly to do that .. I suppose I'll have to
add some setting or some utility to v1.2.



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


[Dovecot] [OT] DRBD

2009-11-23 Thread Rodolfo Gonzalez Gonzalez

Hello all,

has someone worked with DRBD (http://www.drbd.org) for HA of mail 
storage? if so, does it have stability issues? comments and experiences 
are thanked :)


Thanks,
Rodolfo.


Re: [Dovecot] How unimportant would be mailstore-tidy utility? :-)

2009-11-23 Thread Andrzej Adam Filip
Timo Sirainen  wrote:
> On Mon, 2009-11-16 at 19:19 +0100, Andrzej Adam Filip wrote:
>> > I doubt you need to worry about the indexes. The messages' flag state
>> > should be stored in the maildir filenames, and I'd hope that kmail does
>> > that too.
>> 
>> How low on your list of priorities would land idea of utility 
>> "make-mailstore-tidy"? :-)
>> 
>> P.S.
>> I have "personal mail store" migrated from cyrus (by my own *ugly*
>> migration script) via maildir to dbox. I would like to convert all file
>> names to more "uniform" format before next migration I sure I will see
>> in a few years perspective :-)
>
> What exactly do you think such utility should do? 
> What filenames?

Let me explain it "by example":

I use dbox mailbox. In dbox-Mails folder I have message files named:
1) u.99  [dbox created file name]
2) 1231249011.P20963Q0M722109.shevek:2,Sa [dovecot maildir created&modified 
name]
3) 1.:2,Sa [cyrus name, modified by dovecot maildir] 
   [ I have used my own cyrus to maildir conversion scripts]

"Inconsistent" conventions for names of "email message file" is not a
very big deal after one conversion but it may lead (IMHO) to very ugly
chaos after a few conversions (after a 5-10 years of persistent use).

-- 
[pl>en: Andrew] Andrzej Adam Filip : a...@onet.eu
"Show me a good loser, and I'll show you a loser."
  -- Vince Lombardi, football coach


Re: [Dovecot] lda deliver + vpopmail

2009-11-23 Thread Timo Sirainen
On Thu, 2009-11-19 at 08:14 +0100, Stéphane Cottin wrote:
> Hi all,
> 
> I'm enjoying using dovecot deliver with qmail+vpopmail+dspam.
> It works mostly fine, I like the indexing and sieve features with dovecot 
> deliver.
> 
> I would like to get more details on trouble, the log entry is just :
> 
> "
> 2009-11-18_20:38:55.64778 delivery 50833: deferral:
> "
> 
> As you see, there no reason for the deferral. How can I make deliver more 
> verbose ?

Maybe calling deliver with -e parameter adds some text there? Anyway
deliver also logs to its own log file where it puts the reason.

> I also have a vpopmail alias issue.
> Because some domains (sadly) needs a catchall, and to keep using the useful 
> vpopmail alias features, I'm using the following ugly script :

Aliases are typically expanded by MTA. Can't qmail do that?

deliver can also do userdb lookup. If your users are stored in SQL, you
could bypass vpopmail and just do the SQL lookup directly.



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


Re: [Dovecot] How unimportant would be mailstore-tidy utility? :-)

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-16 at 19:19 +0100, Andrzej Adam Filip wrote:
> > I doubt you need to worry about the indexes. The messages' flag state
> > should be stored in the maildir filenames, and I'd hope that kmail does
> > that too.
> 
> How low on your list of priorities would land idea of utility 
> "make-mailstore-tidy"? :-)
> 
> P.S.
> I have "personal mail store" migrated from cyrus (by my own *ugly*
> migration script) via maildir to dbox. I would like to convert all file
> names to more "uniform" format before next migration I sure I will see
> in a few years perspective :-)

What exactly do you think such utility should do? What filenames?



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


Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 21:39 +0100, Alexander 'Leo' Bergolth wrote:
> 16 list "" "%"
> 
> ... and dovecot returns "Shared" without \Noselect:
> 
> * LIST (\HasChildren) "/" "Shared"
> 
> Is there a way to tell dovecot that this is only the base of my
> namespaces and that it should include a \Noselect attribute?

In my tests it shows \Noselect.. So something's different with you. What
does it show if you do 1 LIST "" "Shared*"? Also do you have
a /var/spool/mail/Shared/spamrep/cur/ directory?



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


Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander 'Leo' Bergolth
On 11/23/2009 07:27 PM, Timo Sirainen wrote:
> On Mon, 2009-11-23 at 19:19 +0100, Alexander 'Leo' Bergolth wrote:
>> Nov 23 19:10:15 strike dovecot: IMAP(leo): Namespace: type=shared, 
>> prefix=Shared/spamrep/, sep=/, inbox=no, hidden=no, list=yes, 
>> subscriptions=no
> 
> See if using type=public works better. type=shared namespace is kind of
> a special case used to access other users' mailboxes.

Yes, thanks! type=public works fine.

Another problem is that with dovecot 1.2, Thunderbird shows "Shared"
(the folder that contains all of my dynamically added namespaces) as a
real folder, not grey and italic as before.
When selecting it, the following message pops up:
"The current command did not succeed. The mail server responded:
[NONEXISTENT] Mailbox doesn't exist: Shared."

Before the dovecot update, Thunderbird didn't show Shared as a real
folder, it was greyed out and selecting it didn't cause an IMAP "SELECT"
command.

Looking at the imap traffic, thunderbird does a

16 list "" "%"

... and dovecot returns "Shared" without \Noselect:

* LIST (\HasChildren) "/" "Shared"

Is there a way to tell dovecot that this is only the base of my
namespaces and that it should include a \Noselect attribute?

Thanks,
--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax  ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria




Re: [Dovecot] Anonymous SSL Ciphers

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 12:22 -0800, Jeffrey Nikoletich wrote:
> I am having an issue with getting anonymous ssl ciphers disabled in dovecot. 
> I have googled like crazy to find the solution with no help.
..
> ssl_cipher_list: HIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3

Dovecot v2.0's default is:

ssl_cipher_list = ALL:!LOW:!SSLv2:!EXP:!aNULL

The important part for disabling anonymous ciphers is the !aNULL.



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


Re: [Dovecot] Nested folders - Thunderbird -> Dovecot (mbox) -> Ubuntu 9.04

2009-11-23 Thread Timo Sirainen
On Tue, 2009-11-17 at 12:03 +, John Moorhouse wrote:
> I'm running dovecot on an ubuntu 9.04 install, connecting via 
> thunderbird everything is working fine except for having nested folders.
> 
> I have the following set up for mail directories:-
> mail_location = mbox:/var/mail/%1n/%n:INBOX=/var/mail/%u

Create them by giving them name like "nested/folder".



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


[Dovecot] Anonymous SSL Ciphers

2009-11-23 Thread Jeffrey Nikoletich
Everyone,

I am having an issue with getting anonymous ssl ciphers disabled in dovecot. I 
have googled like crazy to find the solution with no help.

Here is my doveconf -n

# 1.2.5: /etc/dovecot.conf
# OS: Linux 2.6.18-92.el5 x86_64 CentOS release 5.2 (Final) nfs
log_path: /var/log/dovecot
ssl_cert_file: /etc/ssl/islandemail.com.wild.cert
ssl_key_file: /etc/ssl/islandemail.com.wild.key
ssl_cipher_list: HIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_greeting: Island Email - Ready.
login_process_per_connection: no
login_process_size: 512
login_processes_count: 100
login_max_processes_count: 500
login_max_connections: 1000
max_mail_processes: 5000
mail_max_userip_connections: 2000
verbose_proctitle: yes
first_valid_uid: 5000
first_valid_gid: 5000
mail_debug: yes
mmap_disable: yes
mail_nfs_storage: yes
mail_nfs_index: yes
mbox_read_locks: dotlock
mbox_write_locks: dotlock
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_process_size: 512
mail_plugins(default): mail_log
mail_plugins(imap): mail_log
mail_plugins(pop3): 
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
pop3_save_uidl(default): no
pop3_save_uidl(imap): no
pop3_save_uidl(pop3): yes
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): %v.%u
lda:
  postmaster_address: x...@x.
  mail_plugins: sieve
  log_path: /var/log/dovecot-deliver.log
  info_log_path: /var/log/dovecot-deliver.log
  auth_socket_path: /var/run/dovecot/auth-master
auth default:
  mechanisms: plain login digest-md5 cram-md5
  failure_delay: 1
  verbose: yes
  debug: yes
  debug_passwords: yes
  worker_max_count: 100
  passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/auth
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: mailowner
  group: mailowner
plugin:
  mail_log_events: delete undelete expunge copy mailbox_delete mailbox_rename

thanks in advance.

Jeff N.




Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index

2009-11-23 Thread Timo Sirainen
On Tue, 2009-11-17 at 08:58 -0600, Cliff Hayes wrote:
> I think that mbox puts all mail in one file and maildir puts each
> individual mail in its own file in a separate directory for each user.
> But the mail_location parameter is confusing to me.  Like when it was
> suggested that I add "mbox:/var/empty:" ... to me that's like saying
> "we don't use mbox ... so the mbox is the bit bucket" ... which is
> obviously not how it works.  To me "mbox:/var/spool/mail/u%" made more
> sense but was not recommended.  That's just one example.

Well, the way mail_location works is:

:[:]

So you begin with "mbox:", and the next one must be a directory
containing all non-INBOX mailboxes. But you were using POP3 so you
didn't have anything except INBOX. But you still needed a directory,
so /var/empty was one possibility. Perhaps /dev/null would have worked
too. /var/spool/mail/%u anyway was mbox file, not a directory, and that
would have just failed.

I think this is confusing only if you're thinking POP3-only access..



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


Re: [Dovecot] .temp file, public folders

2009-11-23 Thread Timo Sirainen
On Tue, 2009-11-17 at 17:43 +0100, Mayer wrote:
> dovecot 1.2.6
..
> Deliver sometimes wants to write a  .temp..some-number file in 
> the  user's home
> directory.  If the user is over quota (in his home!) he can't receive 
> mails though no mails are
> stored in his home. The user homes are on a distributed filesystem 
> (AFS). The mails are
> stored locally on the mailserver as I mentioned before.

If you're not storing mails in user's home directory, perhaps you
shouldn't even be telling Dovecot the user's home dir? It would have
been best if you had used something like:

home = /maildir/%1n/%u
mail_location = maildir:~/Maildir:LAYOUT=fs

> How can I tell deliver in the configuration to write the temp file at 
> another location ?

You can't. Either don't tell Dovecot about the user's "real home", or
upgrade to v1.2.7+ which fallbacks to reading the whole message into
memory if it can't write a temp file.

> We would like to offer public folders for work groups. Reading with imap 
> works fine.
> But I didn't find a way to tell deliver to drop mails directly in a 
> public folder.
> Should I use Sieve instead ?

I'm not sure what is the best way to do this. Anyway the important part
is that you specify the mailbox name with -m parameter (or use Sieve
script). You need to run deliver as some user .. probably create some
new "public" user that can't log in but has write access to the public
mailboxes.


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


Re: [Dovecot] mbox sync: UID inserted in the middle of mailbox

2009-11-23 Thread Timo Sirainen
On Fri, 2009-11-20 at 17:11 -0800, Ivan S wrote:
> mailserver dovecot: IMAP(x): mbox sync: UID inserted in the middle of 
> mailbox /home//mail/Sent (691 > 657, seq=473, idx_msgs=10950)
..
> I've rebuild the index file by delete the Sent item folder in .imap 
> directory, no such luck.

Are you saying this error just don't go away and it happens every time
when trying to open the mailbox, even after deleting its index files?
Could you put the mailbox through
http://dovecot.org/tools/mbox-anonymize.pl and send it to me?



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


Re: [Dovecot] NONEXISTENT status code

2009-11-23 Thread Timo Sirainen
On Fri, 2009-11-20 at 17:58 -0500, Timo Sirainen wrote:
> > NONEXISTENT
> > 
> >  The operation attempts to delete something that does not exist.
> > 
> > NONEXISTENT should be used for RENAME or DELETE (also the UID EXPUNGE)  
> > commands.  
> 
> Well, that sucks.. I'll ask Arnt if he had an actual reason for the
> above text, but I suppose I'll anyway have to modify Dovecot to
> internally separate between NONEXISTENT and NONEXISTENT_DELETE or
> something.

Fixed: http://hg.dovecot.org/dovecot-1.2/rev/3efdbaab2960



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


Re: [Dovecot] 1.2.7: recs[i]->uid < rec-> uid

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 20:08 +0100, Edgar Fuß wrote:
> > I'm interested to find out what it logs now
> Nothing.
> 
> > and if there are any user-visible errors.
> No.
> 
> It simply seems to work?!

It simply replaced assert-crash with non-crashing logging. If anything
appears to be fixed, it's nothing bug luck. (Unless I accidentally
changed the logic, but I don't think I did..)



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


Re: [Dovecot] Newbee, some questions

2009-11-23 Thread /dev/rob0
On Sun, Nov 22, 2009 at 01:55:22PM -0500, Thomas Harold wrote:
> We used Postfix only for a long time (SMTP/POP3), ...

Um, no, Postfix does not serve POP3.
-- 
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header


Re: [Dovecot] 1.2.7: recs[i]->uid < rec-> uid

2009-11-23 Thread Edgar Fuß
> I'm interested to find out what it logs now
Nothing.

> and if there are any user-visible errors.
No.

It simply seems to work?!

I've still disabled the 1.2.7 server and am only testing with my own account 
(which triggered the error). I can re-enable the server for public use if that 
helps.



Re: [Dovecot] Upgrade Dovecot 1.2.7 to 1.2.8 on OS X (10.6.2)

2009-11-23 Thread Tom Kardos
Thank you - all working now!

On Mon, 23 Nov 2009 11:15:29 -0500, Timo Sirainen  wrote:
> On Mon, 2009-11-23 at 14:01 +, Tom Kardos wrote:
> 
>>   Hi there, I've tried to update Dovecot to the latest version and have
>> come upon an error during make. Previous upgrades have all been very
easy
>> (thank you!) and it appears that the updated make script includes a
wget
>> command and unfortunately OS X does not come with wget by default (curl
>> is
>> the default). Not being completely up to speed with the whole autoconf
>> and
>> make process, I'm a little at a loss as to where to even look for
making
>> a
>> modification to use curl instead of wget - any assistance would be
>> appreciated. Thanks in advance Tom
> 
> Apparently your src/lib/unicodemap.c's timestamp is newer than
> src/lib/unicodemap.pl's? It's not in the tarball.. You should be able to
> fix this simply by:
> 
> touch src/lib/unicodemap.c
> 
> Although it's unintentional that UnicodeData.txt isn't included in the
> tarball, I'll add it there.


Re: [Dovecot] quota in SQL and static userdb

2009-11-23 Thread Anton Dollmaier

Probably with sql dict too, but I can't remember right now how exactly.



This works for us:

dict {
  quotadict = mysql:/etc/dovecot/dovecot-dict-quota.conf
}
plugin {
 quota = dict:INBOX::proxy::quotadict
 quota2 = dict:shared:%d:ns=shared.:proxy::quotadict
}


in the mysql-table, username and domain are stored in the same column


Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 19:19 +0100, Alexander 'Leo' Bergolth wrote:
> Nov 23 19:10:15 strike dovecot: IMAP(leo): Namespace: type=shared, 
> prefix=Shared/spamrep/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no

See if using type=public works better. type=shared namespace is kind of
a special case used to access other users' mailboxes.



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


Re: [Dovecot] quota in SQL and static userdb

2009-11-23 Thread Timo Sirainen
On Fri, 2009-11-20 at 21:57 +0100, Lampa wrote:
> A) passdb sql(SELECT userid AS user, pw AS password,  quota AS
> userdb_quota_rule FROM users WHERE userid = '%u') + userdb static
> (uid=500 gid=500 home=/home/mail/%d/%n allow_all_users=yes) - using
> extra fields quota with no prefetch userdb

This won't work. passdb's userdb_* fields are used only if you use
userdb prefetch.

> or
> B) passdb sql(SELECT userid AS user, pw AS password,  quota AS
> userdb_quota_rule, CONCAT('/home/mail/', domain, '/', user) AS
> userdb_home, 500 AS userdb_uid, 500 AS userdb_gid FROM users WHERE
> userid = '%u') + prefetch (eg same sql file)

This should work.

> Solution for LDA only(postfix local delivery) and for another
> IMAP/POP3 dovecot instance?

For LDA you need to add userdb sql (after the prefetch userdb) that does
the lookup.

> And how to implement domain quotas (something like user quotas using dict) ?

A shared quota between all users in a domain? That's kind of possible
with dict quota, but there's currently no way to (easily) recalculate
the quota if it gets out of sync. Anyway, you could at least do it with
file dict:

quota = dict:user::file:/var/mail/%d/dovecot-domain-quota

Probably with sql dict too, but I can't remember right now how exactly.


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


Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander 'Leo' Bergolth
On 11/23/2009 06:28 PM, Timo Sirainen wrote:
> On Mon, 2009-11-23 at 17:03 +0100, Alexander 'Leo' Bergolth wrote:
>> However now that I've upgraded to 1.2.8, I cannot create subfolders
>> anymore. The server responds with "NO Invalid mailbox name:
>> test/testsub". The hierarchy separator for the namespaces is / because I
>> am mixing maildir and mbox namespaces and list=yes.
>>
>> The details:
>> I am using a post-login script (attached) that detects all subfolders of
>> /var/spool/mail/Shared for which the current user has at least read
>> access. For every subfolder, it creates a separate namespace with the
>> prefix Shared/. The shared mailbox trees are in maildir format.
> 
> Are you setting the hierarchy separator in environment for the other
> created namespaces? It sounds like you aren't. Looking at logs with
> mail_debug=yes would verify.

Yes, I am. I am using 
  $ENV{"NAMESPACE_${nr}_SEP"}= "/";
... in the post-login script.

The debug log says:
 8< 
Nov 23 19:10:15 strike dovecot: IMAP(leo): Namespace: type=private, prefix=, 
sep=/, inbox=yes, hidden=no, list=yes, subscriptions=yes
Nov 23 19:10:15 strike dovecot: IMAP(leo): mbox: data=~/mail:INBOX=/var/mail/leo
Nov 23 19:10:15 strike dovecot: IMAP(leo): fs: root=/home/leo/mail, index=, 
control=, inbox=/var/mail/leo
Nov 23 19:10:15 strike dovecot: IMAP(leo): Namespace: type=shared, 
prefix=Shared/spamrep/, sep=/, inbox=no, hidden=no, list=yes, subscriptions=no
Nov 23 19:10:15 strike dovecot: IMAP(leo): maildir: 
data=/var/spool/mail/Shared/spamrep:CONTROL=~/Maildir/control/Shared/spamrep:INDEX=~/Maildir/index/Share
d/spamrep
Nov 23 19:10:15 strike dovecot: IMAP(leo): maildir++: 
root=/var/spool/mail/Shared/spamrep, 
index=/home/leo/Maildir/index/Shared/spamrep, 
control=/home/leo/Maildir/control/Shared/spamrep, inbox=
 8< 

Trying to create Shared/spamrep/test/testsub fails for example...

Cheers,
--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at   
fax  ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria



Re: [Dovecot] How to remove leading dots from folder names with Layout=FS

2009-11-23 Thread Timo Sirainen
On Thu, 2009-11-19 at 12:49 -0500, Tony Rutherford wrote:
> We are looking to move to Dovecot from a customized Courier
> implementation.  Our current format is maildir-like. It's basically a
> filesystem layout...hierarchies are identified by real
> directories/subdirectories.  Our folder names do have a leading dot
> and for reasons related to other systems, we do not want to change our
> format at all.The Layout=FS is very close to working for us.  The
> problem we have is the folder names are coming back with the leading
> dot to the clients.  Is there a way through configuration to have the
> leading dot removed?

No. You're doing something way too weird.



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


Re: [Dovecot] trivial documentation errata (1.2.7)

2009-11-23 Thread Timo Sirainen
On Fri, 2009-11-20 at 09:09 -0500, Frank Cusack wrote:
> The default dovecot.conf says
> 
>   # Dictionary can be used by some plugins to store key=value lists.
>   # Currently this is only used by dict quota backend.
> 
> Looks like expire uses dict as well.

Yes, and acl. Fixed.



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


Re: [Dovecot] fts squat non-english search for 2 words

2009-11-23 Thread Timo Sirainen
On Sun, 2009-11-22 at 20:35 +0700, vus...@test123.ru wrote:
> Timo, thank you for answer. Meanwhile I was trying to setup 
> horde+dovecot+search. Next step was dovecot 1.2.4 + solr 1.4. It works! Now 
> it can find 2 non-latin words.
> 1) I cannot search by substrings - neither "plane" nor "plane*" does find 
> "planet"

Try if attached patch helps?

> 2) Solr can use "plane*" to find "planet". So I think dovecot internally cuts 
> or masks metasymbols.

Yes, and I don't really like changing that. Seems like it could make
things even worse..

diff -r 6541fcc3bf54 src/plugins/fts-solr/fts-backend-solr.c
--- a/src/plugins/fts-solr/fts-backend-solr.c	Mon Nov 23 12:51:07 2009 -0500
+++ b/src/plugins/fts-solr/fts-backend-solr.c	Mon Nov 23 13:03:53 2009 -0500
@@ -157,6 +157,44 @@
 	str_append(dest, "%22");
 }
 
+static void solr_quote_http_search(string_t *dest, const char *str)
+{
+	T_BEGIN {
+		string_t *tmp = t_str_new(64);
+		const char *p;
+
+		for (p = str; *p != '\0'; p++) {
+			switch (*p) {
+			case '+':
+			case '-':
+			case '&':
+			case '|':
+			case '!':
+			case '(':
+			case ')':
+			case '{':
+			case '}':
+			case '[':
+			case ']':
+			case '^':
+			case '"':
+			case '~':
+			case '*':
+			case '?':
+			case ':':
+			case '\\':
+str_append_c(tmp, '\\');
+break;
+			}
+			str_append_c(tmp, *p);
+		}
+
+		/* always finish with a wildcard */
+		str_append_c(tmp, '*');
+		solr_connection_http_escape(solr_conn, dest, str_c(tmp));
+	} T_END;
+}
+
 static struct fts_backend *
 fts_backend_solr_init(struct mailbox *box)
 {
@@ -750,17 +788,17 @@
 			/* body only */
 			i_assert((fields[i].flags & FTS_LOOKUP_FLAG_BODY) != 0);
 			str_append(str, "body:");
-			solr_quote_http(str, fields[i].key);
+			solr_quote_http_search(str, fields[i].key);
 		} else if ((fields[i].flags & FTS_LOOKUP_FLAG_BODY) == 0) {
 			/* header only */
 			str_append(str, "hdr:");
-			solr_quote_http(str, fields[i].key);
+			solr_quote_http_search(str, fields[i].key);
 		} else {
 			/* both */
 			str_append(str, "(body:");
-			solr_quote_http(str, fields[i].key);
+			solr_quote_http_search(str, fields[i].key);
 			str_append(str, "+OR+hdr:");
-			solr_quote_http(str, fields[i].key);
+			solr_quote_http_search(str, fields[i].key);
 			str_append_c(str, ')');
 		}
 	}


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


Re: [Dovecot] fts squat non-english search for 2 words

2009-11-23 Thread Timo Sirainen
On Wed, 2009-11-18 at 00:53 +0700, vus...@test123.ru wrote:

> It looks I encoutered a bug or misconfiguration. fts_squat search for subject 
> and body works excellent for English mails. For non-English (in particular, 
> Russian) it works only when query consists of 1 word. Phrases - 2 and more 
> words - always returns nothing. Example: search for "planet" ("планета") 
> returns results, search for "Earth" ("Земля") also returns results, but 
> "planet Earth" ("планета Земля") returns nothing. But there are emails having 
> exact phrase "planet Earth". This problem occurs only for non-English 
> queries, both for search in subject and in email body.

This should fix it: http://hg.dovecot.org/dovecot-1.2/rev/6541fcc3bf54



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


Re: [Dovecot] [OT] preferred clients

2009-11-23 Thread David Jonas

On 11/21/2009 06:15 PM, Thomas wrote:


Close TB. Delete your .msf to recreate indexes. Start TB again and let
it re-index (it will take a while). Then everything should be fine. If
not do a bug report.


I submitted a bug report before I saw your post (Tested in TB3.0rc1, 
BuildID=20091121181041):


https://bugzilla.mozilla.org/show_bug.cgi?id=530551

This seems like a bug to me as multiple people are experiencing it and 
it doesn't go away unless you convince TB to reindex the folder.


Re: [Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 17:03 +0100, Alexander 'Leo' Bergolth wrote:
> However now that I've upgraded to 1.2.8, I cannot create subfolders
> anymore. The server responds with "NO Invalid mailbox name:
> test/testsub". The hierarchy separator for the namespaces is / because I
> am mixing maildir and mbox namespaces and list=yes.
> 
> The details:
> I am using a post-login script (attached) that detects all subfolders of
> /var/spool/mail/Shared for which the current user has at least read
> access. For every subfolder, it creates a separate namespace with the
> prefix Shared/. The shared mailbox trees are in maildir format.

Are you setting the hierarchy separator in environment for the other
created namespaces? It sounds like you aren't. Looking at logs with
mail_debug=yes would verify.



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


Re: [Dovecot] 1.2.7: recs[i]->uid < rec-> uid

2009-11-23 Thread Timo Sirainen
On Sun, 2009-11-22 at 23:54 +0100, Edgar Fuß wrote:
> I'm getting this Panic with some users on dovecot-1.2.7:
> 
> Panic: file maildir-uidlist.c: line 1242  
> (maildir_uidlist_records_drop_expunges): assertion failed: (recs[i]- 
>  >uid < rec->
> uid)

I'm not really sure why these are happening. I anyway changed them from
being assert-crashes to just logged errors. I'm interested to find out
what it logs now and if there are any user-visible errors.
http://hg.dovecot.org/dovecot-1.2/rev/e47eb506eebd



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


Re: [Dovecot] Override Quota with post-login scripting problem

2009-11-23 Thread Timo Sirainen
On Tue, 2009-11-10 at 12:10 +0100, Yorck Koehler wrote:
> I changed in my Postfix configuration from 
> /usr/local/libexec/dovecot/deliver to /usr/local/bin/deliver.sh and 
> created the following file (deliver.sh):
> #!/bin/sh
> 
> QUOTA_RULE='*:storage=500M'

I think this should have actually been:

export QUOTA_RULE='*:storage=500M'

> exec /usr/local/libexec/dovecot/deliver -k

But yeah, quota_rule from dovecot.conf overwrites the environment. But
you could remove it from dovecot.conf and just make sure the default
always gets set by post-login script or deliver.sh.

> I'm using Dovecot 1.2.7 since this morning (Nice work, btw.). I read in 
> the source code (deliver.c) and found out that env_clean (-k) only 
> changes the TZ/Home, if necessary. 

-k disables env_clean.



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


Re: [Dovecot] expire plugin + --exec-mail in 1.2.6 version

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 18:01 +0200, Nikita Koshikov wrote:
> On Fri, 06 Nov 2009 18:42:49 -0500
> Timo Sirainen  wrote:
> 
> > On Fri, 2009-11-06 at 10:27 +0200, Nikita Koshikov wrote:
> > > I don't understand why gdb says "no debugging symbols found" for some
> > > dovecot's executables, all binaries under /usr/libexec/dovecot have
> > > "not stripped"
> > ..
> > > (gdb) bt full
> > > #0  0xb7f88749 in ?? () from /lib/libc.so.6
> > > No symbol table info available.
> > > Cannot access memory at address 0xbf690ff8
> > 
> > Yeah, something in your system has broken gdb.. Makes the debugging
> > annoyingly difficult.

You managed to get backtraces from the other bug. What did you do
differently? Maybe you can get backtrace from this bug now too?

> I have wrote simple wrapper that removes maildirsize  if the messages
> were expunged from user's mailbox and if user has non-default quota
> value. Is there any more convenient  way to force dovecot recalculate
> quota size ? I have overview IMAP-QOUTA rfc, but seemed that it lacks
> such imap command, maybe some internal dovecot command exist?

No, there's no other way.


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


Re: [Dovecot] mailbox count folders issues

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 09:59 +0200, Nikita Koshikov wrote:
> With above patch applied, I got this one crash:
> 
> Nov 23 09:42:59 IMAP(al...@domain.com): Panic: file mail-index-sync-ext.c: 
> line 625 (mail_index_sync_ext_hdr_update): assertion failed: (ext->hdr_offset 
> + offset + size <= map->hdr.header_size)

Fixed: http://hg.dovecot.org/dovecot-1.2/rev/40a6a70b3146

Also that crash doesn't get fixed by itself, so either delete the
virtual mailbox's dovecot.index* files or/and apply this patch:

http://hg.dovecot.org/dovecot-1.2/rev/9a8eb4d68b04

And I finally created 1000 mailboxes myself and tested that it actually
works now.



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


Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Frank Cusack
On November 23, 2009 1:19:00 PM +0100 Rene Bakkum  
wrote:

   Is there an option to for example
auto-reply on every mail that is sendto @domain.com?


The part of this question that was overlooked is "on every mail".
It would be nice if '0' days meant respond to every message.

Alternatively, can I create an empty address database file that is
non-writable (or maybe a link to /dev/zero)?

-frank


Re: [Dovecot] trivial documentation errata (1.2.7)

2009-11-23 Thread Stephan Bosch

Frank Cusack wrote:


The managesieve comments are stale as well, with a reference to
sieve_storage still in there.  Or do they refer to the CMU sieve
implementation?  Anyway it is confusing.


Fixed in new ManageSieve patch for Dovecot v1.2.8

Regards,

Stephan.


Re: [Dovecot] Upgrade Dovecot 1.2.7 to 1.2.8 on OS X (10.6.2)

2009-11-23 Thread Pascal Volk
On 11/23/2009 05:15 PM Timo Sirainen wrote:
> On Mon, 2009-11-23 at 14:01 +, Tom Kardos wrote:
> 
>> …
>> (thank you!) and it appears that the updated make script includes a wget
>> command and unfortunately OS X does not come with wget by default (curl is
>> the default). …
> 
> Apparently your src/lib/unicodemap.c's timestamp is newer than
> src/lib/unicodemap.pl's? It's not in the tarball.. You should be able to
> fix this simply by:
> 
> touch src/lib/unicodemap.c

Hm, the 'trouble' was about wget in the Makefile. I should learn to
read. :-/


Regards,
Pascal
-- 
The trapper recommends today: c01dcafe.0932...@localdomain.org


Re: [Dovecot] v1.2.8 released (managesieve updated)

2009-11-23 Thread Stephan Bosch

Timo Sirainen wrote:

http://dovecot.org/releases/1.2/dovecot-1.2.8.tar.gz
http://dovecot.org/releases/1.2/dovecot-1.2.8.tar.gz.sig

I've updated the ManageSieve patch and fixed documentation issue 
reported by Frank Cusack:


http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.8-managesieve-0.11.9.diff.gz
http://www.rename-it.nl/dovecot/1.2/dovecot-1.2.8-managesieve-0.11.9.diff.gz.sig

Regards,

Stephan.



Re: [Dovecot] Upgrade Dovecot 1.2.7 to 1.2.8 on OS X (10.6.2)

2009-11-23 Thread Timo Sirainen
On Mon, 2009-11-23 at 14:01 +, Tom Kardos wrote:

>   Hi there, I've tried to update Dovecot to the latest version and have
> come upon an error during make. Previous upgrades have all been very easy
> (thank you!) and it appears that the updated make script includes a wget
> command and unfortunately OS X does not come with wget by default (curl is
> the default). Not being completely up to speed with the whole autoconf and
> make process, I'm a little at a loss as to where to even look for making a
> modification to use curl instead of wget - any assistance would be
> appreciated. Thanks in advance Tom

Apparently your src/lib/unicodemap.c's timestamp is newer than
src/lib/unicodemap.pl's? It's not in the tarball.. You should be able to
fix this simply by:

touch src/lib/unicodemap.c

Although it's unintentional that UnicodeData.txt isn't included in the
tarball, I'll add it there.



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


[Dovecot] shared mailboxes using namespaces in 1.2

2009-11-23 Thread Alexander 'Leo' Bergolth
Hi!

I've been using shared mailbox trees using maildir, unix permissions and
separate namespaces per shared tree since dovecot 1.0.

However now that I've upgraded to 1.2.8, I cannot create subfolders
anymore. The server responds with "NO Invalid mailbox name:
test/testsub". The hierarchy separator for the namespaces is / because I
am mixing maildir and mbox namespaces and list=yes.

The details:
I am using a post-login script (attached) that detects all subfolders of
/var/spool/mail/Shared for which the current user has at least read
access. For every subfolder, it creates a separate namespace with the
prefix Shared/. The shared mailbox trees are in maildir format.

If one of those namespace-prefixes is e.g. "Shared/sharedmailbox/", I am
able to create "Shared/sharedmailbox/test" but trying to create
"Shared/sharedmailbox/test/testsub" will fail with the above error. If I
set the herarchy separator to '.' even creating
"Shared/sharedmailbox/test" will fail.

Any hints?

Thanks,
--leo
-- 
e-mail   ::: Leo.Bergolth (at) wu.ac.at
fax  ::: +43-1-31336-906050
location ::: IT-Services | Vienna University of Economics | Austria



# 1.2.8: /etc/dovecot.conf
# OS: Linux 2.6.27.12-170.2.5.fc10.i686.PAE i686 Fedora release 10 (Cambridge) 
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
first_valid_uid: 100
mail_location: mbox:~/mail:INBOX=/var/mail/%u
mail_drop_priv_before_exec(default): yes
mail_drop_priv_before_exec(imap): yes
mail_drop_priv_before_exec(pop3): no
mail_executable(default): /usr/local/sbin/dovecot-post-login.pl 
/usr/libexec/dovecot/imap
mail_executable(imap): /usr/local/sbin/dovecot-post-login.pl 
/usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/imap
mail_plugin_dir(imap): /usr/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/pop3
namespace:
  type: private
  separator: /
  location: mbox:~/mail:INBOX=/var/mail/%u
  inbox: yes
  list: yes
  subscriptions: yes
lda:
  postmaster_address: postmas...@strike.wu-wien.ac.at
auth default:
  mechanisms: plain gssapi
  passdb:
driver: pam
  userdb:
driver: passwd
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix



Re: [Dovecot] expire plugin + --exec-mail in 1.2.6 version

2009-11-23 Thread Nikita Koshikov
On Fri, 06 Nov 2009 18:42:49 -0500
Timo Sirainen  wrote:

> On Fri, 2009-11-06 at 10:27 +0200, Nikita Koshikov wrote:
> > I don't understand why gdb says "no debugging symbols found" for some
> > dovecot's executables, all binaries under /usr/libexec/dovecot have
> > "not stripped"
> ..
> > (gdb) bt full
> > #0  0xb7f88749 in ?? () from /lib/libc.so.6
> > No symbol table info available.
> > Cannot access memory at address 0xbf690ff8
> 
> Yeah, something in your system has broken gdb.. Makes the debugging
> annoyingly difficult.
> 

I have wrote simple wrapper that removes maildirsize  if the messages were 
expunged from user's mailbox and if user has non-default quota value. Is there 
any more convenient  way to force dovecot recalculate quota size ? I have 
overview IMAP-QOUTA rfc, but seemed that it lacks such imap command, maybe some 
internal dovecot command exist?


Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Rene Bakkum

Thanks for all the response.


I understand the desire to have a catch-all address, I used to do it 
myself a few years ago.  But the aggravation eventually caused me to 
reevaluate whether it was worth all of the dictionary attack spam.  So 
I setup aliases in postfix for all of the addresses that I was truly 
interested in monitoring and simply "5xx unknown user" the rest of them.




I don't like catch-all addresses either, and I have almost never used 
them myself. But our customers seems to like them sometimes, so I can't 
ignore their wishes.
But if they are doing a dirctionary attack, wouldn't it just sent 1 time 
a vacation message, and next time see it already sent one today - so 
than ignoring it, unless they change their from address ofcourse.
Or are the vacation message linked to 'from' and 'to' - so if I sent an 
e-mail to r...@domain.com I get vacation message reply, but if I sent 
another mail (same from) to rene.bak...@domain.com I get another 
vacation message since it are 2 different to-addresses - even though 
they are linked to the same mailbox?


The reason I was searching for this option, is because I am migrating 
from Courier/Maildrop to Dovecot/Sieve. In maildrop I think the default 
configuration of the vacation messages are active for any address that 
was received to the mailbox, you don't specify the 'to' address. And 
since some of the customers are liking the catch-all boxes I was 
searching to be any help for them so that the migration don't cause much 
problems on their side.
But if its not possible, its not possible! It would explain why there is 
not much information to find about the subject :)


Thanks again
- Rene



Re: [Dovecot] [OT] preferred clients

2009-11-23 Thread Charles Marcus
On 11/22/2009, Jerry (ges...@yahoo.com) wrote:
> I have read at least two white papers that described Microsoft's support
> for ODF in Office 2010.

Wonder who authored them...

> Both stated that Microsoft's support was more compliant that that in
> Open Office.

I googled:

microsoft odf support 2010 better than openoffice?

and had lots of hits - all saying the exact opposite of what you claim.

> Apparently, OO has been playing fast and loose with its
> implementation for awhile now.

Ridiculous. The biggest issue has been with spreadsheets and the fact
that there was no formal documentation for handling formulas, but that
is remedied with v1.2 of the spec.

> As stated, that is in the still unreleased Office 2010. You can Google
> around for further information. I don't have the URLs in front of me at
> the moment.

I did - nothing whatsoever to support your [false] claim.

There is absolutely ZERO reason for Microsoft to have decent support for
ODF, and 100% reason for them to sabotage it.

But this is totally OT for doveoct now, so I won't reply further on list.


Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Thomas Harold

On 11/23/2009 7:19 AM, Rene Bakkum wrote:

Hello all,

I am trying to get my vacation messages to work correctly. In general it
works like how I want, and replies when a message is arived to for
example i...@domain.com, but I have some problems to get my vacation
message to work on catch-all boxes. Is there an option to for example
auto-reply on every mail that is sendto @domain.com?


As stated by Pascal, catch-all addresses are evil.  Especially when the 
spammers do a dictionary attack run against your domain (you'll get 
messages for a...@example.com, a...@example.com, a...@example.com...).


In our setup, we specify multiple addresses as:

:addresses ["na...@example.com", "na...@example.com", "na...@example.com"]

(For the few people that we allow inbound mail via multiple aliases.)

I understand the desire to have a catch-all address, I used to do it 
myself a few years ago.  But the aggravation eventually caused me to 
reevaluate whether it was worth all of the dictionary attack spam.  So I 
setup aliases in postfix for all of the addresses that I was truly 
interested in monitoring and simply "5xx unknown user" the rest of them.




Re: [Dovecot] Upgrade Dovecot 1.2.7 to 1.2.8 on OS X (10.6.2)

2009-11-23 Thread Pascal Volk
On 11/23/2009 03:35 PM Pascal Volk wrote:
> Or try the attached Patch.

Sorry, the last patch breaks wget. wget uses -o or nothing, not -O.


-- 
The trapper recommends today: beeffeed.0932...@localdomain.org
diff -r fa8a438c64ce autogen.sh
--- a/autogen.sh	Fri Nov 20 13:52:25 2009 -0500
+++ b/autogen.sh	Mon Nov 23 15:01:34 2009 +
@@ -18,7 +18,17 @@
 
 if test ! -f doc/wiki/Authentication.txt; then
   cd doc
-  wget http://www.dovecot.org/tmp/wiki-export.tar.gz
+  for _cmd in wget curl; do
+$_cmd --version >/dev/null 2>&1
+if [ $? -eq 0 ]; then
+  break
+fi
+  done
+  if [ ${_cmd} = "wget" ]; then
+$_cmd http://www.dovecot.org/tmp/wiki-export.tar.gz
+  else
+$_cmd -O http://www.dovecot.org/tmp/wiki-export.tar.gz
+  fi
   tar xzf wiki-export.tar.gz
   mv wiki-export/*.txt wiki/
   rm -rf wiki-export wiki-export.tar.gz


Re: [Dovecot] Upgrade Dovecot 1.2.7 to 1.2.8 on OS X (10.6.2)

2009-11-23 Thread Emanuele Pucciarelli
On Mon, Nov 23, 2009 at 15:35, Pascal Volk
 wrote:

> Or try the attached Patch.

I haven't tried the patch and the autogen process, but I'm pretty sure
that issuing "wget -O http://www.dovecot.org/tmp/wiki-export.tar.gz";
won't work :( -O should be used only for curl, not for wget.

Bye,

-- 
Emanuele


Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Charles Marcus
On 11/23/2009, Pascal Volk wrote:
> No, a 'Catch-all-vacation' reply is not possible.

And is a horrible idea anyway...


Re: [Dovecot] Upgrade Dovecot 1.2.7 to 1.2.8 on OS X (10.6.2)

2009-11-23 Thread Pascal Volk
On 11/23/2009 03:26 PM Emanuele Pucciarelli wrote:
> 
> Perhaps the easiest way out of this is to install wget. You can find a
> precompiled binary here:
> 

Or try the attached Patch.


Regards,
Pascal
-- 
The trapper recommends today: c01dcafe.0932...@localdomain.org
diff -r fa8a438c64ce autogen.sh
--- a/autogen.sh	Fri Nov 20 13:52:25 2009 -0500
+++ b/autogen.sh	Mon Nov 23 14:34:36 2009 +
@@ -18,7 +18,13 @@
 
 if test ! -f doc/wiki/Authentication.txt; then
   cd doc
-  wget http://www.dovecot.org/tmp/wiki-export.tar.gz
+  for _cmd in wget curl; do
+$_cmd --version >/dev/null 2>&1
+if [ $? -eq 0 ]; then
+  break
+fi
+  done
+  $_cmd -O http://www.dovecot.org/tmp/wiki-export.tar.gz
   tar xzf wiki-export.tar.gz
   mv wiki-export/*.txt wiki/
   rm -rf wiki-export wiki-export.tar.gz


Re: [Dovecot] Upgrade Dovecot 1.2.7 to 1.2.8 on OS X (10.6.2)

2009-11-23 Thread Emanuele Pucciarelli
On Mon, Nov 23, 2009 at 15:01, Tom Kardos  wrote:

>  Hi there, I've tried to update Dovecot to the latest version and have
> come upon an error during make. Previous upgrades have all been very easy
> (thank you!) and it appears that the updated make script includes a wget
> command and unfortunately OS X does not come with wget by default (curl is
> the default).

Perhaps the easiest way out of this is to install wget. You can find a
precompiled binary here:

http://www.statusq.org/archives/2008/07/30/1954/

and, although it has been tested with 10.5, I believe that it should
work with 10.6.

It should be just a matter of unzipping the file and putting the
executable somewhere in your PATH.

Bye,

-- 
Emanuele


[Dovecot] Upgrade Dovecot 1.2.7 to 1.2.8 on OS X (10.6.2)

2009-11-23 Thread Tom Kardos


  Hi there, I've tried to update Dovecot to the latest version and have
come upon an error during make. Previous upgrades have all been very easy
(thank you!) and it appears that the updated make script includes a wget
command and unfortunately OS X does not come with wget by default (curl is
the default). Not being completely up to speed with the whole autoconf and
make process, I'm a little at a loss as to where to even look for making a
modification to use curl instead of wget - any assistance would be
appreciated. Thanks in advance Tom

Re: [Dovecot] migrating from Courier

2009-11-23 Thread Charles Marcus
On 11/22/2009, Noel Butler (noel.but...@ausics.net) wrote:
> I also didn't think must of postfixadmin when I looked at it.

I'm curious what version you looked at.

2.3 is really nice imho...


Re: [Dovecot] Vacation message with Sieve

2009-11-23 Thread Pascal Volk
On 11/23/2009 01:19 PM Rene Bakkum wrote:
> Hello all,
> 
> I am trying to get my vacation messages to work correctly. In general it 
> works like how I want, and replies when a message is arived to for 
> example i...@domain.com, but I have some problems to get my vacation 
> message to work on catch-all boxes. Is there an option to for example 
> auto-reply on every mail that is sendto @domain.com?
> …
> Anyone has any pointers how to achieve this (if its possible at all)...
> 

No, a 'Catch-all-vacation' reply is not possible. A workaround may be to
list all possible addresses in the ":addresses" argument.
But do you really want to show each 'spammer¹', that you have configured
a vacation auto-reply?


Regards,
Pascal
--
1 = They use mostly faked or invalid addresses.
-- 
The trapper recommends today: decade.0932...@localdomain.org


[Dovecot] Vacation message with Sieve

2009-11-23 Thread Rene Bakkum

Hello all,

I am trying to get my vacation messages to work correctly. In general it 
works like how I want, and replies when a message is arived to for 
example i...@domain.com, but I have some problems to get my vacation 
message to work on catch-all boxes. Is there an option to for example 
auto-reply on every mail that is sendto @domain.com?


I am using Ubuntu 9.10 default packages, which are the following versions:

dovecot -n
# 1.1.11: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.31-14-server x86_64 Ubuntu 9.10 ext4

mail_plugins = cmusieve

My example file of the vacation message I use is:

require ["vacation"];
vacation
# Reply at most once a day to a same sender
:days [vacationmessage_delay_days]
:subject "Autorespond: [vacationmessage_subject]"
# List of recipient addresses which are included in the auto replying.
# If a mail's recipient is not on this list, no vacation reply is sent 
for it.

:addresses ["[userna...@[domain]"]
"[vacationmessage_message]";


I tried changing [userna...@[domain] into @[domain] or *...@[domain], but 
that is giving me errors.

Anyone has any pointers how to achieve this (if its possible at all)...

Regards,
Rene


Re: [Dovecot] Dovecot and SATA Backend

2009-11-23 Thread Joseba Torre
El Viernes 20 Noviembre 2009 a las 14:47, Mario Antonio escribió:
> Could you share how you have configured Dovecot in order to
>  achieve  replication, redundant path .?
> 
I have configured nothing on dovecot's side. We have a lot of EMC gear 
providing most of the features, maildirs in a replicated NFS share, 
and two dovecot boxes beyond a CISCO load balancer (active/passive).

If everything goes as expected, next month we'll move the indexes from 
local disks to a soft raid of two iSCSI disks; but, again, there's 
almost nothing on dovecot's side.

HTH
-- 
Joseba Torre. Vicegerencia de TICs, área de Explotación


Re: [Dovecot] Newbee, some questions

2009-11-23 Thread Thomas Harold

On 11/22/2009 12:39 PM, Spyros Tsiolis wrote:


Due to reasons beyond me (mainly my clients demanding more for their
buck / things like webmail etc.), I was forced to start searching for
(always) open source alternatives.



We used Postfix only for a long time (SMTP/POP3), back in '07 I started 
researching, built a test rig in early '08 and we switched full over to 
Postfix/Dovecot in late spring of '08.  You'll have a lot of reading 
ahead of you and I recommend registering a domain or two to use as a 
test bed on the new system before you start adding the real domains and 
repointing MX records at the new box.



1. Do multiple domain handling.


This can be done with virtual domains and users.  We found it easier to 
go with virtual users instead of system users for our multi-domain setup.


http://wiki.dovecot.org/VirtualUsers
http://wiki.dovecot.org/SystemUsers

Personally, we use PostfixAdmin (a web-based tool) along with its 
databases (in PostgreSQL) to store our virtual domains and to manage 
domains/accounts.  Our Postfix (which handles the SMTP side) and Dovecot 
(which handles the POP3/IMAP side) query this database for domain/user 
information.


We used to use a system users setup, which had the advantage (and 
disadvantage) that Fred could receive email as "f...@anyofourdomains" 
without having to do anything special.  With the virtual user setup, we 
had to put fred@ into one domain, and then setup aliases in the other 
domains that rewrote f...@otherdomain into f...@homedomain.  In the long 
run, I'm happier, because most of our users really didn't need to be 
addressable as "u...@anyofourdomains".



2. Have a centralized user base
3. Have a centralized mail repository for each user (like exchange,
only without the admin/maintenance pain that comes with it)


We store user email in Dovecot's Maildir setup, usually under:

/var/vmail/domain/user/

There are lots of sub-folders below that point specific to the MailDir 
implementation.  I personally have IMAP mailboxes with hundreds of 
thousands of messages spread across dozens of folders and a total size 
of over 2GB.



4. be able to do IMAP/POP3 and not SMTP/POP3 (or do I need all three
of them ?)


SMTP servers (postfix, sendmail) handle accepting mail from the outside 
world before handing it off to a LDA (local delivery agent) like 
Dovecot.  The SMTP server also handles taking mail from a mail client 
(submitted via SMTP) and either handing it to the LDA for local delivery 
or contacting foreign SMTP servers to deliver to other domains.


(Postfix also has an LDA component, and a POP3 component, but you can 
plug other LDA servers in like Dovecot.)


POP3/IMAP access to the mailbox location is usually the job of Dovecot.


5. Interface with things like web-based mail software (LAMP ?)


We use SquirrelMail here for our webmail.  I'm pretty sure that it talks 
to the Dovecot IMAP server in order to access the user's mailbox.  Once 
you have IMAP access to your mailboxes configured, you can use lots of 
different tools to talk to it.




Re: [Dovecot] mailbox count folders issues

2009-11-23 Thread Nikita Koshikov
On Fri, 20 Nov 2009 13:53:18 -0500
Timo Sirainen  wrote:

> On Fri, 2009-11-20 at 10:23 +0200, Nikita Koshikov wrote:
> > Nov 20 10:16:00 IMAP(al...@domain.com): Panic: file 
> > mail-transaction-log-append.c: line 31 (log_append_buffer): assertion 
> > failed: ((type & MAIL_TRANSACTION_)
> 
> Oh, missed that one: http://hg.dovecot.org/dovecot-1.2/rev/fa8a438c64ce
> 

With above patch applied, I got this one crash:

Nov 23 09:42:59 IMAP(al...@domain.com): Panic: file mail-index-sync-ext.c: line 
625 (mail_index_sync_ext_hdr_update): assertion failed: (ext->hdr_offset + 
offset + size <= map->hdr.header_size)
Nov 23 09:42:59 IMAP(al...@domain.com): Error: Raw backtrace: imap [0x80d2521] 
-> imap [0x80d2592] -> imap [0x80d1ef9] -> imap [0x80c06ef] -> 
imap(mail_index_sync_record+0x210) [0x80af010] -> 
imap(mail_index_sync_map+0x2b9) [0x80afd39] -> imap(mail_index_map+0x3c4) 
[0x80a4f34] -> imap(mail_index_sync_commit+0xc2) [0x80ad552] -> 
/usr/lib/dovecot/imap/lib20_virtual_plugin.so [0xb7deebc6] -> 
/usr/lib/dovecot/imap/lib20_virtual_plugin.so(virtual_storage_sync_init+0x71c) 
[0xb7df16ac] -> imap(mailbox_sync+0x35) [0x80975a5] -> 
imap(cmd_select_full+0x3d8) [0x8062fe8] -> imap(cmd_select+0x19) [0x8063729] -> 
imap [0x80659ac] -> imap [0x8065a53] -> imap(client_handle_input+0x2d) 
[0x8065bad] -> imap(client_input+0x5f) [0x80664ef] -> 
imap(io_loop_handler_run+0xe0) [0x80da680] -> imap(io_loop_run+0x20) 
[0x80d9b20] -> imap(main+0x5dc) [0x806ee7c] -> 
/lib/libc.so.6(__libc_start_main+0xe5) [0xb7e3c725] -> imap [0x805e2b1]
Nov 23 09:43:00 dovecot: Error: child 19671 (imap) killed with signal 6 (core 
dumped)

Gdb trace in attachment.

GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/dovecot/imap/lib10_quota_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib10_quota_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib11_imap_quota_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib11_imap_quota_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib11_trash_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib11_trash_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib20_autocreate_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib20_autocreate_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib20_expire_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib20_expire_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib20_virtual_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib20_virtual_plugin.so
Reading symbols from /usr/lib/dovecot/imap/lib20_zlib_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/imap/lib20_zlib_plugin.so
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libbz2.so.1...done.
Loaded symbols for /lib/libbz2.so.1
Reading symbols from /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/libgcc_s.so.1
Core was generated by `imap'.
Program terminated with signal 6, Aborted.
[New process 19671]
#0  0xe424 in __kernel_vsyscall ()
(gdb) bt full
#0  0xe424 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb7e50660 in raise () from /lib/libc.so.6
No symbol table info available.
#2  0xb7e51e98 in abort () from /lib/libc.so.6
No symbol table info available.
#3  0x080d2535 in default_fatal_finish (type=, status=0) at failures.c:160
backtrace = 0xb7d72a48 "imap [0x80d2521] -> imap [0x80d2592] -> imap [0x80d1ef9] -> imap [0x80c06ef] -> imap(mail_index_sync_record+0x210) [0x80af01.
#4  0x080d2592 in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=0x80ea1cc "file %s: line %d (%s): assertion failed: (%s)", 
args=0xbfd9ac24 "4x\017\bq\002") at failures.c:443
No locals.
#5  0x080d1ef9 in i_panic (format=0x80ea1cc "file %s: line %d (%s): assertion failed: (%s)") at failures.c:207
No locals.
#6  0x080c06ef in mail_index_sync_ext_hdr_update (ctx=0xbfd9ad2c, offset=2151153664, size=1, data=0xbb71f5c) at mail-index-sync-ext.c:625
map = (struct mail_index_map *) 0xa9e62b0
ext = (const struct mail_index_ext *) 0xb206000
__PRETTY_FUNCTION__ =