Re: [Dovecot] About "Status" to the header

2009-04-09 Thread Timo Sirainen
On Apr 10, 2009, at 2:41 AM,
wrote:



Does dovecot add the X-UIDL header to a new message?


No. But it can use them.



Re: [Dovecot] About "Status" to the header

2009-04-09 Thread ogu_yo
Hi,

Thank you for your reply.
It helped me a lot.

Can I ask you one more thing?
Does dovecot add the X-UIDL header to a new message?

Thanks in advance.

Regards,
Yoko
 

--- Karsten Br将」ckelmann  wrote:

> On Thu, 2009-04-09 at 21:29 +0900,
> ogu...@yahoo.co.jp wrote:
> > 
> > I'd like to know about "Status" to the header on
> dovecot.
> > I can see the "Status" to the header in
> > /var/spool/mail/user
> > if I check mail by using mutt, but I cannot see
> "Status" to
> > the header if I check mail by using evolution,
> thunderbird etc.  
> > 
> > - /var/spool/mail/user
> > --
> > To: t...@test.example.com
> > Subject: test
> > Status: RO
> 
> The Status header isn't actually part of the email
> itself, but part of
> the IMAP server internal meta data, added by
> Dovecot.
> 
> This one means the mail is Seen (R) and non-Recent
> (O).
> 
> Your MUA won't see other headers neither, like
> X-Status, X-Keywords,
> X-UID or X-IMAPbase.
> 
>   guenther
> 
> 
> -- 
> char
>
*t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
> main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for
> (i=0;i (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){
> putchar(t[s]);h=m;s=0; }}}
> 
> 


--
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/


[Dovecot] Dovecot crash

2009-04-09 Thread Wolfgang . Friebel
tonight dovecot 1.2beta4 crashed for the first time with an assertion 
failed. See attached log file. Around that time nobody was logged in into 
dovecot and there were no other mail deliveries going on.


The mail in question should have been delivered to three recipients, one 
got the mail, the two others not.


There is unfortunately no core dump file. I have attached the dovecot -n 
output as well.


--
Wolfgang Friebel   Deutsches Elektronen-Synchrotron DESY
Phone/Fax:  +49 33762 77372/216Platanenallee 6
Mail: Wolfgang.Friebel AT desy.de  D-15738 Zeuthen  Germany

log
Description: Binary data


[Dovecot] Can virtual mailboxes created automatically?

2009-04-09 Thread Xueron Nee
Hi,

I set a virtual namespace, and for new users, there is no root dir for
it.

namespace private {
separator   = /
prefix  = virtual/
location= virtual:~/Maildir/virtual
list= no
hidden  = yes
}

log:
Apr 10 12:14:41 mail dovecot: IMAP(te...@xueron.com):Namespace 'virtual/': 
virtual: Root mail directory doesn't 
exist:/home/data/te...@xueron.com/Maildir/virtual
Apr 10 12:14:41 mail dovecot: Fatal: IMAP(te...@xueron.com): Namespace 
initialization failed
Apr 10 12:15:27 mail dovecot: Killed with signal 15 (by pid=26918 uid=0 
code=kill)


How to do then?

Thanks :)

--
Xueron Nee
http://www.xueron.com



Re: [Dovecot] uw-imap to dovecot conversion tool

2009-04-09 Thread Timo Sirainen

On Apr 9, 2009, at 9:49 PM, Joe Pruett wrote:

also, this assumes you'll change the uid format in dovecot.conf to  
%08Xu%08Xv so that it doesn't change uids for the clients.


If you're upgrading to Dovecot v1.1, you could also write the POP3  
UIDLs to dovecot-uidlist and it wouldn't matter which pop3_uidl_format  
is used.




Re: [Dovecot] sieve rules in MySQL?

2009-04-09 Thread Stephan Bosch

David Reid schreef:

Has anyone looked at modifying the sieve implementation to allow the use
of MySQl to store the rules?


This is a two-sided problem:

- The ManageSieve server needs to store, retrieve and activate the 
scripts in the SQL database.

- The Sieve plugin needs access to the SQL database to retrieve scripts.

There are future plans to provide an alternative to the filesystem 
storage method that ManageSieve currently uses. However, the Sieve 
plugin then also needs to use this storage method. To obtain a unified 
implementation, I intend to integrate the Sieve plugin and ManageSieve 
packages into one monolithic package for Sieve support. This is for the 
more distant future however.


Regards,

--
Stephan Bosch
step...@rename-it.nl


[Dovecot] uw-imap to dovecot conversion tool

2009-04-09 Thread Joe Pruett
i plan to switch from uw-imap to dovecot on a couple of medium size 
systems and so i have written a conversion tool that understands mbox, 
mbx, and mix formats and converts to maildir format while trying to 
preserve uid info, keywords, flags, subscriptions, etc.  it seems to work 
for me now, but i think some feedback might be useful.  so if you have 
some files to convert and a desire to help, please download:


http://www.spiretech.com/~joey/uw2dovecot.pl

and give it a whirl.  it is very sparsely documented right now but isn't 
too complex (yet).  by default it copies your INBOX, mail dir, and 
.mailboxlist info into Maildir.  those filenames can be overridden.  i'd 
suggest running with -v to watch it.  it requires that the output 
directory not exist before starting, so it should be relatively safe.  it 
doesn't lock any files being read, so an active uw tree could cause it 
indigestion.  it's designed to run while inbound mail and pop/imap 
sessions are disabled.  it uses a few perl modules, but they should be 
standard with perl itself.  it does do everthing in memory, so the largest 
message you have will be in memory and will be duplicated at least once as 
crlf pairs are replaced.  also, this assumes you'll change the uid format 
in dovecot.conf to %08Xu%08Xv so that it doesn't change uids for the 
clients.


send feedback to me and cc the list if you feel it useful.  once this is 
stable, i'll get it added to the dovecot wiki.


Re: [Dovecot] deliver vs lda

2009-04-09 Thread Timo Sirainen
On Fri, 2009-04-10 at 07:57 +1000, Noel Butler wrote:
> > > protocol imap {
> > >   ...
> > >   log_path = /var/log/imap.log
> > >   info_log_path = /var/log/imap.log
> > > }
> > > protocol pop3 {
> > >   ...
> > >   log_path = /var/log/pop3.log
> > >   info_log_path = /var/log/pop3.log
> > > }
> > > 
> > 
> > 
> > In using this as above, you can omit info_log_path  entries (unless you
> > want it to go to yet another file altogether)
> 
> 
> Actually scrap that,  I don't think any of that would work, it would use
> first match , the imap file for everything

Yeah. That's because all logging is done via master process, which logs
only to one log (and one info log). deliver however doesn't log via
master, because it's executed independently.


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


Re: [Dovecot] deliver vs lda

2009-04-09 Thread Noel Butler
On Fri, 2009-04-10 at 07:42, Noel Butler wrote:

> On Thu, 2009-04-09 at 21:57, Charles Marcus wrote:
> 
> 
> 
> > 
> > Extrapolating from your example, I can I just:
> > 
> > protocol imap {
> >   ...
> >   log_path = /var/log/imap.log
> >   info_log_path = /var/log/imap.log
> > }
> > protocol pop3 {
> >   ...
> >   log_path = /var/log/pop3.log
> >   info_log_path = /var/log/pop3.log
> > }
> > 
> 
> 
> In using this as above, you can omit info_log_path  entries (unless you
> want it to go to yet another file altogether)


Actually scrap that,  I don't think any of that would work, it would use
first match , the imap file for everything



Re: [Dovecot] deliver vs lda

2009-04-09 Thread Noel Butler
On Thu, 2009-04-09 at 21:57, Charles Marcus wrote:



> 
> Extrapolating from your example, I can I just:
> 
> protocol imap {
>   ...
>   log_path = /var/log/imap.log
>   info_log_path = /var/log/imap.log
> }
> protocol pop3 {
>   ...
>   log_path = /var/log/pop3.log
>   info_log_path = /var/log/pop3.log
> }
> 


In using this as above, you can omit info_log_path  entries (unless you
want it to go to yet another file altogether)



Re: [Dovecot] Panic: file mempool-system.c: line 104

2009-04-09 Thread Timo Sirainen
On Thu, 2009-04-09 at 23:41 +0300, Martins Lazdans wrote:
> Ok, I unblocked that IP and started Dovecot with
> `ulimit -c unlimited && /usr/local/sbin/dovecot`
> and will see if that IP will return.
> 
> But I totally forgot I am using Google`s perf-tools
> (http://code.google.com/p/google-perftools/) tcmalloc library. Maybe
> that library is faulty and/or incompatible with Dovecot?

Oh. That's the most likely reason. Dovecot is using this non-standard
malloc_usable_size() function. Maybe your tcmalloc doesn't implement it
and instead glibc's version gets called which then causes it to return
wrong size. And the reason why this happens rarely is because Dovecot
rarely calls realloc() function.

> export LD_PRELOAD=/usr/local/lib/libtcmalloc.so

Dovecot clears environment when calling child processes, so I think this
only makes it use the tcmalloc in dovecot master process.

Anyway if you want to keep using tcmalloc, you could comment out
HAVE_MALLOC_USABLE_SIZE from config.h and reinstall.


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


Re: [Dovecot] Panic: file mempool-system.c: line 104

2009-04-09 Thread Martins Lazdans
Ok, I unblocked that IP and started Dovecot with
`ulimit -c unlimited && /usr/local/sbin/dovecot`
and will see if that IP will return.

But I totally forgot I am using Google`s perf-tools
(http://code.google.com/p/google-perftools/) tcmalloc library. Maybe
that library is faulty and/or incompatible with Dovecot?

export LD_PRELOAD=/usr/local/lib/libtcmalloc.so

However, I switched to Google`s libtcmalloc.so long time ago, and
dovecot was running just fine until today. MySQL, nginx, clamav and
postfix are running fine too.

P.S.
I got 2 responses from you :)

Timo Sirainen wrote:
> Run ulimit -c unlimited before starting dovecot. And note that several
> distributions override the ulimit if you use /etc/init.d/dovecot to
> start it. Newer Dovecot versions (v1.1.9+) say at startup if core dumps
> are disabled.
> 
> On Thu, 2009-04-09 at 23:06 +0300, Martins Lazdans wrote:
>> No, there is no core dumps. I believe I can somehow enable to dump core?
>>
>> Timo Sirainen wrote:
>>> On Thu, 2009-04-09 at 21:37 +0300, Martins Lazdans wrote:
 Hello!

 I have used Dovecot for more than a year without problems, but today it
 just crashed with this message:

 dovecot: Apr 09 21:23:38 Panic: file mempool-system.c: line 104
 (pool_system_realloc): assertion failed: (old_size == (size_t)-1 || mem
 == NULL || old_size <= malloc_usable_size(mem))
>>> Did Dovecot happen to write a core file somewhere? Should be in base_dir
>>> (e.g. /var/run/dovecot)? A gdb backtrace would be helpful.
>>>

-- 
Martins Lazdans


Re: [Dovecot] Panic: file mempool-system.c: line 104

2009-04-09 Thread Timo Sirainen
Run ulimit -c unlimited before starting dovecot. And note that several
distributions override the ulimit if you use /etc/init.d/dovecot to
start it. Newer Dovecot versions (v1.1.9+) say at startup if core dumps
are disabled.

On Thu, 2009-04-09 at 23:06 +0300, Martins Lazdans wrote:
> No, there is no core dumps. I believe I can somehow enable to dump core?
> 
> Timo Sirainen wrote:
> > On Thu, 2009-04-09 at 21:37 +0300, Martins Lazdans wrote:
> >> Hello!
> >>
> >> I have used Dovecot for more than a year without problems, but today it
> >> just crashed with this message:
> >>
> >> dovecot: Apr 09 21:23:38 Panic: file mempool-system.c: line 104
> >> (pool_system_realloc): assertion failed: (old_size == (size_t)-1 || mem
> >> == NULL || old_size <= malloc_usable_size(mem))
> > 
> > Did Dovecot happen to write a core file somewhere? Should be in base_dir
> > (e.g. /var/run/dovecot)? A gdb backtrace would be helpful.
> > 
> 


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


Re: [Dovecot] Panic: file mempool-system.c: line 104

2009-04-09 Thread Martins Lazdans
No, there is no core dumps. I believe I can somehow enable to dump core?

Timo Sirainen wrote:
> On Thu, 2009-04-09 at 21:37 +0300, Martins Lazdans wrote:
>> Hello!
>>
>> I have used Dovecot for more than a year without problems, but today it
>> just crashed with this message:
>>
>> dovecot: Apr 09 21:23:38 Panic: file mempool-system.c: line 104
>> (pool_system_realloc): assertion failed: (old_size == (size_t)-1 || mem
>> == NULL || old_size <= malloc_usable_size(mem))
> 
> Did Dovecot happen to write a core file somewhere? Should be in base_dir
> (e.g. /var/run/dovecot)? A gdb backtrace would be helpful.
> 

-- 
Martins Lazdans


Re: [Dovecot] Panic: file mempool-system.c: line 104

2009-04-09 Thread Timo Sirainen
On Thu, 2009-04-09 at 21:37 +0300, Martins Lazdans wrote:
> Hello!
> 
> I have used Dovecot for more than a year without problems, but today it
> just crashed with this message:
> 
> dovecot: Apr 09 21:23:38 Panic: file mempool-system.c: line 104
> (pool_system_realloc): assertion failed: (old_size == (size_t)-1 || mem
> == NULL || old_size <= malloc_usable_size(mem))

Did Dovecot happen to write a core file somewhere? Should be in base_dir
(e.g. /var/run/dovecot)? A gdb backtrace would be helpful.



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


[Dovecot] Panic: file mempool-system.c: line 104

2009-04-09 Thread Martins Lazdans
Hello!

I have used Dovecot for more than a year without problems, but today it
just crashed with this message:

dovecot: Apr 09 21:23:38 Panic: file mempool-system.c: line 104
(pool_system_realloc): assertion failed: (old_size == (size_t)-1 || mem
== NULL || old_size <= malloc_usable_size(mem))
dovecot: Apr 09 21:23:38 Error: Raw backtrace: /usr/local/sbin/dovecot
[0x805757c] -> /usr/local/sbin/dovecot [0x8057664] ->
/usr/local/sbin/dovecot [0x80514e9] -> /usr/local/sbin/dovecot
[0x8056edb] -> /usr/local/sbin/dovecot [0x805bcc1] ->
/usr/local/sbin/dovecot [0x8055bbf] -> /usr/local/sbin/dovecot
[0x8055d3b] -> /usr/local/sbin/dovecot [0x8055d87] ->
/usr/local/sbin/dovecot [0x8062448] -> /usr/local/sbin/dovecot
[0x805aadf] -> /usr/local/sbin/dovecot [0x805a5a7] ->
/usr/local/sbin/dovecot [0x804d63a] -> /usr/local/sbin/dovecot
[0x804da67] -> /usr/local/sbin/dovecot [0x804e4ce] ->
/usr/local/sbin/dovecot [0x805a17a] -> /usr/local/sbin/dovecot
[0x805adac] -> /usr/local/sbin/dovecot [0x8059f89] ->
/usr/local/sbin/dovecot [0x8051b43] ->
/lib/libc.so.6(__libc_start_main+0xd8) [0xb7e49df8] ->
/usr/local/sbin/dovecot [0x804a451]

dovecot --version
1.1.7

It seems, than some brute force attack caused this, here some more log:
> dovecot: Apr 09 21:23:36 Info: auth(default): client out: FAIL  1   
> user=jennie
> dovecot: Apr 09 21:23:36 Info: auth(default): client out: FAIL  1   
> user=jeffrey
> dovecot: Apr 09 21:23:36 Info: auth(default): client out: FAIL  1   
> user=job
> dovecot: Apr 09 21:23:36 Info: auth-worker(default): 
> sql(jimmy,81.149.214.201): query: SELECT password FROM mailbox WHERE username 
> = 'jimmy' AND active = '1'
> dovecot: Apr 09 21:23:36 Info: auth(default): client in: AUTH   1   PLAIN 
>   service=pop3lip=195.3.144.29rip=81.149.214.201  lport=110   
> rport=34646 resp=
> dovecot: Apr 09 21:23:36 Info: auth-worker(default): 
> sql(jimmy,81.149.214.201): unknown user

For now I blocked this one IP (81.149.214.201), but wondering if this
could happen again in the future?

Don`t really understand what`s the problem. I have ~2Gb of memory free,
so it can not be a out of memory issue.

Any ideas?

Thank you!

-- 
Martins Lazdans


Re: [Dovecot] dbox problem

2009-04-09 Thread Xueron Nee




On Thu, 09 Apr 2009 13:54:17 -0400 Timo Sirainen  wrote:

> On Fri, 2009-04-10 at 01:29 +0800, Xueron Nee wrote:
> > It should not be a bug. I am using a Chinese version of Becky, the tips
> > when I create a mailbox is not described much clear.
> > 
> > When use IMAP in Becky, It can create 3 type folders:
> > 1. For store mail items
> > 2. As a parent of sub folders (some mail server supports the folder
> > which can contain both mail items and sub folders. In that case, it
> > doesn't matter whichever you choose.)
This is copyed from Becky's tips :) The difference between 1 and 2 is
just 2 plus a slash at the last of CREATE command :)
> 
> Just a minor correction: dbox supports folders that can contain both
> mails and subfolders. It just doesn't force the "both" part like Maildir
> does.
> 
Yes, I just tested :)



--
Xueron Nee
http://www.xueron.com



Re: [Dovecot] dbox problem

2009-04-09 Thread Timo Sirainen
On Fri, 2009-04-10 at 01:29 +0800, Xueron Nee wrote:
> It should not be a bug. I am using a Chinese version of Becky, the tips
> when I create a mailbox is not described much clear.
> 
> When use IMAP in Becky, It can create 3 type folders:
> 1. For store mail items
> 2. As a parent of sub folders (some mail server supports the folder
> which can contain both mail items and sub folders. In that case, it
> doesn't matter whichever you choose.)

Just a minor correction: dbox supports folders that can contain both
mails and subfolders. It just doesn't force the "both" part like Maildir
does.



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


Re: [Dovecot] Strange behavior of header_filter_callback

2009-04-09 Thread Konstantin Lepa

I mean EOH in previous message.

I noticed, that my callback for hdr->eoh==1 doesn't call. I checked by  
comparing func pointers. Instead, another default callback is called.




On Apr 9, 2009, at 17:48 , Konstantin Lepa wrote:

I commented the else branch, but EOF exists after  
i_stream_header_filter. My headers appears in a message body.



On Apr 8, 2009, at 20:42 , Timo Sirainen wrote:


On Wed, 2009-04-08 at 14:05 +0400, Konstantin Lepa wrote:

You didn't say what the strange behavior was .. But:

if (hdr && hdr->eoh == TRUE) { *matched = FALSE; }
else { *matched = TRUE;  }

Don't explicitly set matched always. Set it only when you know you  
want

to change its matching state. So the above code should be only:

if (hdr && hdr->eoh == TRUE) { *matched = FALSE; }







Re: [Dovecot] dbox problem

2009-04-09 Thread Xueron Nee
Is dbox be suitable enough for product use? 

I am so interested in the alt_path feature :) That was what I need :)


On Thu, 09 Apr 2009 11:57:04 -0400 Timo Sirainen  wrote:

> On Thu, 2009-04-09 at 23:27 +0800, Xueron Nee wrote:
> > Oh, yes. 
> > 
> > I use `Becky` MUA to do such tests. It adds a slash after the folder
> > name.
> > 
> > It's ok without the slash :) 
> 
> Sounds like a bug in Becky. The / suffix means that you really want to
> create a "directory", not a selectable mailbox.
> 


--
Xueron Nee
http://www.xueron.com



Re: [Dovecot] dbox problem

2009-04-09 Thread Xueron Nee
It should not be a bug. I am using a Chinese version of Becky, the tips
when I create a mailbox is not described much clear.

When use IMAP in Becky, It can create 3 type folders:
1. For store mail items
2. As a parent of sub folders (some mail server supports the folder
which can contain both mail items and sub folders. In that case, it
doesn't matter whichever you choose.)
3. Local Folder(On your PC)

I choosed the second one. Which was OK when I use Maildir format, but
not the same with dbox. 

The first type was translated to Chinese with the meaning of 
'For classfication'. So, I skiped and made such a mistake :)

Thanks!


On Thu, 09 Apr 2009 11:57:04 -0400 Timo Sirainen  wrote:

> On Thu, 2009-04-09 at 23:27 +0800, Xueron Nee wrote:
> > Oh, yes. 
> > 
> > I use `Becky` MUA to do such tests. It adds a slash after the folder
> > name.
> > 
> > It's ok without the slash :) 
> 
> Sounds like a bug in Becky. The / suffix means that you really want to
> create a "directory", not a selectable mailbox.
> 


--
Xueron Nee
http://www.xueron.com



Re: [Dovecot] dbox problem

2009-04-09 Thread Timo Sirainen
On Thu, 2009-04-09 at 23:27 +0800, Xueron Nee wrote:
> Oh, yes. 
> 
> I use `Becky` MUA to do such tests. It adds a slash after the folder
> name.
> 
> It's ok without the slash :) 

Sounds like a bug in Becky. The / suffix means that you really want to
create a "directory", not a selectable mailbox.



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


Re: [Dovecot] Indexing of mails to speed up the IMAP SEARCH command

2009-04-09 Thread Charles Marcus
On 4/9/2009 11:23 AM, Scott Silva wrote:
> IMHO, every version of Dovecot has been the best version ever! Until the next
> one comes out...

Well, ok, ya got me there... ;)


Re: [Dovecot] dbox problem

2009-04-09 Thread Xueron Nee
Oh, yes. 

I use `Becky` MUA to do such tests. It adds a slash after the folder
name.

It's ok without the slash :) 

Thanks Timo ^_^

0004 LIST "" *
* LIST (\HasNoChildren) "/" "INBOX"
* LIST (\Noselect \HasNoChildren) "/" "kkk"
* LIST (\HasNoChildren) "/" "Trash"
* LIST (\HasNoChildren) "/" "Junk"
* LIST (\HasNoChildren) "/" "Draft"
* LIST (\HasNoChildren) "/" "Sent"
* LIST (\HasNoChildren) "/" "Spam"
* LIST (\Noselect \HasNoChildren) "/" "a"
* LIST (\Noselect \HasNoChildren) "/" "test"
* LIST (\Noselect \HasChildren) "/" "dbox"
* LIST (\HasNoChildren) "/" "dbox/INBOX"
* LIST (\Noselect \HasNoChildren) "/" "dbox/kkk"
* LIST (\HasNoChildren) "/" "dbox/Trash"
* LIST (\HasNoChildren) "/" "dbox/Junk"
* LIST (\HasNoChildren) "/" "dbox/Draft"
* LIST (\HasNoChildren) "/" "dbox/Sent"
* LIST (\HasNoChildren) "/" "dbox/Spam"
* LIST (\Noselect \HasNoChildren) "/" "dbox/a"
* LIST (\Noselect \HasNoChildren) "/" "dbox/test"
0004 OK List completed.
0005 LIST "dbox/" *
* LIST (\HasNoChildren) "/" "dbox/INBOX"
* LIST (\Noselect \HasNoChildren) "/" "dbox/kkk"
* LIST (\HasNoChildren) "/" "dbox/Trash"
* LIST (\HasNoChildren) "/" "dbox/Junk"
* LIST (\HasNoChildren) "/" "dbox/Draft"
* LIST (\HasNoChildren) "/" "dbox/Sent"
* LIST (\HasNoChildren) "/" "dbox/Spam"
* LIST (\Noselect \HasNoChildren) "/" "dbox/a"
* LIST (\Noselect \HasNoChildren) "/" "dbox/test"
0005 OK List completed.
0006 STATUS "INBOX" (MESSAGES UNSEEN UIDNEXT)
* STATUS "INBOX" (MESSAGES 35 UIDNEXT 36 UNSEEN 0)
0006 OK Status completed.
0007 CREATE "dbox/Remote274E/"
0007 OK Create completed.
0008 SUBSCRIBE "dbox/Remote274E/"
0008 NO Invalid mailbox name: dbox/Remote274E/
0009 LIST "" "dbox/Remote274E"
* LIST (\Noselect \HasNoChildren) "/" "dbox/Remote274E"
0009 OK List completed.
0010 UNSUBSCRIBE "dbox/Remote274E"
0010 OK Unsubscribe completed.
0011 RENAME "dbox/Remote274E" "dbox/"
0011 OK Rename completed.
0012 SUBSCRIBE "dbox/"
0012 NO [TRYCREATE] Mailbox doesn't exist: dbox/



On Thu, 9 Apr 2009 11:12:31 -0400 Timo Sirainen  wrote:

> On Apr 9, 2009, at 5:37 AM, Xueron Nee wrote:
> 
> > But when I create dir through imap with `create` command, it only
> > creates the dir onder ~/dbox/mailboxes, such as
> > ~/dbox/mailboxes/newfolder. There was no `dbox-Mails` dir created. So
> > the newfolder was 'noselect'.
> 
> Are you sure you created the mailbox using "CREATE newfolder", not  
> "CREATE newfolder/"? The latter would do what you describe, but the  
> former works fine with me and creates dbox-Mails.


--
Xueron Nee
http://www.xueron.com



Re: [Dovecot] Indexing of mails to speed up the IMAP SEARCH command

2009-04-09 Thread Scott Silva
on 4-9-2009 8:10 AM Charles Marcus spake the following:
> On 4/9/2009, Timo Sirainen (t...@iki.fi) wrote:
>>> Or should I go ahead and plan on doing this via cron as suggested?
> 
>> It's not really necessary to do it via cron either, although users
>> may then have to wait a bit longer if they have received a lot of new
>> mail.
> 
> Hmmm... you're probably right...
> 
> Thanks! 1.2 is shaping up to be the best dovecot yet... :)
> 
IMHO, every version of Dovecot has been the best version ever! Until the next
one comes out...





signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] Moving IMAP folders to NFS volume.

2009-04-09 Thread Timo Sirainen

On Apr 9, 2009, at 4:05 AM, Frank Bonnet wrote:


Due to lack of disk space on local disks I need to move all
our imap folders to a NFS volume ( NetAPP filer )


But there's still only one Dovecot server accessing them, right?


I have a question about Dovecot indexes , is it better to
remove all of them before copying folders to the NFS volume
and let Dovecot rebuild all indexes when users restart to
access to their imap folders ?


I don't really see why it would be better. The result would be the  
same anyway.




Re: [Dovecot] dbox problem

2009-04-09 Thread Timo Sirainen

On Apr 9, 2009, at 5:37 AM, Xueron Nee wrote:


But when I create dir through imap with `create` command, it only
creates the dir onder ~/dbox/mailboxes, such as
~/dbox/mailboxes/newfolder. There was no `dbox-Mails` dir created. So
the newfolder was 'noselect'.


Are you sure you created the mailbox using "CREATE newfolder", not  
"CREATE newfolder/"? The latter would do what you describe, but the  
former works fine with me and creates dbox-Mails.




Re: [Dovecot] Indexing of mails to speed up the IMAP SEARCH command

2009-04-09 Thread Charles Marcus
On 4/9/2009, Timo Sirainen (t...@iki.fi) wrote:
>> Or should I go ahead and plan on doing this via cron as suggested?

> It's not really necessary to do it via cron either, although users
> may then have to wait a bit longer if they have received a lot of new
> mail.

Hmmm... you're probably right...

Thanks! 1.2 is shaping up to be the best dovecot yet... :)

-- 

Best regards,

Charles


Re: [Dovecot] Indexing of mails to speed up the IMAP SEARCH command

2009-04-09 Thread Timo Sirainen

On Apr 9, 2009, at 6:43 AM, Charles Marcus wrote:


On 4/8/2009, Timo Sirainen (t...@iki.fi) wrote:

For message body indexing there are a couple of choices:
http://wiki.dovecot.org/Plugins/FTS


On this page it says that the indexes are not updated with deliver and
suggests using a cron job...

Is this planned to be added anytime soon (1.2? 1.3?)?


No. The code to do that is a bit complex.


Or should I go
ahead and plan on doing this via cron as suggested?


It's not really necessary to do it via cron either, although users may  
then have to wait a bit longer if they have received a lot of new mail.




Re: [Dovecot] dovecot 1.2-rc2 doesn't build on Solaris 10

2009-04-09 Thread Laurent Blume

Timo Sirainen a écrit :

Yeah, I noticed the same. This fixes it:
http://hg.dovecot.org/dovecot-1.2/rev/7bfbbfd2c32a



It does, thanks! Will do more testing tomorrow.

Laurent

--
/ Leader de Projet & Communauté| I'm working, but not speaking for
\ G11N   http://fr.opensolaris.org | Bull Services http://www.bull.com
/ FOSUG  http://guses.org  |


Re: [Dovecot] deliver vs lda

2009-04-09 Thread Sahil Tandon
On Thu, 09 Apr 2009, Charles Marcus wrote:

> On 4/9/2009 7:46 AM, Sahil Tandon wrote:
> >> I like this idea (of splitting the logging)...
> > 
> > As do I and many others.
> > 
> > You could do this with syslog(-ng), or you could just specify the log_path
> > and info_log_path variables in dovecot.conf.  For example, in my protocol 
> > lda
> > {} declaration, I have:
> > 
> >log_path = /var/log/deliver.log
> >info_log_path = /var/log/deliver.log 
> > 
> > Read the documentation and try something similar:
> > http://wiki.dovecot.org/Logging
> 
> Doesn't specifically mention separating out POP and IMAP... but...

The documentation would quickly become cluttered if it included an example of
every little iteration of each configuration variable.

> Extrapolating from your example, I can I just:
> 
> protocol imap {
>   ...
>   log_path = /var/log/imap.log
>   info_log_path = /var/log/imap.log
> }
> protocol pop3 {
>   ...
>   log_path = /var/log/pop3.log
>   info_log_path = /var/log/pop3.log
> }

Seems reasonable.  Try and see for yourself.  And if you go this route, you
may want to configure log rotation, via newsyslog(8) perhaps.

-- 
Sahil Tandon 


Re: [Dovecot] About "Status" to the header

2009-04-09 Thread Karsten Bräckelmann
On Thu, 2009-04-09 at 21:29 +0900, ogu...@yahoo.co.jp wrote:
> 
> I'd like to know about "Status" to the header on dovecot.
> I can see the "Status" to the header in
> /var/spool/mail/user
> if I check mail by using mutt, but I cannot see "Status" to
> the header if I check mail by using evolution, thunderbird etc.  
> 
> - /var/spool/mail/user
> --
> To: t...@test.example.com
> Subject: test
> Status: RO

The Status header isn't actually part of the email itself, but part of
the IMAP server internal meta data, added by Dovecot.

This one means the mail is Seen (R) and non-Recent (O).

Your MUA won't see other headers neither, like X-Status, X-Keywords,
X-UID or X-IMAPbase.

  guenther


-- 
char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}



Re: [Dovecot] Strange behavior of header_filter_callback

2009-04-09 Thread Konstantin Lepa
I commented the else branch, but EOF exists after  
i_stream_header_filter. My headers appears in a message body.



On Apr 8, 2009, at 20:42 , Timo Sirainen wrote:


On Wed, 2009-04-08 at 14:05 +0400, Konstantin Lepa wrote:

You didn't say what the strange behavior was .. But:

if (hdr && hdr->eoh == TRUE) { *matched = FALSE; }
else { *matched = TRUE;  }

Don't explicitly set matched always. Set it only when you know you  
want

to change its matching state. So the above code should be only:

if (hdr && hdr->eoh == TRUE) { *matched = FALSE; }





[Dovecot] About "Status" to the header

2009-04-09 Thread ogu_yo
hi list,

I'd like to know about "Status" to the header on dovecot.
I can see the "Status" to the header in
/var/spool/mail/user
if I check mail by using mutt, but I cannot see "Status"
to
the header if I check mail by using evolution, thunderbird
etc.  

- /var/spool/mail/user
--
To: t...@test.example.com
Subject: test
Status: RO
Content-Length: 0
Lines: 0
--

Then, there is a question.  Which one is the reason of
that
cannot see "Status" to the header with evolution and
thunderbird?

- there isn't "Status" to the header

- there is "Status" to the header, but just cannot see

Thanks in advance.

Regards,
Yoko



--
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/


Re: [Dovecot] deliver vs lda

2009-04-09 Thread Charles Marcus
On 4/9/2009 7:46 AM, Sahil Tandon wrote:
>> I like this idea (of splitting the logging)...
> 
> As do I and many others.
> 
> You could do this with syslog(-ng), or you could just specify the log_path
> and info_log_path variables in dovecot.conf.  For example, in my protocol lda
> {} declaration, I have:
> 
>log_path = /var/log/deliver.log
>info_log_path = /var/log/deliver.log 
> 
> Read the documentation and try something similar:
> http://wiki.dovecot.org/Logging

Doesn't specifically mention separating out POP and IMAP... but...

Extrapolating from your example, I can I just:

protocol imap {
  ...
  log_path = /var/log/imap.log
  info_log_path = /var/log/imap.log
}
protocol pop3 {
  ...
  log_path = /var/log/pop3.log
  info_log_path = /var/log/pop3.log
}

?

Thanks!

-- 

Best regards,

Charles


Re: [Dovecot] deliver vs lda

2009-04-09 Thread Sahil Tandon
On Thu, 09 Apr 2009, Charles Marcus wrote:

> On 4/8/2009, Tom Metro (tmetro+dove...@vl.com) wrote:
> > I ended up splitting them up so that I could have each logging to
> > different places (IMAP to its own file, as it doesn't relate to mail
> > delivery),
> 
> I like this idea (of splitting the logging)...

As do I and many others.

> Maybe this would be a good thing to be able to specify in the config
> file? POP, IMAP and LDA logging each to their own files...
> 
> Or, is there a simple way to do this with syslog-ng (I'm not a
> programmer, so be kind)?

You could do this with syslog(-ng), or you could just specify the log_path
and info_log_path variables in dovecot.conf.  For example, in my protocol lda
{} declaration, I have:

   log_path = /var/log/deliver.log
   info_log_path = /var/log/deliver.log 

Read the documentation and try something similar:
http://wiki.dovecot.org/Logging

-- 
Sahil Tandon 


Re: [Dovecot] deliver vs lda

2009-04-09 Thread Charles Marcus
On 4/8/2009, Tom Metro (tmetro+dove...@vl.com) wrote:
> I ended up splitting them up so that I could have each logging to
> different places (IMAP to its own file, as it doesn't relate to mail
> delivery),

I like this idea (of splitting the logging)...

Maybe this would be a good thing to be able to specify in the config
file? POP, IMAP and LDA logging each to their own files...

Or, is there a simple way to do this with syslog-ng (I'm not a
programmer, so be kind)?

-- 

Best regards,

Charles


Re: [Dovecot] Dovecot+Sieve

2009-04-09 Thread Charles Marcus
On 4/9/2009 10:23 AM, Administrator wrote:
> Sorry:
> What I'm must be add to master.cf (Postfix configuration)
> 

http://wiki.dovecot.org/LDA/Postfix

-- 

Best regards,

Charles


[Dovecot] INBOX lost in virtual namespace

2009-04-09 Thread Xueron Nee
Hi,

I have set a virtual namespace to create Virtual POP3 INBOX follow:
http://wiki.dovecot.org/Plugins/Virtual

dovecot.conf:

mail_location = maildir:~/Maildir

# default namespace
namespace private {
separator   = /
prefix  =
list= yes
hidden  = no
subscriptions   = yes
}

# virtual mailbox, for pop3
namespace private {
separator   = /
prefix  = virtual/
location= virtual:~/Maildir/virtual:LAYOUT=maildir++
list= no
hidden  = yes
}

# Copy of the default namespace. We'll use this in dovecot-virtual file.
namespace private {
separator   = /
prefix  = secret/
list= no
hidden  = yes
subscriptions   = no
}  


# cat ~/Maildir/virtual/.INBOX/dovecot-virtual
secret/*
all

but, the INBOX lost in secret/ namespace :(

When list in IMAP:

a1 list "" "*"
* LIST (\HasNoChildren) "/" "Sent"
* LIST (\HasNoChildren) "/" "Spam"
* LIST (\HasNoChildren) "/" "Junk"
* LIST (\HasNoChildren) "/" "Draft"
* LIST (\HasNoChildren) "/" "Trash"
* LIST (\HasNoChildren) "/" "INBOX"
a1 OK List completed.
a1 list "secret/" "*"
* LIST (\HasNoChildren) "/" "secret/Sent"
* LIST (\HasNoChildren) "/" "secret/Spam"
* LIST (\HasNoChildren) "/" "secret/Junk"
* LIST (\HasNoChildren) "/" "secret/Draft"
* LIST (\HasNoChildren) "/" "secret/Trash"
a1 OK List completed.

INBOX lost, So, the virtual namespace for POP3 cannot see the messages
in IMAP's INBOX.

Am I doing anything wrong?

Thanks..

--
Xueron Nee
http://www.xueron.com



Re: [Dovecot] Indexing of mails to speed up the IMAP SEARCH command

2009-04-09 Thread Charles Marcus
On 4/8/2009, Timo Sirainen (t...@iki.fi) wrote:
> For message body indexing there are a couple of choices:
> http://wiki.dovecot.org/Plugins/FTS

On this page it says that the indexes are not updated with deliver and
suggests using a cron job...

Is this planned to be added anytime soon (1.2? 1.3?)? Or should I go
ahead and plan on doing this via cron as suggested?

I prefer not to do things via cron unless absolutely necessary is why
I'm asking...

Thanks...

-- 

Best regards,

Charles


Re: [Dovecot] Dovecot+Sieve

2009-04-09 Thread Administrator

Sorry:
What I'm must be add to master.cf (Postfix configuration)


Thanks for All.



Re: [Dovecot] Dovecot+Sieve

2009-04-09 Thread Administrator

Steffen Kaiser пишет:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 6 Apr 2009, Andrey Garkin wrote:


I'm configure mail server with Postix+Mysql+Dovecot.


Sieve is used at LDA phase, hence, you must configure Postfix to use 
Dovecot deliver to spool the messages.



plugin {
sieve = /etc/sieve.conf
sieve = /home/vmail/domain.ru/u...@domain.ru/.dovecot.sieve/


These two specs look odd to me. I think the last one superceeds the 
previous ones.


BTW: dovecot -n displays the effective settings.

Bye,

- -- Steffen Kaiser
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSd2ya3WSIuGy1ktrAQKUzggAuxGCyTLbrmQqkEaf9KPijoNDreYmmzQu
cfYl1WMYKTm7wemqJ7Hv5PgKup7/mRZQUraAREh4dBbatKPune7156PTNlr5o51P
RL/XiJp/53I1Uo5j1jhOwb0de37X+rgAyC33HtQqiRW5SbZFI4lB0J2eYM/QGPfC
Or9GONPNkYIimdrWCORUDUkm8Ro7c2mM5b3GoOZMbrngv9cpRo4oMRtuDlcsgV3M
BqZAO9s92lAaTZCQNVTT9V0ebIXBPON/hVjaiALZOjZuP4XN+4U5AwDIjZIiWX//
ioNYPA1CIVeqliHPZd9PnTpxLzUbcmRDcZJV3dbH9y+BbRY78CY7BA==
=EAQM
-END PGP SIGNATURE-

My dovecot -n
# 1.1.13: /etc/dovecot.conf
# OS: Linux 2.6.18-92.1.22.el5.centos.plus i686 CentOS release 5.3 
(Final) ext3

base_dir: /var/run/dovecot/
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot-info.log
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps
listen: *:143
ssl_listen: *:993
verbose_ssl: yes
login_dir: /var/run/dovecot//login
login_executable: /usr/libexec/dovecot/imap-login
first_valid_uid: 5000
last_valid_uid: 5000
mail_access_groups: mail
mail_location: maildir:/home/vmail/%d/%...@%d
mail_debug: yes
auth default:
mechanisms: plain login cram-md5
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: sql
args: /etc/dovecot-mysql.conf
userdb:
driver: sql
args: /etc/dovecot-mysql.conf
plugin:
sieve: /etc/sieve.conf
sieve: /home/vmail/domain.ru/u...@domain.ru/.dovecot.sieve


[Dovecot] dbox problem

2009-04-09 Thread Xueron Nee
Hi,

I have just tested the dbox format mailbox, it works fine.

But when I create dir through imap with `create` command, it only
creates the dir onder ~/dbox/mailboxes, such as
~/dbox/mailboxes/newfolder. There was no `dbox-Mails` dir created. So
the newfolder was 'noselect'.

But the new folders created by `autocreate` plugin was correct.



--
Xueron Nee
http://www.xueron.com



Re: [Dovecot] Postfix + Dovecot + Sieve + SpamAssassin

2009-04-09 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 8 Apr 2009, Sascha Scandella wrote:


So I changed to Postfix + Dovcecot Deliver + Dovecot + Sieve. If I understood
correctly I cannot call other applications within a Sieve script. Until now I 
used

Procmail to filter Spam Messages with SpamAssassin. Is there a possibility to
filter spam messages before/after Dovecot deliver. I want to use the users


Use a (bash) script wrapping Dovecot deliver, it can first pipe the 
message from stdin to SpamAssassin, then pipe its output to Dovecot 
deliver.


Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSd22bHWSIuGy1ktrAQKr9QgAvzIJQ4OtGoIr9lqUVOC+hgIFqsWkMgHu
8Mt6Tv4Yws/4b8CG2ERzIbrVtTI1yS7o3RD5wQagAyeM5dkKdlQczl3gLCcCnV1r
n8qkRQseuDIbNHtHR9TFGDvpmA/zZpaHMxXCZL04x5HvXaPlBns05IYMHYJT58mA
6kVu+PXupoNSZl6BUcNQdCy98jL/XdyJS9r/9rQ+dS5FLl2lyW4WL/b16aaVDgws
KgauxeLqjajCLjC5XDE0UjhR18gyF3I4UYVVEEVNEiExd06yhI/HI8jS83p+k0Kf
+k6coAaphhUj7h18mP7gUN+0UuWsZXuAXjz0cgXY1qvPipUnRTzEAA==
=bfk4
-END PGP SIGNATURE-


Re: [Dovecot] deliver vs lda

2009-04-09 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Tue, 7 Apr 2009, Timo Sirainen wrote:


c) dovecot-lda binary, protocol lda {}



e) dovecot-mda binary, protocol mda {}

c) and e) choices also makes me think if e.g. imap and imap-login should
be called dovecot-imap and dovecot-imap-login instead. People have had
trouble finding them since ps|grep dovecot doesn't find them..


Yeah: "deliver" is too generic, I think. I'd prefer c) over e), but just a 
bit.


Currently, I symlink the Dovecot "deliver" to "dovecot-deliver", to know 
what deliver it is.


Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSd20wnWSIuGy1ktrAQKtmQf/bbNsl8aEJAI1EFpDHnAnKoDMPaLrOyRE
56yF93GMzlZWZPrNqbDalC//4kWpyNGVlJ5Ly546vdToXWFxO2YMx+uVzbMx0GOg
RmWkOMajPkiqaPmUlYimbvMcbQBct1I3OsLHxcAua1ks4Tv7TT1K3Ftkj/nWo9y3
5+Y5RJH4SD/SEsWd02ydgJuMkuVGrrpjGfyjOkNfg1RUh+Dh9eUUsgLMYfnGftop
cdzoxO7x7UMJdJgPgLskDaBA7wrGWYvVK2uRYcBERr9P9LGRkp5w6iWPyleMxbtH
akj5z9CUCC5WeUa5ffNOJRhDjOT6rHl4b+ecu4/RLuQmTpKQm0ofMA==
=k2jf
-END PGP SIGNATURE-


[Dovecot] failed dovecot 1.2rc2 build Solaris 8, gcc 2.95.3

2009-04-09 Thread Jernej Porenta

Hello,

I trying to build dovecot 1.2rc2 on ancient Solaris 8 with gcc 2.95.3 
and it fails with:


gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib 
-I../../src/lib-settings  -DSYSCONFDIR=\""/opt/dovecot/etc"\" 
-DPKG_RUNDIR=\""/opt/dovecot/var/run/dovecot"\" 
-DPKG_STATEDIR=\""/opt/dovecot/var/lib/dovecot"\" 
-DPKG_LIBEXECDIR=\""/opt/dovecot/libexec/dovecot"\" 
-DMODULEDIR=\""/opt/dovecot/lib/dovecot"\" 
-DSSLDIR=\""/usr/local/ssl/certs\""  -I/usr/local/ssl/include 
-I/opt/kerberos-heimdal/include  -g -O2 -Wall -W -Wmissing-prototypes 
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 
-Wbad-function-cast -c login-process.c

In file included from ../../src/lib/lib.h:28,
 from common.h:6,
 from login-process.c:3:
../../src/lib/data-stack.h:73: warning: `pure' attribute directive ignored
In file included from ../../src/lib/lib.h:39,
 from common.h:6,
 from login-process.c:3:
../../src/lib/strfuncs.h:44: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:54: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:55: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:56: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:57: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:58: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:59: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:77: warning: `pure' attribute directive ignored
In file included from master-settings.h:4,
 from common.h:7,
 from login-process.c:3:
../../src/lib/network.h:114: warning: `pure' attribute directive ignored
../../src/lib/network.h:115: warning: `pure' attribute directive ignored
../../src/lib/network.h:123: warning: `pure' attribute directive ignored
In file included from ../../src/lib/array.h:33,
 from login-process.c:4:
../../src/lib/buffer.h:36: warning: `pure' attribute directive ignored
../../src/lib/buffer.h:88: warning: `pure' attribute directive ignored
../../src/lib/buffer.h:106: warning: `pure' attribute directive ignored
In file included from login-process.c:4:
../../src/lib/array.h:96: warning: `pure' attribute directive ignored
../../src/lib/array.h:161: warning: `pure' attribute directive ignored
../../src/lib/array.h:222: warning: `pure' attribute directive ignored
../../src/lib/array.h:229: warning: `pure' attribute directive ignored
In file included from login-process.c:6:
../../src/lib/hash.h:24: warning: `pure' attribute directive ignored
../../src/lib/hash.h:35: warning: `pure' attribute directive ignored
../../src/lib/hash.h:54: warning: `pure' attribute directive ignored
../../src/lib/hash.h:55: warning: `pure' attribute directive ignored
In file included from login-process.c:8:
../../src/lib/ostream.h:72: warning: `pure' attribute directive ignored
login-process.c:52: field `data' has incomplete type
*** Error code 1
make: Fatal error: Command failed for target `login-process.o'
Current working directory /opt/src/dovecot-1.2.rc2/src/master
*** Error code 1

configure looks like this:
CPPFLAGS='-I/usr/local/ssl/include -I/opt/kerberos-heimdal/include' 
LDFLAGS='-L/usr/local/ssl/lib -R/usr/local/ssl/lib 
-L/opt/kerberos-heimdal/lib -R/opt/kerberos-heimdal/lib' ./configure 
--prefix=/opt/dovecot --enable-ssl --with-ssldir=/usr/local/ssl/certs 
--with-ssl=openssl --without-passwd-file --with-passwd --with-shadow 
--without-bsdauth --without-static-userdb --without-prefetch-userdb 
--without-checkpassword --with-gssapi=yes --without-pgsql --without-sql 
--without-ldap --without-vpopmail --without-sia


The build goes fine with gcc 3.2.2.

Dovecot 1.1 builds fine with 2.95.3. Are there any requirements for GCC 
version?


regards, Jernej



Re: [Dovecot] Dovecot+Sieve

2009-04-09 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 6 Apr 2009, Andrey Garkin wrote:


I'm configure mail server with Postix+Mysql+Dovecot.


Sieve is used at LDA phase, hence, you must configure Postfix to use 
Dovecot deliver to spool the messages.



plugin {
sieve = /etc/sieve.conf
sieve = /home/vmail/domain.ru/u...@domain.ru/.dovecot.sieve/


These two specs look odd to me. I think the last one superceeds the 
previous ones.


BTW: dovecot -n displays the effective settings.

Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSd2ya3WSIuGy1ktrAQKUzggAuxGCyTLbrmQqkEaf9KPijoNDreYmmzQu
cfYl1WMYKTm7wemqJ7Hv5PgKup7/mRZQUraAREh4dBbatKPune7156PTNlr5o51P
RL/XiJp/53I1Uo5j1jhOwb0de37X+rgAyC33HtQqiRW5SbZFI4lB0J2eYM/QGPfC
Or9GONPNkYIimdrWCORUDUkm8Ro7c2mM5b3GoOZMbrngv9cpRo4oMRtuDlcsgV3M
BqZAO9s92lAaTZCQNVTT9V0ebIXBPON/hVjaiALZOjZuP4XN+4U5AwDIjZIiWX//
ioNYPA1CIVeqliHPZd9PnTpxLzUbcmRDcZJV3dbH9y+BbRY78CY7BA==
=EAQM
-END PGP SIGNATURE-


Re: [Dovecot] deliver vs lda

2009-04-09 Thread Jakob Hirsch

Timo Sirainen wrote:


deliver is the binary name. but it's configured inside protocol lda {}
section. This is getting annoying, any thoughts on what would be a good
unifying name?


I hope you didn't intend such a bikeshed discussion :)


c) dovecot-lda binary, protocol lda {}


This is perfectly fine.


c) and e) choices also makes me think if e.g. imap and imap-login should
be called dovecot-imap and dovecot-imap-login instead. People have had
trouble finding them since ps|grep dovecot doesn't find them..


Good idea.


[Dovecot] Moving IMAP folders to NFS volume.

2009-04-09 Thread Frank Bonnet

Hello

Due to lack of disk space on local disks I need to move all
our imap folders to a NFS volume ( NetAPP filer )

I have a question about Dovecot indexes , is it better to
remove all of them before copying folders to the NFS volume
and let Dovecot rebuild all indexes when users restart to
access to their imap folders ?

Thanks a lot.



Re: [Dovecot] Indexing of mails to speed up the IMAP SEARCH command

2009-04-09 Thread Tassilo Horn
Timo Sirainen  writes:

Hi Timo,

> On Wed, 2009-04-08 at 21:09 +0200, Tassilo Horn wrote:
>> I use a local dovecot server which is synchronized with my two imap
>> accounts using OfflineIMAP.  This works very nice and is highly
>> usable.
>> 
>> But one thing I'd like to improve is the slow IMAP search.  When I
>> search for a string in the subjects of all messages in a mailbox
>> using some mail client, dovecot seems to grep all the messages in
>> there.
>
> Subject (or any other header) search should be fast, at least after
> the first one.  The subjects should then (if not before) be stored in
> dovecot.index.cache file, and the search should be over in less than a
> second even with tens of thousands of messages.  If this isn't
> happening with you, something's wrong.

Oh, you proved me wrong.  I tried on a folder with about 20.000 messages
and it took about 2 seconds.  So searching for subject is reasonably
fast.

> What Dovecot version are you using?

1.1.13

> For message body indexing there are a couple of choices:
> http://wiki.dovecot.org/Plugins/FTS

Great, that's exactly what I was looking for!

Thanks a lot!
Tassilo
-- 
Chuck Norris actually built the stairway to heaven.