[Dovecot] dovecot forward multipart problem
Hi,
I experience problems everytime i forward a mail (basically, when forwarding an email containing an attachement). I'm using thunderbird (it does the same with outlook clients) with the forward parameter "as attachement" instead of "inline". (Using the inline parameters works fine). When i forward a mail with attachements (eg a jpeg file), the attachements file is displayed in base64 instead, and is impossible to detach/save.
I'm using dovecot 1.0.rc22-1 (debian package) on debian etch, x86 SMP box with maildir format on a ext3 partition. I'm using postfix currently 2.3.4-3, i have tried different version of dovecot (from rc16 i think) and postfix (from 2.2.?) and i suspect the deliver to be the origin of the problem.
I think it is the same problem than here http://dovecot.org/pipermail/dovecot/2006-July/014786.html , my "From" headers are badly duplicated.
Could this be fixed before the dovecot 1.0 release ?
Regards, Samuel HAMEAU
On Fri, 2007-03-02 at 19:17 +0100, Samuel HAMEAU wrote:
Hi,
I experience problems everytime i forward a mail (basically, when forwarding an email containing an attachement). I'm using thunderbird (it does the same with outlook clients) with the forward parameter "as attachement" instead of "inline". (Using the inline parameters works fine). When i forward a mail with attachements (eg a jpeg file), the attachements file is displayed in base64 instead, and is impossible to detach/save.
I'm using dovecot 1.0.rc22-1 (debian package) on debian etch, x86 SMP box with maildir format on a ext3 partition. I'm using postfix currently 2.3.4-3, i have tried different version of dovecot (from rc16 i think) and postfix (from 2.2.?) and i suspect the deliver to be the origin of the problem.
You should find out what exactly gets changed. Find the mail from "Sent messages" mailbox and compare it to the one in the destination mailbox. What is different? Or is it already broken in the "Sent messages" too?
I think it is the same problem than here http://dovecot.org/pipermail/dovecot/2006-July/014786.html
That bug was already fixed, so it can't be the same.
, my "From" headers are badly duplicated.
What do you mean by this?
Timo Sirainen a écrit :
On Fri, 2007-03-02 at 19:17 +0100, Samuel HAMEAU wrote:
Hi,
I experience problems everytime i forward a mail (basically, when forwarding an email containing an attachement). I'm using thunderbird (it does the same with outlook clients) with the forward parameter "as attachement" instead of "inline". (Using the inline parameters works fine). When i forward a mail with attachements (eg a jpeg file), the attachements file is displayed in base64 instead, and is impossible to detach/save.
I'm using dovecot 1.0.rc22-1 (debian package) on debian etch, x86 SMP box with maildir format on a ext3 partition. I'm using postfix currently 2.3.4-3, i have tried different version of dovecot (from rc16 i think) and postfix (from 2.2.?) and i suspect the deliver to be the origin of the problem.
You should find out what exactly gets changed. Find the mail from "Sent messages" mailbox and compare it to the one in the destination mailbox. What is different? Or is it already broken in the "Sent messages" too?
I think it is the same problem than here http://dovecot.org/pipermail/dovecot/2006-July/014786.html
That bug was already fixed, so it can't be the same.
, my "From" headers are badly duplicated.
What do you mean by this?
Thanks you for your answer.
Here is as attachement a diff of two maildir files : the one in the sent folder, and the one received in an external domain. I believe a big part of the problem is located in these lines of the attached file.
--- BEGIN ---
25c52,53
< From original_sender_of_forwarded_mail@domain.com Mon Mar 19 19:57:35 2007
From original_sender_of_forwarded_mail@domain.com Mon Mar 19 19:57:35 2007
96d123
<
--- END ---
Do you think dovecot is altering the mail, or the problem is located inside our smtp server ? (this problem happen with any remote domain.)
Regards, Samuel HAMEAU
0a1,20
Return-Path: sender@domain.com Received: from mx1.domain2.com (root@mx1.domain2.com [*.*.*.*]) by mailhost2.domain2.com (8.13.4/8.13.4) with ESMTP id l2KBDUBg015379 for hameau@mailhost2.domain2.com; Tue, 20 Mar 2007 12:13:30 +0100 (CET) Received: from mx.domain.com (mx.domain.com [*.*.*.*]) by mx1.domain2.com (8.13.0/8.13.0) with ESMTP id l2KBDUTp000640 for recipient2@domain2.com; Tue, 20 Mar 2007 12:13:30 +0100 (CET) Received: from localhost (mx [127.0.0.1]) by mx.domain.com (IDEALX S.A Mail Daemon) with ESMTP id B927D11DC18 for recipient2@domain2.com; Tue, 20 Mar 2007 12:13:29 +0100 (CET) Received: from mx.domain.com ([127.0.0.1]) by localhost (mx.domain.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20169-28 for recipient2@domain2.com; Tue, 20 Mar 2007 12:13:28 +0100 (CET) Received: from smtp.ird.domain.com (sophia [*.*.*.*]) by mx.domain.com (IDEALX S.A Mail Daemon) with ESMTP id 5C88511DC08 for recipient2@domain2.com; Tue, 20 Mar 2007 12:13:28 +0100 (CET) Received: from [192.168.0.83] (salsifi.ird.domain.com [192.168.0.83]) by smtp.ird.domain.com (Postfix) with ESMTP id 9A3E624002; Tue, 20 Mar 2007 12:12:30 +0100 (CET) 6c26 < To: Samuel Hameau recipient1@domain.com, recipient2@domain2.com
To: Samuel Hameau recipient1@domain.com, recipient2@domain2.com 9a30,36 X-Virus-Scanned: Debian amavisd-new at mx.ird.domain.com X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mailhost2.domain2.com X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed version=3.0.4 X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.2 with clamscan / ClamAV 0.87.1/2876/Tue Mar 20 00:22:08 2007 25c52,53 < From original_sender_of_forwarded_mail@domain.com Mon Mar 19 19:57:35 2007
From original_sender_of_forwarded_mail@domain.com Mon Mar 19 19:57:35 2007
96d123 <
On Mon, 2007-04-02 at 22:01 +0200, Samuel HAMEAU wrote:
I experience problems everytime i forward a mail (basically, when forwarding an email containing an attachement) .. Here is as attachement a diff of two maildir files : the one in the sent folder, and the one received in an external domain.
I didn't really understand where you're forwarding the mail to. Is Dovecot also running there?
< From original_sender_of_forwarded_mail@domain.com Mon Mar 19 19:57:35 2007
From original_sender_of_forwarded_mail@domain.com Mon Mar 19 19:57:35 2007
The extra '>' is added if the other server stores mails in mbox format and the mail isn't saved with Dovecot LDA. Dovecot currently doesn't remove the '>' from ">From " lines. Perhaps in future it should.
But are you even running Dovecot in the remote server? Is this a Dovecot problem at all?
Timo Sirainen a écrit :
On Mon, 2007-04-02 at 22:01 +0200, Samuel HAMEAU wrote:
I experience problems everytime i forward a mail (basically, when forwarding an email containing an attachement)
..
Here is as attachement a diff of two maildir files : the one in the sent folder, and the one received in an external domain.
I didn't really understand where you're forwarding the mail to. Is Dovecot also running there?
I was forwarding a mail comming from a user of the same domain (we are running dovecot/maildir), to another domain which is running cyrus-imap on mailbox.
The extra '>' is added if the other server stores mails in mbox format and the mail isn't saved with Dovecot LDA. Dovecot currently doesn't remove the '>' from ">From " lines. Perhaps in future it should.
But are you even running Dovecot in the remote server? Is this a Dovecot problem at all? I'm not sure, i'll try to post another diff from a forwarded mail in our domain, with the same problem description.
Thanks for your answer. Samuel HAMEAU
On Tue, 2007-04-03 at 11:28 +0200, Samuel HAMEAU wrote:
I didn't really understand where you're forwarding the mail to. Is Dovecot also running there?
I was forwarding a mail comming from a user of the same domain (we are running dovecot/maildir), to another domain which is running cyrus-imap on mailbox.
So you have a correct mail in Dovecot system, but after sending it via SMTP to Cyrus running server it's broken in there? And if you look at it in Dovecot's "Sent messages" mailbox, it's still correct in there? If so, it can't be a Dovecot problem.
Timo Sirainen a écrit :
On Tue, 2007-04-03 at 11:28 +0200, Samuel HAMEAU wrote:
I didn't really understand where you're forwarding the mail to. Is Dovecot also running there?
I was forwarding a mail comming from a user of the same domain (we are running dovecot/maildir), to another domain which is running cyrus-imap on mailbox.
So you have a correct mail in Dovecot system, but after sending it via SMTP to Cyrus running server it's broken in there? And if you look at it in Dovecot's "Sent messages" mailbox, it's still correct in there? If so, it can't be a Dovecot problem. Hi,
It seems we have a transport problem, and dovecot is not related to this. Thanks you for your help, and for the 1.0 release !!!
Regards, Samuel
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 2 Apr 2007, Samuel HAMEAU wrote:
Hello Samuel,
I don't like -e diff's so I might be wrong:
The "From " (no colon) line appears to be located in line #25 of the original message, that's either:
a) not correct, because the line must be the first line of the message, or b) is part of the mail body. In which case, Timo already answered you.
If you find another problem of this, please post all lines of both the original and the forwarded mail up to the first empty line.
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBRhNNZC9SORjhbDpvAQKWEwgAspxWbZmzmgAZWzFG/+WCQCjAfBT++yBl 9D70WzHIFn2W6UPeqUzO114wZmaNw2vOSUBz/FgEoHBZdAxULTNBm5QobtMLDStP Cg+h+4V6r3DAq0NOrtgMJIzsCdIBL5cxt0utz5ZaGz6rzDZfWoW4MxMViqwNehls obJQET3ctAjMOXXUh5zNdT9iHhmPQyqNrrI22WrOAF8qR1IERdOjTMLuUihIGlOo eUGv5lxo5y7zep+/0m/At5P5noZiRG/xA/SqOlVLd3N0+OCO18wMiBZU0x0ZiN6C FO6Z/mRb+P85iebpzbJ5eUQhwwHwCZ9HfT0RVB4JfztcbV2uZmAxCQ== =Hs4T -----END PGP SIGNATURE-----
participants (3)
-
Samuel HAMEAU
-
Steffen Kaiser
-
Timo Sirainen