[Dovecot] Misbehavior with Dovecot and Mulberry
Jon Roma
roma at uiuc.edu
Mon Sep 26 01:36:52 EEST 2005
Timo Sirainen <tss at iki.fi> wrote:
> On Sun, 2005-09-18 at 14:07 -0500, Jon Roma wrote:
>> >> Sep 18 13:10:44 zippy dovecot: IMAP(roma): o_stream_send_istrea
>> >> (/var/imap/dovecot/roma/.Sent/tmp/1127067044.P44216Q3.zippy.cso.uiuc.
>> >> edu ) failed: Invalid argument
>> >
>> > This is actually what I was hoping to see instead. Do you have
>> > HAVE_FREEBSD_SENDFILE, HAVE_LINUX_SENDFILE or HAVE_SOLARIS_SENDFILE
>> > defined in config.h?
>>
>> None of these are defined (the server is running AIX 5).
>>
>> If you have any ideas, I'm more than happy to turn on debugging
>> in Mulberry again.
>
> Well, that doesn't help since this problem is internal to Dovecot. I
> just can't figure out why it would happen. Do you have
> mail_save_crlf=yes?
>
> Can you run gdb? Or could you try the attached patch and see what it
> prints to logs when this error happens?
>
OK, I've applied your debug patch and have the following to report:
Result of telling Mulberry to file a copy of an outgoing mail into
my Dovecot 'Sent' folder:
Sep 25 17:19:18 zippy dovecot: imap-login: Login: user=<roma>,
method=PLAIN, rip=192.17.16.93, lip=130.126.113.16, TLS
Sep 25 17:19:25 zippy dovecot: imap(roma): o_stream_sendv() -> EINVAL
Sep 25 17:19:25 zippy dovecot: imap(roma):
o_stream_send_istream(/var/imap/dovecot/roma/.Sent/tmp/1127686765.P17140Q0M417376.zippy.cso.uiuc.edu)
failed: Invalid argument
When asking Mulberry to save a draft mail into my Dovecot 'Drafts' folder,
it was a bit more interesting. Creating a new draft saved just fine.
However, taking an existing draft, editing it and then re-saving it
gave the usual error. (Note that doing this in Mulberry creates a new
message in the 'Drafts' folder rather than overwriting the earlier draft.)
Anyway, here are the log messages resulting from *this* operation with
a draft.
Sep 25 17:23:28 zippy dovecot: imap-login: Login: user=<roma>,
method=PLAIN, rip=192.17.16.93, lip=130.126.113.16, TLS
Sep 25 17:23:29 zippy dovecot: imap(roma): o_stream_sendv() -> EINVAL
Sep 25 17:23:29 zippy dovecot: imap(roma):
o_stream_send_istream(/var/imap/dovecot/roma/.Drafts/tmp/1127687009.P26994Q0M217945.zippy.cso.uiuc.edu)
failed: Invalid argument
Incidentally, as you can tell from the log messages, these are all
maildir folders. However, I experimented and got the same errors
using mbox folders as well.
Before running these tests I upgraded from -test80 to alpha3.
Hope this helps. Thanks.
More information about the dovecot
mailing list