Bug 527690 - dbmail-forward seems to damage multimime-messages
Summary: dbmail-forward seems to damage multimime-messages
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dbmail
Version: 11
Hardware: All
OS: Linux
low
urgent
Target Milestone: ---
Assignee: Bernard Johnson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-10-07 11:47 UTC by Harald Reindl
Modified: 2009-10-21 16:25 UTC (History)
1 user (show)

Fixed In Version: 2.2.11-10.el5
Clone Of:
Environment:
Last Closed: 2009-10-21 00:36:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Harald Reindl 2009-10-07 11:47:16 UTC
Mailing-List seems to be ignored an upstream-bugtracker says my mailaddress is invalid - I Have to migrate 10.000 accounts with 90% forwarders in the next days/weeks :-(

http://www.nabble.com/dbmail-forward-seems-to-damage-multimime-messages-td24988293.html

Hy, i trie to explain the problem as good as i can:
Only multi-mime-messages are affected

Here two sample-mails which the same mta-hops, finally both are relayed to
"root@..." which finally points to me. Directly to this address dbmail
is not involved and the mail would not be changed. Both are the same html-mail with the
simple line ".TEST" as multi-mime-message -> Look at the "..TEST" in the second one
Received: by mail.thelounge.net (Postfix, from userid 493) -> 493 = dbmail on fedora

If we send to "transport@..." postfix relays to dbmail-lmtp, dbmail looks in the
alias-table and forwards to "root@...", in this step the leading dot is
added. I think this happens while forwarding because final destination is for both ways
dbmail-lmtp and my inbox

This are two sample-mail-routings to find out what kills our html-mails from mailman
running on "thx1138.thelounge.net" which is an lan-only-maching targeted only with
forward-adress from the mainserver

________________________________

MAIL DIRECTLY WITHOUT DBMAIL-LMTP:

Received: from arrakis.thelounge.net (arrakis.thelounge.net [10.0.0.6])
        by mail.thelounge.net (Postfix) with ESMTP id 5AABAD1
        for <h.reindl@...>; Sat, 15 Aug 2009 23:20:16 +0200 (CEST)
Received: from thx1138.thelounge.net (thx1138.thelounge.net [10.0.0.30])
        by arrakis.thelounge.net (Postfix) with ESMTP id 362913604B
        for <h.reindl@...>; Sat, 15 Aug 2009 23:19:52 +0200 (CEST)
Received: by thx1138.thelounge.net (Postfix) id 8A01D18074;
        Sat, 15 Aug 2009 23:19:52 +0200 (CEST)
Delivered-To: root@...
Received: from mail.thelounge.net (mail.thelounge.net [10.0.0.15])
        by thx1138.thelounge.net (Postfix) with ESMTP id 830C118073
        for <root@...>; Sat, 15 Aug 2009 23:19:52 +0200 (CEST)
Received: from panel.thelounge.net (arrakis.thelounge.net [10.0.0.6])
        by mail.thelounge.net (Postfix) with ESMTP id C1D27D1
        for <root@...>; Sat, 15 Aug 2009 23:20:15 +0200 (CEST)
Date: Sat, 15 Aug 2009 23:19:51 +0200
To: root@...
From: Mail-Administrator <postmaster@...>
Subject: Test
Message-ID: <324a2f8d066674abdb52c5fbd3d31acc@...>
Return-Path: postmaster@...
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary=b1_324a2f8d066674abdb52c5fbd3d31acc
- --b1_324a2f8d066674abdb52c5fbd3d31acc
Content-Type: text/plain; charset = "ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
- --b1_324a2f8d066674abdb52c5fbd3d31acc
Content-Type: text/html; charset = "ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
..TEST
- --b1_324a2f8d066674abdb52c5fbd3d31acc--
________________________________

EXACTLY THE SAME MAIL OVER DBMAIL-FORWARDER:

Received: from arrakis.thelounge.net (arrakis.thelounge.net [10.0.0.6])
        by mail.thelounge.net (Postfix) with ESMTP id 2BF82DD
        for <h.reindl@...>; Sat, 15 Aug 2009 23:22:20 +0200 (CEST)
Received: from thx1138.thelounge.net (thx1138.thelounge.net [10.0.0.30])
        by arrakis.thelounge.net (Postfix) with ESMTP id 08FB53604B
        for <h.reindl@...>; Sat, 15 Aug 2009 23:21:56 +0200 (CEST)
Received: by thx1138.thelounge.net (Postfix) id 9BEB918074;
        Sat, 15 Aug 2009 23:21:56 +0200 (CEST)
Delivered-To: root@...
Received: from mail.thelounge.net (mail.thelounge.net [10.0.0.15])
        by thx1138.thelounge.net (Postfix) with ESMTP id 956F518073
        for <root@...>; Sat, 15 Aug 2009 23:21:56 +0200 (CEST)
Received: by mail.thelounge.net (Postfix, from userid 493) id DE35FE9;
        Sat, 15 Aug 2009 23:22:19 +0200 (CEST)
Received: from panel.thelounge.net (arrakis.thelounge.net [10.0.0.6])
        by mail.thelounge.net (Postfix) with ESMTP id 21A46D1
        for <transport@...>; Sat, 15 Aug 2009 23:22:19 +0200 (CEST)
Date: Sat, 15 Aug 2009 23:21:54 +0200
To: transport@...
From: Mail-Administrator <postmaster@...>
Subject: Test
Message-ID: <321fd71fc44a19188f6139871f24a68e@...>
Return-Path: postmaster@...
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary=b1_321fd71fc44a19188f6139871f24a68e
- --b1_321fd71fc44a19188f6139871f24a68e
Content-Type: text/plain; charset = "ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
- --b1_321fd71fc44a19188f6139871f24a68e
Content-Type: text/html; charset = "ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
...TEST
- --b1_321fd71fc44a19188f6139871f24a68e--

Comment 1 Harald Reindl 2009-10-07 15:30:54 UTC
Paul has a Patch but i am unable to include it in our SPEC

> Patch0:         0001-backport-fix-to-prevent-showing-mailboxes-more-than.patch
> Patch1:         dbmail-forward-doublepoint.patch
> BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
> .....
> .....
> %prep
> %setup -q
>
> %patch0 -p 1 -b .duplicate-email-boxes
> %patch1 -p 1 -b .dbmail-forward-doublepoint

http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/patch/?id=2897e657c5fd1378cea5f2339e335acf4c6070e9

[builduser@buildserver:/rpmbuild/SPECS]$ rpmbuild -bb dbmail.spec
Ausführung(%prep): /bin/sh -e /var/tmp/rpm-tmp.GmVhfR
+ umask 022
+ cd /home/builduser/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /home/builduser/rpmbuild/BUILD
+ rm -rf dbmail-2.2.11
+ /usr/bin/gzip -dc /home/builduser/rpmbuild/SOURCES/dbmail-2.2.11.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dbmail-2.2.11
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (0001-backport-fix-to-prevent-showing-mailboxes-more-than.patch):'
Patch #0 (0001-backport-fix-to-prevent-showing-mailboxes-more-than.patch):
+ /bin/cat /home/builduser/rpmbuild/SOURCES/0001-backport-fix-to-prevent-showing-mailboxes-more-than.patch
+ /usr/bin/patch -s -p1 -b --suffix .duplicate-email-boxes --fuzz=0
+ echo 'Patch #1 (dbmail-forward-doublepoint.patch):'
Patch #1 (dbmail-forward-doublepoint.patch):
+ /bin/cat /home/builduser/rpmbuild/SOURCES/dbmail-forward-doublepoint.patch
+ /usr/bin/patch -s -p1 -b --suffix .dbmail-forward-doublepoint --fuzz=0
2 out of 2 hunks FAILED -- saving rejects to file pipe.c.rej
Fehler: Fehler-Status beim Beenden von /var/tmp/rpm-tmp.GmVhfR (%prep)

Comment 2 Bernard Johnson 2009-10-07 16:19:47 UTC
Try this build:

https://koji.fedoraproject.org/koji/taskinfo?taskID=1733283

Comment 3 Harald Reindl 2009-10-07 17:10:28 UTC
THANK YOU - Works perfectly
The responses from most maintainers are one of the reasons i love fedora!

BTW: 
The https has soume troubles (i swicthed your url to http)
ssl_error_handshake_failure_alert
This happens after try to accept the self-signed cerificate

Comment 4 Fedora Update System 2009-10-07 18:05:38 UTC
dbmail-2.2.11-10.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/dbmail-2.2.11-10.fc11

Comment 5 Fedora Update System 2009-10-07 18:06:20 UTC
dbmail-2.2.11-10.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/dbmail-2.2.11-10.fc12

Comment 6 Fedora Update System 2009-10-07 18:06:59 UTC
dbmail-2.2.11-10.el5 has been submitted as an update for Fedora EPEL 5.
http://admin.fedoraproject.org/updates/dbmail-2.2.11-10.el5

Comment 7 Harald Reindl 2009-10-07 20:31:45 UTC
FYI: 
Paul has released 2.2.12 which fixes this problem upstream and some others too

> Greetings,
>
> I've just uploaded dbmail 2.2.12, the latest production release.
> 
> Changes:
> 
>     * Backport IPv6 support
>     * Remove generated autoconf files from the release. Please install
> automake-1.9 and run autoreconf -i before running configure
>     * Backport the fix for duplicate mailboxes in LIST/LSUB responses
>     * Backport for internaldate as UTC
>     * Fix for file descriptor leakage
> 
> Changelog:
> http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/log/?id=v2.2.12
> 
> Download:
> http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/snapshot/dbmail-2.2.12.tar.bz2
> 
> - --
>   ________________________________________________________________
>   Paul Stevens                                      paul at nfg.nl
>   NET FACILITIES GROUP                     GPG/PGP: 1024D/11F8CD31
>   The Netherlands________________________________http://www.nfg.nl

Comment 8 Bernard Johnson 2009-10-07 21:33:57 UTC
Thanks for the heads up - I'll work on getting this packaged in the next few weeks.

Comment 9 Fedora Update System 2009-10-08 23:26:09 UTC
dbmail-2.2.11-10.el5 has been pushed to the Fedora EPEL 5 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dbmail'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/EL-5/FEDORA-EPEL-2009-0606

Comment 10 Fedora Update System 2009-10-09 03:38:10 UTC
dbmail-2.2.11-10.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update dbmail'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10342

Comment 11 Fedora Update System 2009-10-21 00:36:03 UTC
dbmail-2.2.11-10.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2009-10-21 16:25:46 UTC
dbmail-2.2.11-10.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.