Hi Paul,

You are correct, lines in the message body starting with "From" get truncated.

File: exim.conf
--
DBMAIL_ALIASES=SELECT alias FROM dbmail_aliases WHERE 
alias='${quote_mysql:[EMAIL PROTECTED]' OR alias='@${quote_mysql:$domain}'

# ROUTER
dbmail_aliases:
  driver = accept
  condition = ${lookup mysql {DBMAIL_ALIASES}}
  transport = dbmail_transport

# TRANSPORT
dbmail_transport:
  driver = pipe
  command = "/usr/local/sbin/dbmail-smtp -d [EMAIL PROTECTED]"
  return_fail_output
--

SMTP session:
--
[EMAIL PROTECTED] ~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 centos.wizwerx.com ESMTP Exim 4.63 Mon, 03 Dec 2007 22:33:18 +0800
HELO test5
250 centos.wizwerx.com Hello test5 [127.0.0.1]
MAIL FROM:<[EMAIL PROTECTED]>
250 OK
RCPT TO:<[EMAIL PROTECTED]>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
From: "Wallace" <[EMAIL PROTECTED]>
To: wallace <[EMAIL PROTECTED]>
Subject: Test 5

From what I know, this doesn't work.
.
250 OK id=1IzCNF-0003V5-LV
--

Email message source:
--
Received: from exim by centos.wizwerx.com
        with spam-scanned (Exim 4.63)   (envelope-from <[EMAIL PROTECTED]>)
        id 1IzCPB-0004Hd-Ec     for [EMAIL PROTECTED];
        Mon, 03 Dec 2007 22:36:17 +0800
Received: from [127.0.0.1] (port=52935 helo=test5)      by centos.wizwerx.com
        with smtp (Exim 4.63)   (envelope-from <[EMAIL PROTECTED]>)
        id 1IzCNF-0003V5-LV     for [EMAIL PROTECTED];
        Mon, 03 Dec 2007 22:36:17 +0800
From: "Wallace" <[EMAIL PROTECTED]>
To: wallace <[EMAIL PROTECTED]>
Subject: Test 5
Message-Id: <[EMAIL PROTECTED]>
Date: Mon, 03 Dec 2007 22:36:07 +0800
X-FILTER-DSPAM: by centos.wizwerx.com on Mon, 03 Dec 2007 22:36:17 +0800
X-DSPAM-Result: Innocent
X-DSPAM-Processed: Mon Dec  3 22:36:17 2007
X-DSPAM-Confidence: 0.8034
X-DSPAM-Probability: 0.0000
X-DSPAM-Signature: 47541461164719080218370
X-DSPAM-Factors: 27,
        Received*<wally+pacific.net.sg>), 0.00872,
        From*<wally+pacific.net.sg>, 0.01000,
        To*wallace+<wallace, 0.01000,
        From+what, 0.06879,
        Received*from+<wally, 0.10375,
        Subject*Test, 0.16496,
        Received*[127.0.0.1], 0.18275,
        Received*from+[127.0.0.1], 0.18275,
        Received*pacific.net.sg>), 0.18717,
        From*<wally, 0.20615,
        From*pacific.net.sg>, 0.21849,
        To*wallace, 0.24173,
        Date*0800, 0.25544,
        From, 0.25600,
        X-FILTER-DSPAM*Mon+03, 0.26147,
        I+know, 0.26406,
        Received*Mon+03, 0.26616,
        X-FILTER-DSPAM*36+17, 0.26972,
        Date*07+0800, 0.27154,
        this, 0.27181,
        what+I, 0.27365,
        Received*wizwerx.com+Mon, 0.27519,
        Message-Id*centos.wizwerx.com>, 0.27544,
        X-FILTER-DSPAM*17+0800, 0.27597,
        Date*Mon, 0.27600,
        Received*Mon, 0.27626,
        X-FILTER-DSPAM*03, 0.27628
Return-Path: "Wallace" <[EMAIL PROTECTED]>
MIME-Version: 1.0
X-DBMail-PhysMessage-ID: 33084
--


Paul J Stevens wrote:
I think what Wallace meant was that his message get truncated when they have a bodyline that starts with From

 --
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: blah

 From where I stand this should
 work
 --

Wallace: please explain how you hooked up exim and dbmail. This problem hasn't been reported since before dbmail 2.0 (it was a problem for early versions of dbmail-lmtpd, iirc).







Aleksander Kamenik wrote:
Wallace Tan wrote:
I have installed dbmail-2.2.7 with exim 4.63

Message body is truncated before line starting with "From"

I can receive emails except for emails with message body starting with "From"
This truncates the entire message body.

I don't get you here. The line with From has to be the first one and the message body before this line is then truncated? Doesn't make sense.


Anyone have this problem?
Is this a bug or is it a configuration setting that I have missed.

I did some testing, and when inserting the message directly to postfix via smtp, I noticed that the From line is treated as a header. The rest of the body is still there. And this only works if I don't insert any real headers too. Two examples.


mail:~ # telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 krediidiinfo.ee ESMTP Postfix
HELO test
250 krediidiinfo.ee
MAIL FROM:<[EMAIL PROTECTED]>
250 Ok
RCPT TO:<[EMAIL PROTECTED]>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
 From me to you
some text
..
250 Ok: queued as D6797F06E
QUIT
221 Bye
Connection closed by foreign host.


Results in:

---
Received: from test (localhost [127.0.0.1]) by krediidiinfo.ee (Postfix)
    with SMTP id D6797F06E    for <[EMAIL PROTECTED]>;
    Mon,  3 Dec 2007 13:12:57 +0200 (EET)
X-Mailbox-Line: From me to you
Message-Id: <[EMAIL PROTECTED]>
Date: Mon,  3 Dec 2007 13:12:57 +0200 (EET)
From: [EMAIL PROTECTED]
To: undisclosed-recipients:;
Return-Path: [EMAIL PROTECTED]
MIME-Version: 1.0

some text
---

And this:

mail:~ # telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 krediidiinfo.ee ESMTP Postfix
HELO test
250 krediidiinfo.ee
MAIL FROM:<[EMAIL PROTECTED]>
250 Ok
RCPT TO:<[EMAIL PROTECTED]>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
whatever1
whatever2
..
250 Ok: queued as 61DF3F071
QUIT
221 Bye
Connection closed by foreign host.


Results in:

---
Received: from test (localhost [127.0.0.1]) by krediidiinfo.ee (Postfix)
    with SMTP id 61DF3F071    for <[EMAIL PROTECTED]>;
    Mon,  3 Dec 2007 13:13:57 +0200 (EET)
Message-Id: <[EMAIL PROTECTED]>
Date: Mon,  3 Dec 2007 13:13:57 +0200 (EET)
From: [EMAIL PROTECTED]
To: undisclosed-recipients:;
Return-Path: [EMAIL PROTECTED]
MIME-Version: 1.0

whatever1
whatever2
---

These passed postfix, dspam before being handed off to dbmail lmtp. And I wasn't able to reproduce this when talking directly with the dbmail-lmtpd unix socket. So not sure it's dbmail nor that it's a bug at all.



_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to