Ryan Hulsker | 1 Oct 2004 01:33

Dovecot/IMP attachment problem


I recently installed dovecot in my production environment.  This
comprises about 60k mailboxes.

The system was initially set up with dovecot 0.99.10.7 using maildirs. 
I have been using perdition to handle redirection during the process of
converting from wu-imap.

Last week it was brought to my attention that our webmail interface
(horde/imp) is no longer allowing people to download attachments. 
Everything appears to work fine, however the downloaded files are 0
bytes in size.

I built a test box with the latest horde/imp/php combination and that
failed to solve the problem.

Today I upgraded dovecot on one of our mail servers to 0.99.11 and that
seems to have had no effect.  I was hoping that the BODY and
BODYSTRUCTURE changes from 99.10.8 would have fixed this.

I am wondering if anyone has encountered these problems? Is this a
dovecot bug?

Due to the fact that I am still in transition mode using perdition I am
in the unique position where I can basically hit two identical
mailboxes, one in wu-imap and the other in dovecot just by using a
different username.  I have done this, and have ethereal traces if
anyone is interested in helping me out with this.

Ryan Hulsker
(Continue reading)

Nicolas STRANSKY | 1 Oct 2004 09:11

Re: Dovecot/IMP attachment problem

Le 10/01/2004 01:33 AM, Ryan Hulsker a écrit :

> I am wondering if anyone has encountered these problems? Is this a
> dovecot bug?

No, this is a horde/imp bug. The outgoing mail has no attachement, test 
it by sending it to an external address.

--

-- 
Nico
La manière de démontrer est double : l'une se fait par l'analyse ou
résolution, et l'autre par la synthèse ou composition.
	-+- René Descartes, Secondes réponses... -+-

Marius Stan | 1 Oct 2004 11:01
Picon

SSL setup ?

Hello,

I'm having treuble setting up a ssl dovecot;
here's  some info:

/etc/xinetd.d/pop3s:
service pop3s
{
        disable = no
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        group           = root
        instances       = UNLIMITED
        server          = /usr/libexec/dovecot/pop3-login
        log_type        = SYSLOG daemon info
}

I've setup the certificates, ssl_disable  = no, protocols = imap pop3 pop3s
,but if I telnet on my server's port 995, I get the dovecot banner in 
clear-text.

I'm for sure missing something here...

Marius

Timo Sirainen | 1 Oct 2004 15:43
Picon
Picon
Favicon

Re: SSL setup ?

On 1.10.2004, at 12:01, Marius Stan wrote:

> I'm having treuble setting up a ssl dovecot;
> here's  some info:
>
> /etc/xinetd.d/pop3s:
> service pop3s
> {
>        server          = /usr/libexec/dovecot/pop3-login

Give --ssl parameter to pop3-login.
Ryan Hulsker | 1 Oct 2004 17:05

Re: Re: Dovecot/IMP attachment problem


On Fri, 2004-10-01 at 01:11, Nicolas STRANSKY wrote:
> Le 10/01/2004 01:33 AM, Ryan Hulsker a écrit :
> 
> > I am wondering if anyone has encountered these problems? Is this a
> > dovecot bug?
> 
> No, this is a horde/imp bug. The outgoing mail has no attachement, test 
> it by sending it to an external address.

Well, the attachments do exist in the mailbox, and sending attachments
is no problem.

Retrieving attachments through OE->dovecot works,  OE->wu-imap works,
IMP->wu-imap works, however the combination of IMP->dovecot seems to
cause a problem.

I have a feeling that IMP is using a different method of retrieving the
attachments than OE does, and there is probably something IMP does not
like about dovecots responses.

I will go through my ethereal traces and see if I can piece together
what is going on in more detail.

Ryan Hulsker

Ryan Hulsker | 1 Oct 2004 17:06

Re: Re: Dovecot/IMP attachment problem


On Fri, 2004-10-01 at 01:11, Nicolas STRANSKY wrote:
> Le 10/01/2004 01:33 AM, Ryan Hulsker a écrit :
> 
> > I am wondering if anyone has encountered these problems? Is this a
> > dovecot bug?
> 
> No, this is a horde/imp bug. The outgoing mail has no attachement,
test 
> it by sending it to an external address.

Well, the attachments do exist in the mailbox, and sending attachments
is no problem.

Retrieving attachments through OE->dovecot works,  OE->wu-imap works,
IMP->wu-imap works, however the combination of IMP->dovecot seems to
cause a problem.

I have a feeling that IMP is using a different method of retrieving the
attachments than OE does, and there is probably something IMP does not
like about dovecots responses.

I will go through my ethereal traces and see if I can piece together
what is going on in more detail.

Ryan Hulsker

Ryan Hulsker | 1 Oct 2004 22:33

Dovecot/IMP Bug with RFC822.SIZE and BODYSTRUCTURE

Ok, I have narrowed my IMP/Dovecot attachment problem down to what I
think is a bug in Dovecot.  The test that follow are performed on
0.99.11.

When you download an attachment in IMP it uses the php function
imap_fetchbody() which contacts the IMAP server and retrieves just the
mime chunk you are looking for.

It does this by first fetching some information about the email, and
then grabs the specific chunk you are looking for in a second request.

The first request looks like this.

"FETCH 258 (ENVELOPE BODY.PEEK[HEADER.FIELDS (Path Message-ID Newsgroups
Followup-To References)] BODYSTRUCTURE INTERNALDATE RFC822.SIZE FLAGS)"

Dovecot responds properly on all parts of this request except for the
BODYSTRUCTURE portion which gets returned as this.

"BODYSTRUCTURE ("text" "plain" NIL NIL NIL "7bit" 0 0 NIL NIL NIL)"

This causes the imap_fetchbody() funtion to freak out and not do the 2nd
request, and it returns 0 bytes.

If I manually try "FETCH 258 (BODYSTRUCTURE)" Dovecot returns the
expected data properly.

I figured there must be an interaction between the BODYSTRUCTURE fetch
and one of the other items that are requested, so I tried them all and
narrowed it down to this.
(Continue reading)

Nicolas STRANSKY | 1 Oct 2004 22:43

Re: Dovecot/IMP attachment problem

Le 10/01/2004 05:05 PM, Ryan Hulsker a écrit :

> Well, the attachments do exist in the mailbox, and sending attachments
> is no problem.
> 
> Retrieving attachments through OE->dovecot works,  OE->wu-imap works,
> IMP->wu-imap works, however the combination of IMP->dovecot seems to
> cause a problem.
> 
> I have a feeling that IMP is using a different method of retrieving the
> attachments than OE does, and there is probably something IMP does not
> like about dovecots responses.

Ok, that may not be a problem with IMP in that case ; I told you that 
because there was some time ago a well known bug of IMP with 
attachments, and I have seen it myself when I was using uw-imapd.

--

-- 
Nico
En l'entreprise du mariage, chacun doit être arbitre
de ses propres pensées, et de soi-même conseil prendre.
	-+- François Rabelais (1494?-1553), Tiers livre (chap. 29) -+-

espino | 2 Oct 2004 01:10
Picon
Favicon

Dovecot on Cygwin

Sorry guys I have to ask this one more time. I really need an answer.
Have any of you been able to make Dovecot work on Cygwin? Do any of you know about anybody
who have had any success on it?
I repeat, I'm eager searching for an answer. If it is possible I'll contact the person who
achieved it. If it is not possible yet, I'm gonna have to switch.
Thanks once more.

Andy

-------------------------------------------------
Este mensaje fue enviado usando el servicio de correo en web de Infomed
http://webmail.sld.cu

rusecure@rogers.com | 2 Oct 2004 05:51
Favicon

Slow squirrelmail login/IMAP CPU 80%

I've been having a problem with Dovecot on Fedora Core 2 with
SquirrelMail on the same system. 

When ever I login through SquirrelMail the imap process consumes around
80% of my CPU and the login takes forever (about 10 minutes). 1 

Once I do manage to login, everything is fine and can even log out and
back in without issue. 

Has anyone encountered this?

Thanks,

Nelson


Gmane