lmtpd: Trying to unput wrong character

2014-02-15 Thread Mark
Good day,

I've recently received some emails (from Nokia's mailing list) that give
me the following error when handed over to cyrus lmtpd for delivery:

4.3.0 lmtpd: Trying to unput wrong character (in reply to end of DATA
command)

The emails are then stuck in the queue until manually deleted.

I haven't debugged it in detail, but it looks like it's probably
triggered by innovative end-of-lines characters in the incoming email.
The end-of-line character sequence is  0d 00 0a (looking at the Postfix
queue).

Presumably this is non-standard. Should it be something that Cyrus
handles better, or should be something that Postfix repairs or rejects?

Thanks
Mark

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: lmtpd: Trying to unput wrong character

2014-02-15 Thread Bron Gondwana
On Sat, Feb 15, 2014, at 10:55 PM, Mark wrote:
 Good day,
 
 I've recently received some emails (from Nokia's mailing list) that give
 me the following error when handed over to cyrus lmtpd for delivery:
 
 4.3.0 lmtpd: Trying to unput wrong character (in reply to end of DATA
 command)
 
 The emails are then stuck in the queue until manually deleted.
 
 I haven't debugged it in detail, but it looks like it's probably
 triggered by innovative end-of-lines characters in the incoming email.
 The end-of-line character sequence is  0d 00 0a (looking at the Postfix
 queue).

Wow, that's innovative alright!

Do you have a nice reproducable testcase for me by any chance? (just lazy).
I'd like to throw this into our testing framework - makes it easier to
test the fix :)

 Presumably this is non-standard. Should it be something that Cyrus
 handles better, or should be something that Postfix repairs or rejects?

Probably both, but the Cyrus part is my problem.

Bron.

-- 
  Bron Gondwana
  br...@fastmail.fm

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: lmtpd: Trying to unput wrong character

2014-02-15 Thread Mark
On 2014-02-15 14:17, Bron Gondwana wrote:
 On Sat, Feb 15, 2014, at 10:55 PM, Mark wrote:
 I haven't debugged it in detail, but it looks like it's probably
 triggered by innovative end-of-lines characters in the incoming email.
 The end-of-line character sequence is  0d 00 0a (looking at the Postfix
 queue).
 Wow, that's innovative alright!

 Do you have a nice reproducable testcase for me by any chance? (just lazy).
 I'd like to throw this into our testing framework - makes it easier to
 test the fix :)

Sure.  I'll zip the email body and email it to you in a separate message.

Mark

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: lmtpd: Trying to unput wrong character

2014-02-15 Thread lst_hoe02


Zitat von Bron Gondwana br...@fastmail.fm:


On Sat, Feb 15, 2014, at 10:55 PM, Mark wrote:

Good day,

I've recently received some emails (from Nokia's mailing list) that give
me the following error when handed over to cyrus lmtpd for delivery:

4.3.0 lmtpd: Trying to unput wrong character (in reply to end of DATA
command)

The emails are then stuck in the queue until manually deleted.

I haven't debugged it in detail, but it looks like it's probably
triggered by innovative end-of-lines characters in the incoming email.
The end-of-line character sequence is  0d 00 0a (looking at the Postfix
queue).


Wow, that's innovative alright!

Do you have a nice reproducable testcase for me by any chance? (just lazy).
I'd like to throw this into our testing framework - makes it easier to
test the fix :)


Presumably this is non-standard. Should it be something that Cyrus
handles better, or should be something that Postfix repairs or rejects?




Should this one work?

http://www.postfix.org/postconf.5.html#message_strip_characters

Regards

Andreas



smime.p7s
Description: S/MIME Cryptographic Signature

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: lmtpd: Trying to unput wrong character

2014-02-15 Thread Mark

 Presumably this is non-standard. Should it be something that Cyrus
 handles better, or should be something that Postfix repairs or rejects?


 Should this one work?

 http://www.postfix.org/postconf.5.html#message_strip_characters

Thanks.  That looks like it should do the job. 

message_strip_characters = \0

I'll try it out (although so far only one message out of hundreds of
thousands has caused trouble).

Mark



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus