Re: [Dovecot] dovecot imap auth fails to reconnect pgsql backend

2008-09-24 Thread Frank Wang
> gdb -p `dovecot-auth`
> cont
> 
> bt full
> 
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208895808 (LWP 29809)]
sql_query_callback (result=0xa13dd88, sql_request=0x70) at
passdb-sql.c:58
58  struct auth_request *auth_request = sql_request->auth_request;
(gdb) bt full
#0  sql_query_callback (result=0xa13dd88, sql_request=0x70) at
passdb-sql.c:58
auth_request = (struct auth_request *) 0xbfb0fcb8
passdb_result = 
password = 0x0
scheme = 
ret = 
__PRETTY_FUNCTION__ = "sql_query_callback"
#1  0x00248c0f in ?? () from /usr/lib/dovecot/auth/libdriver_pgsql.so
No symbol table info available.
#2  0x0806dff0 in io_loop_handler_run (ioloop=0xa0701a8) at
ioloop-epoll.c:203
ctx = 
event = (const struct epoll_event *) 0xa078f28
list = (struct io_list *) 0xa082b58
io = (struct io_file *) 0xa0921c0
tv = {tv_sec = 0, tv_usec = 499942}
t_id = 2
msecs = 
ret = 1
i = 0
j = 0
call = 
#3  0x0806d0d8 in io_loop_run (ioloop=0xa0701a8) at ioloop.c:320
No locals.
#4  0x0805a3b7 in main (argc=0, argv=0xa068008) at main.c:328
_data_stack_cur_id = 0
foreground = false
(gdb) 

Is the above enough for debug?

Regards,
Frank Wang




Re: [Dovecot] Using deliver with postfix

2008-09-24 Thread Rich Winkel
On Sat, Sep 20, 2008 at 05:47:26AM +0200, mouss wrote:
> 
> in your case, see the "Multiple UIDs" section in
>   http://wiki.dovecot.org/LDA
> (you need setuid...).

I'm sorry, I'm still having  trouble... 
"/usr/local/libexec/dovecot/postfix/deliver -d ${USER}". Command output:
/usr/local/libexec/dovecot/postfix/deliver: Permission denied

#ls -la /usr/local/libexec/dovecot/postfix/
drwx--  2 postfix  postfix 512 Sep 24 16:07 ./
drwxr-xr-x  3 root wheel   512 Sep 24 16:07 ../
-r-sr-sr-x  1 root postfix  676396 Sep 24 16:07 deliver*

The postfix documentation says the delivery agent is run under the
recipient's ID, so I can see why there's a permissions problem.
If I don't specify -d it doesn't access auth-master, so I can
run it without setuid or permissions issues, but will there other
problems?  

Thanks!
Rich



Re: [Dovecot] dovecot 1.2.alpha1 quota dict driver mysql broken

2008-09-24 Thread Timo Sirainen

On Sep 24, 2008, at 11:32 PM, Robert Schetterer wrote:

Sep 24 21:40:58 Error: dict: Error in configuration file /etc/ 
dovecot/dovecot-dict-quota.conf line 2: Unknown setting: table
dovecot: Sep 24 21:40:58 Error: dict: Failed to initialize  
dictionary 'quotadict'
dovecot: Sep 24 21:40:58 Error: IMAP([EMAIL PROTECTED]): read(/ 
var/run/dovecot/dict-server) failed: Remote disconnected

dovecot: Sep 24 21:41:06 Warning: Killed with signal 15

seems strange > Unknown setting: table ???

Because there is no such setting anymore.


jep , i see *g

but there is no


doc/dovecot-dict-sql-example.conf


Well that's a different problem then. :) Looks like I forgot to  
include it in Makefile. See this instead: http://hg.dovecot.org/dovecot-1.2/file/tip/doc/dovecot-dict-sql-example.conf



so you might have to upgrade the doc/wiki
for the new syntax


Yes, once I get around to it :)



PGP.sig
Description: This is a digitally signed message part


[Dovecot] FETCH for mailbox mailboxname UID #1 got too little data: #2 vs #3

2008-09-24 Thread Diego Liziero
I got it with multiple imaptest instances even with current dovecot-1.1 hg tree.

I checked the emails with that UIDs and they are actually truncated.

Some things I noted on these mails:
- they are all with MIME multipart attachments.
- the last multipart attachment is truncated
- the truncated last line is not complete
- the following line is the beginning of a new mail (From line)
without any empty line after the truncated attachment.
- in "got too little data: #2 vs #3"  0 <= #2 < #3 (zero included)
- Content-Length: #4 is sometimes bigger than both #2 and #3, sometimes smaller.

Regards,
Diego.


Re: [Dovecot] dovecot 1.2.alpha1 quota dict driver mysql broken

2008-09-24 Thread Robert Schetterer

Timo Sirainen schrieb:

On Sep 24, 2008, at 11:12 PM, Robert Schetterer wrote:

Like I said, see doc/dovecot-dict-sql-example.conf. The old style 
configuration doesn't work anymore in v1.2. The new style allows more 
logical and efficient SQL tables.


jep but whats this



Sep 24 21:40:58 Error: dict: Error in configuration file 
/etc/dovecot/dovecot-dict-quota.conf line 2: Unknown setting: table
dovecot: Sep 24 21:40:58 Error: dict: Failed to initialize dictionary 
'quotadict'
dovecot: Sep 24 21:40:58 Error: IMAP([EMAIL PROTECTED]): 
read(/var/run/dovecot/dict-server) failed: Remote disconnected

dovecot: Sep 24 21:41:06 Warning: Killed with signal 15

seems strange > Unknown setting: table ???


Because there is no such setting anymore.



jep , i see *g

but there is no


doc/dovecot-dict-sql-example.conf

in 1.2

there is
doc/wiki/doc/wiki/Quota.Dict.txt

which has only old descriptions

Example 'dovecot-dict-quota.conf':

---%<-
connect = host=localhost dbname=mails user=sqluser password=sqlpass
table = quota
select_field = current
where_field = path
username_field = username

so you might have to upgrade the doc/wiki
for the new syntax

--
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] dovecot 1.2.alpha1 quota dict driver mysql broken

2008-09-24 Thread Timo Sirainen

On Sep 24, 2008, at 11:12 PM, Robert Schetterer wrote:

Like I said, see doc/dovecot-dict-sql-example.conf. The old style  
configuration doesn't work anymore in v1.2. The new style allows  
more logical and efficient SQL tables.


jep but whats this



Sep 24 21:40:58 Error: dict: Error in configuration file /etc/ 
dovecot/dovecot-dict-quota.conf line 2: Unknown setting: table
dovecot: Sep 24 21:40:58 Error: dict: Failed to initialize  
dictionary 'quotadict'
dovecot: Sep 24 21:40:58 Error: IMAP([EMAIL PROTECTED]): read(/ 
var/run/dovecot/dict-server) failed: Remote disconnected

dovecot: Sep 24 21:41:06 Warning: Killed with signal 15

seems strange > Unknown setting: table ???


Because there is no such setting anymore.



PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] dovecot 1.2.alpha1 quota dict driver mysql broken

2008-09-24 Thread Robert Schetterer

Timo Sirainen schrieb:

On Sep 24, 2008, at 10:53 PM, Robert Schetterer wrote:

Anyway, besides the problem with this setting the dict configuration 
was rewritten in v1.2. See doc/dovecot-dict-sql-example.conf

..


now i am having

connect = host=localhost dbname=postfix user=postfix password=.
table = quota
select_field = current
where_field = path
username_field = username


Like I said, see doc/dovecot-dict-sql-example.conf. The old style 
configuration doesn't work anymore in v1.2. The new style allows more 
logical and efficient SQL tables.




jep but whats this



Sep 24 21:40:58 Error: dict: Error in configuration file 
/etc/dovecot/dovecot-dict-quota.conf line 2: Unknown setting: table
dovecot: Sep 24 21:40:58 Error: dict: Failed to initialize dictionary 
'quotadict'
dovecot: Sep 24 21:40:58 Error: IMAP([EMAIL PROTECTED]): 
read(/var/run/dovecot/dict-server) failed: Remote disconnected

dovecot: Sep 24 21:41:06 Warning: Killed with signal 15

seems strange > Unknown setting: table ???

--
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] dovecot 1.2.alpha1 quota dict driver mysql broken

2008-09-24 Thread Timo Sirainen

On Sep 24, 2008, at 10:53 PM, Robert Schetterer wrote:

Anyway, besides the problem with this setting the dict  
configuration was rewritten in v1.2. See doc/dovecot-dict-sql- 
example.conf

..


now i am having

connect = host=localhost dbname=postfix user=postfix password=.
table = quota
select_field = current
where_field = path
username_field = username


Like I said, see doc/dovecot-dict-sql-example.conf. The old style  
configuration doesn't work anymore in v1.2. The new style allows more  
logical and efficient SQL tables.




PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] dovecot 1.2.alpha1 quota dict driver mysql broken

2008-09-24 Thread Robert Schetterer

Timo Sirainen schrieb:

On Sep 24, 2008, at 7:50 PM, Robert Schetterer wrote:


etc/dovecot/dovecot-dict-quota.conf
driver = mysql

..

worked with 1.1.3


Really? I don't think there was such a setting in v1.1 either, since the 
driver is taken from the dict line in dovecot.conf.


Anyway, besides the problem with this setting the dict configuration was 
rewritten in v1.2. See doc/dovecot-dict-sql-example.conf




hm, it did worked, but perhaps it was my fault
during upgrading
or it was ignored before

the wikis says

Example dovecot-dict-quota.conf:

connect = host=localhost dbname=mails user=sqluser password=sqlpass
table = quota
select_field = current
where_field = path
username_field = username

now i am having

connect = host=localhost dbname=postfix user=postfix password=.
table = quota
select_field = current
where_field = path
username_field = username

with new log failure

Sep 24 21:40:58 Error: dict: Error in configuration file 
/etc/dovecot/dovecot-dict-quota.conf line 2: Unknown setting: table
dovecot: Sep 24 21:40:58 Error: dict: Failed to initialize dictionary 
'quotadict'
dovecot: Sep 24 21:40:58 Error: IMAP([EMAIL PROTECTED]): 
read(/var/run/dovecot/dict-server) failed: Remote disconnected

dovecot: Sep 24 21:41:06 Warning: Killed with signal 15

seems strange > Unknown setting: table ???

dovecot.conf

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

quota = dict:::proxy::quotadict



--
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] Dovecot performance on GFS clustered filesystem

2008-09-24 Thread Timo Sirainen

On Sep 24, 2008, at 10:03 PM, Allen Belletti wrote:


As best I can determine, the worst problems occur when certain users
with very large Inboxes (~10k messages) receive new mail and their
client looks up information about that message.  GFS doesn't seem to
efficiently handle the large directories that contain folders like
this.  As a result, lots of I/O ops are generated and performance
suffers for everyone.

I am beginning to wonder if it might be more efficient to revert to  
the

old mbox format, with one file per folder (plus whatever indices are
creates.)  It seems that this ought to work better with GFS which is
geared toward smaller numbers of larger files.  Is anyone on the list
currently doing that?  Alternately, any thoughts regarding tuning or
other options would be appreciated.


One possibility would be to use dbox format with hashed directories so  
for each mailbox it could create n directories where to store the  
messages. Two problems here though:


1. dbox code hasn't been tested all that much yet in real world (but  
it works well in my stress tests)


2. dbox doesn't yet support directory hashing, but it would be pretty  
easy to implement.




PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] Dovecot performance on GFS clustered filesystem

2008-09-24 Thread Diego Liziero
I've read somewhere that one of gfs2 goals was to improve performance
for directory access with many files.

I've tested it doing a simple ls in a directory with many test empty
files in gfs and it was _really_ slow, doing the ls on a gfs2 with the
same amount of emtpy files is actually faster.

But when I tested gfs2 with bonnie++ I got fewer sequential I/O speed
than in gfs (consider that I tested a beta version of gfs2 some months
ago, maybe things are better now).

So my conclusion of the tests was that gfs is best with mbox, gfs2
beta with maildir.

But, again, I haven't tested gfs2 improvements recently.

Regards,
Diego.


[Dovecot] Dovecot performance on GFS clustered filesystem

2008-09-24 Thread Allen Belletti

Hello All,

We are using Dovecot 1.1.3 to serve IMAP on a pair of clustered Postfix
servers which share a fiber array via the GFS clustered filesystem.
This all works very well for the most part, with the exception that
certain operations are so inefficient on GFS that they generate
significant I/O load and hurt performance.  We are using the Maildir
format on disk.  We're also using Dovecot's deliver from Postfix to
handle local delivery.

As best I can determine, the worst problems occur when certain users
with very large Inboxes (~10k messages) receive new mail and their
client looks up information about that message.  GFS doesn't seem to
efficiently handle the large directories that contain folders like
this.  As a result, lots of I/O ops are generated and performance
suffers for everyone.

I am beginning to wonder if it might be more efficient to revert to the
old mbox format, with one file per folder (plus whatever indices are
creates.)  It seems that this ought to work better with GFS which is
geared toward smaller numbers of larger files.  Is anyone on the list
currently doing that?  Alternately, any thoughts regarding tuning or
other options would be appreciated.

Thanks,
Allen

--
Allen Belletti
[EMAIL PROTECTED] 404-894-6221 Phone
Industrial and Systems Engineering404-385-2988 Fax
Georgia Institute of Technology


Re: [Dovecot] [Dovecot 1.1.3] Strange problem with attachment download

2008-09-24 Thread Charles Marcus
On 9/24/2008 1:03 PM, Eduardo M KALINOWSKI wrote:
> Ed W escreveu:
>> Actually I agree with the OP.  Thunderbird "works" with attachments, but
>> it's handling seems very creaky... (I'm a big fan of TB by the way!)
>>
>> Stuff which annoys me is that it seems to download the attachment every
>> time it's needed and in particular it seems to download it instantly as
>> soon as you open a message (OE only downloads the text and gets the
>> attachment only if you access it - I get a bunch of MB sized attachments
>> from time to time and opening these messages just to review the text of
>> the message is very slow and ponderous)
> 
> That's what I had in mind. It receives the whole message (including
> attachments), and after it's finished, if you want to save/view the
> attachment, it downloads it again!

Ah, ok, that is true then... TBird certainly isn't perfect, but its one
of the most stable/reliable IMAP clients I've used...

-- 

Best regards,

Charles


Re: [Dovecot] Dovecot 1.1.3 upgrade

2008-09-24 Thread Timo Sirainen

On Sep 24, 2008, at 9:32 PM, CJ Keist wrote:


I planning to upgrade from 1.1.2 dovecot to 1.1.3, that is if most
people feel the 1.1.3 is more stable now than 1.1.2?  I've downloaded
the code and been going through and applying all the changes listed at
the URL below:

feed://hg.dovecot.org/dovecot-1.1/rss-log


How about you just download the newest code without needing to patch  
anything?

http://hg.dovecot.org/dovecot-1.1/archive/tip.tar.bz2

I'm able to apply the fist patch in the file but the second doesn't  
look

anything like I have in the file.  Here is what my file looks like
beginning at line 237 in src/lib-mail/message-address.c


I guess you skipped one patch in the middle..



PGP.sig
Description: This is a digitally signed message part


[Dovecot] Dovecot 1.1.3 upgrade

2008-09-24 Thread CJ Keist
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I planning to upgrade from 1.1.2 dovecot to 1.1.3, that is if most
people feel the 1.1.3 is more stable now than 1.1.2?  I've downloaded
the code and been going through and applying all the changes listed at
the URL below:

feed://hg.dovecot.org/dovecot-1.1/rss-log

I gotten all of the applied except for the AIX one, I'm running on
solaris.  The last patch I'm not able to figure out:

http://hg.dovecot.org/dovecot-1.1/rev/04fdaa2f831e

I'm able to apply the fist patch in the file but the second doesn't look
anything like I have in the file.  Here is what my file looks like
beginning at line 237 in src/lib-mail/message-address.c

   /* from now on don't return -1 even if there are problems, so hat
   the caller knows this is a group */
ctx->parser.data++;
(void)rfc822_skip_lwsp(&ctx->parser);

ctx->addr.mailbox = p_strdup(ctx->pool, str_c(ctx->str));
add_address(ctx);

if (parse_mailbox_list(ctx) > 0) {
if (*ctx->parser.data == ';') {
ctx->parser.data++;
(void)rfc822_skip_lwsp(&ctx->parser);
}
}

add_address(ctx);
return 1;
}

Can you show me how this section of the code should look like?

Thanks...

- --
C. J. Keist Email: [EMAIL PROTECTED]
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI2ofAA29OFr7C6jcRAgPXAKCOtp5SZcH2IQjF3pVNUCY7zItiXwCePqVT
zEWaQplUqlxVjOrKWMO1vqM=
=hGGf
-END PGP SIGNATURE-


Re: [Dovecot] cyrus2dovecot description on the wiki

2008-09-24 Thread Holger Weiss
* Charles Marcus <[EMAIL PROTECTED]> [2008-09-24 12:12]:
> On 9/24/2008 11:47 AM, Steinar Bang wrote:
> > The wiki page says "cyrus2dovecot doesn't preserve timestamps or flags"
> > http://wiki.dovecot.org/Migration/Cyrus
> >
> > However, the cyrus2dovecot home page says:
> >  "Virtually all available metadata is preserved during the
> >   conversion. This includes the UID and INTERNALDATE of each message,
> >   the IMAP folder subscriptions, the UIDVALIDITY and UIDNEXT values for
> >   each folder, as well as all IMAP flags (i.e., \Recent, \Seen,
> >   \Answered, \Flagged, \Draft, \Deleted) and the first 26 user-defined
> >   keywords."
> >
> > Which to me sounds like the opposite of what the dovecot wiki says.
> >
> > Perhaps the wiki should be updated?
>
> Looks like there are 2 different scripts.

Yes, indeed.  We (Freie Universität Berlin) published our Cyrus2Dovecot
just a few days ago.  Unlike the older script, ours _does_ try hard to
preserve all available metadata, and this should actually work with all
Cyrus versions (tested with both the oldest and the newest available
Cyrus release, that is, 1.4 and 2.3.12p2, and with various database
formats).  Apart from that, ours provides a few additional features we
needed for our conversion which might also be useful to others, such as
renaming (or moving) folders using s/regex/replacement/ substitutions.

> But yeah, if the one you referenced above works well, the wiki should be
> changed to reflect use of this new one (with the permission of the
> author of course)...

We now added our Cyrus2Dovecot to the wiki page.

Holger


Re: [Dovecot] [Dovecot 1.1.3] Strange problem with attachment download

2008-09-24 Thread Timo Sirainen

On Sep 24, 2008, at 12:50 PM, Thomas Gropp wrote:

"dovecot: Fatal: IMAP(): io_loop_handle_add: epoll_ctl(1,  
1): File exists" (which file??)


epoll_ctl(2):

   EEXIST op  was  EPOLL_CTL_ADD,  and  the supplied file  
descriptor fd is

  already in epfd.

I don't really know why that would happen though. The code shouldn't  
be adding the same fd twice.



Im using a (very) old SuSE 9.0 installation with ext2.


Perhaps it's a bug in an older kernel. Try configuring Dovecot without  
epoll:


./configure --with-ioloop=poll



PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] [Dovecot 1.1.3] Strange problem with attachment download

2008-09-24 Thread Eduardo M KALINOWSKI
Ed W escreveu:
> Actually I agree with the OP.  Thunderbird "works" with attachments, but
> it's handling seems very creaky... (I'm a big fan of TB by the way!)
>
> Stuff which annoys me is that it seems to download the attachment every
> time it's needed and in particular it seems to download it instantly as
> soon as you open a message (OE only downloads the text and gets the
> attachment only if you access it - I get a bunch of MB sized attachments
> from time to time and opening these messages just to review the text of
> the message is very slow and ponderous)

That's what I had in mind. It receives the whole message (including
attachments), and after it's finished, if you want to save/view the
attachment, it downloads it again!


-- 
Eduardo M Kalinowski
[EMAIL PROTECTED]



Re: [Dovecot] dovecot 1.2.alpha1 quota dict driver mysql broken

2008-09-24 Thread Timo Sirainen

On Sep 24, 2008, at 7:50 PM, Robert Schetterer wrote:


etc/dovecot/dovecot-dict-quota.conf
driver = mysql

..

worked with 1.1.3


Really? I don't think there was such a setting in v1.1 either, since  
the driver is taken from the dict line in dovecot.conf.


Anyway, besides the problem with this setting the dict configuration  
was rewritten in v1.2. See doc/dovecot-dict-sql-example.conf




PGP.sig
Description: This is a digitally signed message part


Re: [Dovecot] [Dovecot 1.1.3] Strange problem with attachment download

2008-09-24 Thread Ed W
Charles Marcus wrote:
> On 9/24/2008, Eduardo M KALINOWSKI ([EMAIL PROTECTED]) wrote:
>   
>> I'd suggest trying first with another client to see if it's not an 
>> issue with Thunderbird, which in my opinion is not very good at handling
>> attachments in imap.
>> 
>
> Been working fine for us on 60+ computers for years, with only one issue
> - dragging attachments from the email to the local filesystem
> *sometimes* hangs TBird - but right-click > Save As works every time...
>
>   

Actually I agree with the OP.  Thunderbird "works" with attachments, but
it's handling seems very creaky... (I'm a big fan of TB by the way!)

Stuff which annoys me is that it seems to download the attachment every
time it's needed and in particular it seems to download it instantly as
soon as you open a message (OE only downloads the text and gets the
attachment only if you access it - I get a bunch of MB sized attachments
from time to time and opening these messages just to review the text of
the message is very slow and ponderous)

So yes, always test with something else to confirm a bug!

Ed


[Dovecot] dovecot 1.2.alpha1 quota dict driver mysql broken

2008-09-24 Thread Robert Schetterer

Hi Timo,
quota dict seems to be broken with 1.2.alpha1

MAP([EMAIL PROTECTED]): read(/var/run/dovecot/dict-server) failed: 
Remote disconnected
dovecot: Sep 24 18:43:16 Error: dict: Error in configuration file 
/etc/dovecot/dovecot-dict-quota.conf line 1: Unknown setting: driver
dovecot: Sep 24 18:43:16 Error: dict: Failed to initialize dictionary 
'quotadict'


etc/dovecot/dovecot-dict-quota.conf
driver = mysql
connect = host=localhost dbname=postfix user=postfix password=...
default_pass_scheme = PLAIN
table = quota
select_field = current
where_field = path
username_field = username

worked with 1.1.3
--
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] Initial support for shared mailboxes

2008-09-24 Thread Robert Schetterer

Robert Schetterer schrieb:

Timo Sirainen schrieb:

On Wed, 2008-09-17 at 01:31 +0200, Robert Schetterer wrote:
dovecot: Sep 17 01:26:05 Panic: IMAP([EMAIL PROTECTED]): shared 
mailbox list: Can't return path for 'users/'


Fixed:

http://hg.dovecot.org/dovecot-1.2/rev/fd4091d53627
http://hg.dovecot.org/dovecot-1.2/rev/909ed7cd98a5


Hi Timo, i will test this


seems to be fixed

--
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] cyrus2dovecot description on the wiki (Was: cyrus2courrier mass migration)

2008-09-24 Thread Charles Marcus
On 9/24/2008 11:47 AM, Steinar Bang wrote:
>> Holger Weiss <[EMAIL PROTECTED]>:
> 
>> However, for our conversion, we've written our own "cyrus2dovecot"
>> which also supports skiplist databases (amongst another few features
>> not provided by the other tools):
> 
>>  http://cyrus2dovecot.sw.fu-berlin.de/
> 
> The wiki page says "cyrus2dovecot doesn't preserve timestamps or flags"
>   http://wiki.dovecot.org/Migration/Cyrus
> 
> However, the cyrus2dovecot home page says:
>  "Virtually all available metadata is preserved during the
>   conversion. This includes the UID and INTERNALDATE of each message,
>   the IMAP folder subscriptions, the UIDVALIDITY and UIDNEXT values for
>   each folder, as well as all IMAP flags (i.e., \Recent, \Seen,
>   \Answered, \Flagged, \Draft, \Deleted) and the first 26 user-defined
>   keywords."
> 
> Which to me sounds like the opposite of what the dovecot wiki says.
> 
> Perhaps the wiki should be updated?

Looks like there are 2 different scripts. If you click the link
referenced on  the dovecot wiki, it takes you to a different 'homepage'
for cyrus2dovecot.

But yeah, if the one you referenced above works well, the wiki should be
changed to reflect use of this new one (with the permission of the
author of course)...

-- 

Best regards,

Charles


[Dovecot] cyrus2dovecot description on the wiki (Was: cyrus2courrier mass migration)

2008-09-24 Thread Steinar Bang
> Holger Weiss <[EMAIL PROTECTED]>:

> However, for our conversion, we've written our own "cyrus2dovecot"
> which also supports skiplist databases (amongst another few features
> not provided by the other tools):

>   http://cyrus2dovecot.sw.fu-berlin.de/

The wiki page says "cyrus2dovecot doesn't preserve timestamps or flags"
http://wiki.dovecot.org/Migration/Cyrus

However, the cyrus2dovecot home page says:
 "Virtually all available metadata is preserved during the
  conversion. This includes the UID and INTERNALDATE of each message,
  the IMAP folder subscriptions, the UIDVALIDITY and UIDNEXT values for
  each folder, as well as all IMAP flags (i.e., \Recent, \Seen,
  \Answered, \Flagged, \Draft, \Deleted) and the first 26 user-defined
  keywords."

Which to me sounds like the opposite of what the dovecot wiki says.

Perhaps the wiki should be updated?



Re: [Dovecot] cyrus2courrier mass migration

2008-09-24 Thread Mathieu Kretchner
Mathieu Kretchner a écrit :
> Holger Weiss a écrit :
>> * Mathieu Kretchner <[EMAIL PROTECTED]> [2008-09-23 12:59]:
>>> Holger Weiss a écrit :
 However, for our conversion, we've written our own "cyrus2dovecot" which
 also supports skiplist databases (amongst another few features not
 provided by the other tools):

http://cyrus2dovecot.sw.fu-berlin.de/
>>> I've tried this one too and I'm stuck too :
>>>
>>> [EMAIL PROTECTED] testimap]# ./cyrus2dovecot -C /root/Mail/%u  -D 
>>> dovecot-mail/ mketchn
>>>
>>> cyrus2dovecot [mketchn]: (error) No Cyrus INBOX at: /root/Mail/mketchn
>>>
>>> [...]
>>>
>>> But I'm sure cyrus.header and cyrus.index exist.
>> Are you really sure?  That is, the following commands don't complain?
>>
>>  $ ls /root/Mail/mketchn/cyrus.header
>>  $ ls /root/Mail/mketchn/cyrus.index
>>
>> Holger
> 
> Sorry for the noise it was my fault : mkretchn and not mketchn :
> 
> ./cyrus2dovecot -C /root/Mail/%u -S ../seendir/%u.seen -U
> ../seendir/%u.sub -D dovecot-mail/ mkretchn
> cyrus2dovecot [mkretchn]: 7619 messages in 52 folders (168.4 MiB, 25 s)
> 
> great but I still have all my e-mail unseen (maybe mkretchn.seen is
> desynchronized, because I' working on a copy of my account) ! However
> reply, forward and TODO falgs (maybe more) are kept.
> 
> 
> Timo,
> 
> Is it enough for you ? I'm not familiar with gdb...
> 
> Starting program: /root/testimap/cyrus2courier-1.5.ts/src/cyrus2courier
> -vvv /root/Mail/ /root/Mail/dovecot-mail/ -e /root/seendir/m/ -d mkretchn
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00628b1a in strcmp () from /lib/libc.so.6
> (gdb) backtrace full
> #0  0x00628b1a in strcmp () from /lib/libc.so.6
> No symbol table info available.
> #1  0x08048fab in setfolder_seenfile ()
> No symbol table info available.
> #2  0x08049f76 in cydump ()
> No symbol table info available.
> #3  0x0804ab26 in traverse ()
> No symbol table info available.
> #4  0x0804b399 in main ()
> No symbol table info available.
> (gdb) info registers
> eax0x31 49
> ecx0xbfce92eb   -1076981013
> edx0x0  0
> ebx0x5  5
> esp0xbfce92bc   0xbfce92bc
> ebp0xbfce9308   0xbfce9308
> esi0xbfce92eb   -1076981013
> edi0x8c271a8146960808
> eip0x628b1a 0x628b1a 
> eflags 0x10202  [ IF RF ]
> cs 0x73 115
> ss 0x7b 123
> ds 0x7b 123
> es 0x7b 123
> fs 0x0  0
> gs 0x33 51
I've compiled c2c with debuging symbols and here is more understandable
my backtrace :

(gdb) bt
#0  0x00628b1a in strcmp () from /lib/libc.so.6
#1  0x08048f8b in setfolder_seenfile (_sf=0xb7f4e008, _mailbox=0x997dcc3
"mkretchn",
_uidvalidity=1204103732) at c2c.c:936
#2  0x08049f56 in cydump (path=0x804e1e0 "/root/Mail/mkretchn",
dest=0x9973018 "/root/Mail/dovecot-mail/mkretchn/", is_root=1) at
c2c.c:660
#3  0x0804ab06 in traverse (cy_root=0xbfb2cb5e "/root/Mail",
co_root=0xbfb2cb69 "/root/Mail/dovecot-mail", dir=0xbfb2cb98
"mkretchn") at c2c.c:359
#4  0x0804b379 in main (argc=862205238, argv=) at
c2c.c:162

it's done with c2c-1.5-dev !
begin:vcard
fn:Mathieu Kretchner
n:Kretchner;Mathieu
org:INRIA;Syslog
adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX
email;internet:[EMAIL PROTECTED]
tel;work:04 92 38 76 67
x-mozilla-html:FALSE
version:2.1
end:vcard



Re: [Dovecot] [Dovecot 1.1.3] Strange problem with attachment download

2008-09-24 Thread Charles Marcus
On 9/24/2008, Eduardo M KALINOWSKI ([EMAIL PROTECTED]) wrote:
> I'd suggest trying first with another client to see if it's not an 
> issue with Thunderbird, which in my opinion is not very good at handling
> attachments in imap.

Been working fine for us on 60+ computers for years, with only one issue
- dragging attachments from the email to the local filesystem
*sometimes* hangs TBird - but right-click > Save As works every time...

-- 

Best regards,

Charles


Re: [Dovecot] [Dovecot 1.1.3] Strange problem with attachment download

2008-09-24 Thread Eduardo M KALINOWSKI
From: Thomas Gropp <[EMAIL PROTECTED]>
> I am testing Dovecot 1.1.3 at the moment to see if I can migrate from 
> UW-Imap(mbox) to Dovecot(maildir). Because I dont' want to influence the 
> production server I installed Dovecot on an ununsed computer with some 
> dummy-testusers using ssl and maildir. Installation was without any 
> problems and everything works fine with one exception: I cannot download 
> some attachments. If the attachment is a simple textfile or bitmap it's 
> ok, but everything else (pdf, zip, etc. - size doesn't matter) does not 
> work. Here is what happens:
> 
> 1) I right-click on the attached file -> "save as" (using Thunderbird 2)
> 2) I choose a target dir (no matter if local disk or nfs)
> 3) the download-dialog pops up and says: "starting"

I'd suggest trying first with another client to see if it's not an issue
with Thunderbird, which in my opinion is not very good at handling
attachments in imap.


Re: [Dovecot] fts squat and dovecot-shared

2008-09-24 Thread Anton Yuzhaninov

On 22.09.2008 22:05, Timo Sirainen wrote:

On Fri, 2008-09-19 at 13:53 +0400, Anton Yuzhaninov wrote:

It seems, that dovecot-shared ignored by fts squat and 
dovecot.index.search/dovecot.index.search.uids
created with wrong permissions. This makes squat unusable with symlinked shared 
maildirs.


This should fix it: http://hg.dovecot.org/dovecot-1.1/rev/189e940d5d5e



Thanks, this patch helped me.

--
WBR,
 Anton Yuzhaninov


Re: [Dovecot] dovecot imap auth fails to reconnect pgsql backend

2008-09-24 Thread Frank Wang
> * Frank Wang <[EMAIL PROTECTED]>:
> > > Another possibility would be to attach gdb to the running dovecot-auth  
> > > process:
> 
> And to build a binary with symbols (-g option, no stripping)
I used rpmbuild -ba to build the dovecot-1.1.3-0_80.i386.rpm from
dovecot-1.1.3-0_80.src.rpm from atrpms.net. There is also a
dovecot-debuginfo-1.1.3-0_80.i386.rpm in the built i386 directory. Is it
the same to also install it?




Re: [Dovecot] Can't move mail items to Inbox

2008-09-24 Thread Phillip Smith
2008/9/24 Phillip Smith <[EMAIL PROTECTED]>

> Example: I send a test message to myself. It gets picked up by fetchmail,
> and delivered to /home/user/Maildir/new by postfix. Dovecot serves that out
> to my client. I can then move that message from the Inbox to a subfolder,
> but then I can't move it back to the Inbox. I don't get any error messages
> or anything - it just doesn't happen :(
>

Scratch that - appears to have been a Thunderbird issue. Works fine in
Evolution. I'll just use Evolution.

Cheers,
~p


Re: [Dovecot] dovecot imap auth fails to reconnect pgsql backend

2008-09-24 Thread Ralf Hildebrandt
* Frank Wang <[EMAIL PROTECTED]>:
> > Another possibility would be to attach gdb to the running dovecot-auth  
> > process:

And to build a binary with symbols (-g option, no stripping)


-- 
Ralf Hildebrandt ([EMAIL PROTECTED])  [EMAIL PROTECTED]
Postfix - Einrichtung, Betrieb und Wartung   Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de  I'm looking for a job
A C program is like a fast dance on a newly waxed dance floor by people
carrying razors."  -- Waldi Ravens. 


Re: [Dovecot] dovecot imap auth fails to reconnect pgsql backend

2008-09-24 Thread Frank Wang
> Another possibility would be to attach gdb to the running dovecot-auth  
> process:
> 
> gdb -p `dovecot-auth`
> cont
> 
> bt full
> 
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208469824 (LWP 27503)]
0x080619e6 in passdb_cache_init ()
(gdb) bt full
#0  0x080619e6 in passdb_cache_init ()
No symbol table info available.
#1  0x00128c0f in ?? () from /usr/lib/dovecot/auth/libdriver_pgsql.so
No symbol table info available.
#2  0x0806dff0 in io_loop_handler_run ()
No symbol table info available.
#3  0x0806d0d8 in io_loop_run ()
No symbol table info available.
#4  0x0805a3b7 in main ()
No symbol table info available.





[Dovecot] [Dovecot 1.1.3] Strange problem with attachment download

2008-09-24 Thread Thomas Gropp

Hello everyone,

I am testing Dovecot 1.1.3 at the moment to see if I can migrate from 
UW-Imap(mbox) to Dovecot(maildir). Because I dont' want to influence the 
production server I installed Dovecot on an ununsed computer with some 
dummy-testusers using ssl and maildir. Installation was without any 
problems and everything works fine with one exception: I cannot download 
some attachments. If the attachment is a simple textfile or bitmap it's 
ok, but everything else (pdf, zip, etc. - size doesn't matter) does not 
work. Here is what happens:


1) I right-click on the attached file -> "save as" (using Thunderbird 2)
2) I choose a target dir (no matter if local disk or nfs)
3) the download-dialog pops up and says: "starting"
4) nothing happens form then on

In the log file I see (lots of them for a single 
"attachment-download-try" until I stop Thunderbird):
"dovecot: Fatal: IMAP(): io_loop_handle_add: epoll_ctl(1, 1): 
File exists" (which file??)


I googled this message but without success. I already tried having all 
files on the local fs instead of nfs but it doesn't change anything. I 
also tried a lot of different settings (concerning locking, nfs, 
permissions) in the dovecot.conf. Everything else works just fine: 
logging in, receiving, creating folders, deleting etc...)


Im using a (very) old SuSE 9.0 installation with ext2.
I put my (current) devecot.conf and the output of "dovecot -n" at the end.

As I have no idea what else to try/check:
Anyone out there who has a tip what else I could check to solve this? Or 
even someone who had the same problem with a solution? ;o)


Thx
Thomas

my current dovecot.conf:
*
protocols = imaps
 protocol imap {
   listen = *:143#  not active
   ssl_listen = *:446  #  for testing
 }
listen = *

disable_plaintext_auth = yes

ssl_disable = no

ssl_cert_file = /etc/ssl/certs/imapd.pem
ssl_key_file = /etc/ssl/certs/imapd.pem
verbose_ssl = yes

login_greeting = Dovecot ready.

mail_location = maildir:~/Maildir

mmap_disable = yes
fsync_disable = no
mail_nfs_index = yes
lock_method = dotlock

maildir_copy_with_hardlinks = yes
mbox_read_locks = dotlock_try
mbox_write_locks = dotlock_try

mbox_dotlock_change_timeout = 120

protocol imap {
}

protocol pop3 {
}

protocol lda {
postmaster_address = [EMAIL PROTECTED]
}

auth_debug = yes
auth default {
mechanisms = plain
passdb shadow {
}
userdb passwd {
}
user = root
}

dict {
}

plugin {
}
*

Output of dovecot -n
*
# 1.1.3: /usr/local/etc/dovecot.conf
protocols: imaps
ssl_listen: *:446
ssl_cert_file: /etc/ssl/certs/imapd.pem
ssl_key_file: /etc/ssl/certs/imapd.pem
verbose_ssl: yes
login_dir: /usr/local/var/run/dovecot/login
login_executable: /usr/local/libexec/dovecot/imap-login
mail_location: maildir:~/Maildir
mail_debug: yes
mmap_disable: yes
mail_nfs_index: yes
lock_method: dotlock
mbox_read_locks: dotlock_try
mbox_write_locks: dotlock_try
auth default:
 debug: yes
 passdb:
   driver: shadow
 userdb:
   driver: passwd
***+



Re: [Dovecot] One fs with quota, one without: incorrect data shown

2008-09-24 Thread Laurent Blume
Timo Sirainen a écrit :
> You're not using v1.1 :) Only "quota = fs" works with v1.0. All the rest
> do the exact same thing.

I half-expected such an answer :-)
Well, I can't switch to 1.1 right now, but I'm going to start evaluating
it soon.

Still, I'm not sure where the values displayed come from?

The MUA says 5426404 of 1200 KB ni use.

But that doesn't match anything:

/dev/md/dsk/d20269G66G   201G25%/export/home
/dev/md/dsk/d10135G56G78G42%/var/mail

Filesystem usage  quota  limittimeleft  files  quota  limit
timeleft
/export/home 1356601 300 320  0  0  0

I'll give a try to 1.1 ASAP.

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  |


[Dovecot] Can't move mail items to Inbox

2008-09-24 Thread Phillip Smith
Hi all,

Trying to setup Postfix / Dovecot / Fetchmail to collect all my mail
centrally on my home server and serve it out by IMAP. Everything is working,
using Maildir format except I can't move mail from a sub-folder to my Inbox.

Example: I send a test message to myself. It gets picked up by fetchmail,
and delivered to /home/user/Maildir/new by postfix. Dovecot serves that out
to my client. I can then move that message from the Inbox to a subfolder,
but then I can't move it back to the Inbox. I don't get any error messages
or anything - it just doesn't happen :(

Any help and advice would be great.

root ~ # dovecot -n
# 1.1.3: /etc/dovecot/dovecot.conf
listen: 192.168.31.3
disable_plaintext_auth: no
login_dir: /usr/var/run/dovecot/login
login_executable: /usr/libexec/dovecot/imap-login
login_greeting: Dovecot server.local READY
login_max_processes_count: 8
mail_location: maildir:~/Maildir
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd

root ~ # dovecot --version
1.1.3


Cheers,
~p


[Dovecot] authentication issue - dovecot + Mysql

2008-09-24 Thread Reinhard Sanjeet Lal
Hi,

 

I have a FreeBSD 7.0 server with the following version of software's
installed:

postfix-2.5.4,1   

postfixadmin-2.2.1.1

roundcube-0.2.a,1

php5

mysql-server-5.0.67

dovecot-1.1.3_1

 

Note that pre-reqs for all of the above also has been installed. I have used
this guide to walk myself through the setup :
http://www.purplehat.org/?page_id=4

 

My setup uses virtual domain and user style(mostly for hosting provider
type) , all stored into the Mysql db, now when I try to telnet to port 110
for pop test or even telnet for IMAP test , I get this error:

 

dovecot: Sep 24 18:51:49 Info: pop3-login: Aborted login (auth failed, 1
attempts): user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

 

note : there are numerous of there errors , but I included only this. 

 

Dovecot is not able to authenticate by using the query in its
dovecot-sql.conf file. I have tried a lot of tricks by changing the
mechanism MD5 , PLAIN LOGIN etc, but no avail.

 

Please , could someone assist me in solving this issue, not that I can send
and receive emails but pop and IMAP seems not to work , so is the  webmail
functionality .

 

 

Here is my dovecot -n output :

# 1.1.3: /usr/local/etc/dovecot.conf

log_path: /var/log/dovecot.log

protocols: imap imaps pop3 pop3s

ssl_cert_file: /etc/ssl/dovecot/cert.pem

ssl_key_file: /etc/ssl/dovecot/key.pem

disable_plaintext_auth: no

login_dir: /var/run/dovecot/login

login_executable(default): /usr/local/libexec/dovecot/imap-login

login_executable(imap): /usr/local/libexec/dovecot/imap-login

login_executable(pop3): /usr/local/libexec/dovecot/pop3-login

login_greeting: Baby Is Ready.

login_greeting_capability(default): yes

login_greeting_capability(imap): yes

login_greeting_capability(pop3): no

verbose_proctitle: yes

first_valid_uid: 125

last_valid_uid: 125

first_valid_gid: 125

last_valid_gid: 125

mail_privileged_group: mail

mail_location: maildir:/usr/local/virtual/%d/%n

maildir_copy_preserve_filename: yes

mail_executable(default): /usr/local/libexec/dovecot/imap

mail_executable(imap): /usr/local/libexec/dovecot/imap

mail_executable(pop3): /usr/local/libexec/dovecot/pop3

mail_plugins(default): quota imap_quota

mail_plugins(imap): quota imap_quota

mail_plugins(pop3): quota

mail_plugin_dir(default): /usr/local/lib/dovecot/imap

mail_plugin_dir(imap): /usr/local/lib/dovecot/imap

mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3

imap_client_workarounds(default): delay-newmail netscape-eoh
tb-extra-mailbox-se


imap_client_workarounds(imap): delay-newmail netscape-eoh
tb-extra-mailbox-sep

imap_client_workarounds(pop3):

pop3_enable_last(default): no

pop3_enable_last(imap): no

pop3_enable_last(pop3): yes

pop3_client_workarounds(default):

pop3_client_workarounds(imap):

pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh

auth default:

  mechanisms: login plain cram-md5 digest-md5 plain login

  username_format: %Ln

  passdb:

driver: sql

args: /usr/local/etc/dovecot-sql.conf

  userdb:

driver: sql

args: /usr/local/etc/dovecot-sql.conf

  socket:

type: listen

client:

  path: /var/spool/postfix/private/auth

  mode: 432

  user: postfix

  group: postfix

master:

  path: /var/run/dovecot/auth-master

  mode: 384

 

 

 
Reinhard Sanjeet Lal
Manager Network Operations


p + 679 3275040 
f  + 679 3275053

m + 679 9923147
e  [EMAIL PROTECTED]
  www.unwired.com.fj
disclaimer

"This transmission is for the intended addressee only and is confidential
information. If you have received this transmission in error, please delete
it and notify the sender. The contents of this e-mail are the opinion of the
writer only and are not endorsed by Unwired Fiji unless expressly stated
otherwise. Unwired Fiji has virus detection in place and makes every
reasonable effort to ensure that this message is free from viruses. However,
you should scan this message and any attachments for viruses. Under no
circumstances will Unwired Fiji accept liability for any loss or damage that
may result from your receipt of this message or any attachments."

 

<>