[exim] Problem in sending email message with php + exim

Top Page
Delete this message
Reply to this message
Author: Aurélien Malo
Date:  
To: exim-users
Subject: [exim] Problem in sending email message with php + exim
Hello,

First, I hope posting my problem on the good mailing list. If not, please
excuse me in advance ....

This is the configuration of my dedicated server (debian) :
- Apache - 1.3.26-0woody5
- Php - 4.3.9-1.dotdeb.3
- Exim - 3.35-1woody3

This is the mail part of my php.ini :
>[mail function]
>; For Win32 only.
>;SMTP = localhost
>
>; For Win32 only.
>;sendmail_from = amalo@???
>
>; For Unix only. You may supply arguments as well (default: 'sendmail

-t-i').

>sendmail_path = /usr/sbin/sendmail -t -i


I'm trying to send mails from my php framework and in some of them (tipically
those which have "Content-Type" header and others) become illegible after
reception.

It seems that headers have been added by the MTA in each message sent, like
this :
>Mime-Version: 1.0
>Content-Type: text/plain; charset=UTF-8
>Content-Transfer-Encoding: BASE64


So when the message has already headers like this, this one becomes illegible
et looks like this after reception (and maybe because of the base64
encryption too) :
>KGNlY2kgZXN0IHVuIG1lc3NhZ2UgYXV0b21hdGlxdWUpCgpQb3VyIHJldHJvdXZlciB2b3RyZSBh
>Y2PDqHMgYXUgc2l0ZQpBc3Npc2VzIG5hdGlvbmFsZXMgZHUgZMOpdmVsb3BwZW1lbnQgZHVyYWJs
>ZSAoaHR0cDovL3Rlc3QuZGVkdWRlLm5ldCkKClZldWlsbGV6IHZvdXMgcmVuZHJlIMOgIGwnYWRy
>ZXNzZSBzdWl2YW50ZSA6CgogICBodHRwOi8vdGVzdC5kZWR1ZGUubmV0L3NwaXBfcGFzcy5waHAz
>P3A9NTM5ODA1ODI0MWFkZTgzZmQyMWJkNC4xMTU0ODMxNwoKVm91cyBwb3VycmV6IGFsb3JzIGVu
>dHJlciB1biBub3V2ZWF1IG1vdCBkZSBwYXNzZQpldCB2b3VzIHJlY29ubmVjdGVyIGF1IHNpdGUu
>Cg==


What can I do to avoid this ?

Thanks in advance ...

This is a complete example of an illegible message :
>Return-Path: <apache@???>
>Received: from xxx.xxxxx.xxx ([unix socket])
>    by xxx.xxxx.xxx (Cyrus v2.1.16) with LMTP; Wed, 01
>Dec 2004 17:45:08 +0100
>X-Sieve: CMU Sieve 2.2
>Received: from localhost (localhost [127.0.0.1])
>    by xxx.xxx.xxx (Postfix) with ESMTP id 68EED4210
>    for <xxxx@???>; Wed,  1 Dec 2004 17:45:08 +0100 (CET)
>Delivered-To: xxxxx@???
>Received: from xxxxx.xxxx.xxx [xxx.xxx.xxx.xxx]
>    by localhost with POP3 (fetchmail-6.2.5)
>    for xxxx@??? (single-drop); Wed, 01 Dec 2004 17:45:08 +0100 (CET)
>Received: (qmail 6899 invoked by uid 503); 1 Dec 2004 16:40:33 -0000
>Received: from unknown (HELO xxx.xxx.xxx) (xxx.xxx.xxx.xxx)
>  by xxx.xxx.xxx.xxx with SMTP; 1 Dec 2004 16:40:33 -0000
>Received: by xxx.xxx.xxx (Postfix, from userid 104)
>    id 623A712886E; Wed,  1 Dec 2004 17:40:29 +0100 (CET)
>To: xxxxx@???
>Subject: Test
>From: xxxx@???
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset=iso-8859-1
>Content-Transfer-Encoding: 8bit
>Mime-Version: 1.0
>Content-Type: text/plain; charset=UTF-8
>Content-Transfer-Encoding: BASE64
>Message-Id: <20041201164029.623A712886E@???>
>Date: Wed,  1 Dec 2004 17:40:29 +0100 (CET)
>X-UID: 1425
>X-Length: 1818
>Status: R
>X-Status: NC
>X-KMail-EncryptionState:
>X-KMail-SignatureState:
>X-KMail-MDN-Sent:
>X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on
>    xxx.xxx.xxx.xxx
>X-Spam-Level:
>X-Spam-Status: No, score=0.8 required=5.0 tests=AWL,HEADER_COUNT_CTYPE,
>    MIME_BASE64_NO_NAME,NO_REAL_NAME autolearn=no version=3.0.0

>
>KGNlY2kgZXN0IHVuIG1lc3NhZ2UgYXV0b21hdGlxdWUpCgpQb3VyIHJldHJvdXZlciB2b3RyZSBh
>Y2PDqHMgYXUgc2l0ZQpBc3Npc2VzIG5hdGlvbmFsZXMgZHUgZMOpdmVsb3BwZW1lbnQgZHVyYWJs
>ZSAoaHR0cDovL3Rlc3QuZGVkdWRlLm5ldCkKClZldWlsbGV6IHZvdXMgcmVuZHJlIMOgIGwnYWRy
>ZXNzZSBzdWl2YW50ZSA6CgogIApodHRwOi8vdGVzdC5kZWR1ZGUubmV0L3NwaXBfcGFzcy5waHAz
>P3A9MTk2MzE4NzA2OTQxYWRmM2ZkNWNmZDU5LjA0MTE4Mzc4CgpWb3VzIHBvdXJyZXogYWxvcnMg
>ZW50cmVyIHVuIG5vdXZlYXUgbW90IGRlIHBhc3NlCmV0IHZvdXMgcmVjb25uZWN0ZXIgYXUgc2l0
>ZS4K


--
Aurélien Malo - amalo@???
Cerdd - CEntre Ressource du Développement Durable