Double Carriage return breaks header ..

Patrik Henningsson lists-cyrus at tripnet.se
Sat May 28 12:01:55 EDT 2005


> On Fri, May 27, 2005 at 10:18:57AM +0200, lists-cyrus at tripnet.se wrote:
> 
>>Hello list,
>>
>>We're currently running Cyrus IMAP 2.2.8 and having the following problem.
>>When a message arrives via LMTP with the header "Subject:
>>SUBJECTLINE\r\r\n" the message i broken and all other header-lines after
>>this line are put in the body! This is not cute at all ..
>>
>>I suppose this "conversion" happens in spool_copy_msg()?
>>
>>The message pass through Exim, Amavis and SpamAssassin without any
>>problem before it's reaching Cyrus.
>>
>>Somebody have an idea how to correct this properly?
> 
> 
> I would like to know the answer too! Here we have that problem with sieve
> generated vacation messages having an extra blank line after the subject,
> and I really don't see where it is coming from.

I fixed this in our system that using Exim for sending vacation messages.

Solution:

1. Create /usr/sbin/sendmail_cyrus:
cat > /usr/sbin/sendmail_cyrus << EOF
#!/bin/sh
/usr/sbin/exim -dropcr \$*
EOF
chmod +x /usr/sbin/sendmail_cyrus

2. In /etc/imapd.conf change:
    "sendmail: /usr/sbin/sendmail"
to:
    "sendmail: /usr/sbin/sendmail_cyrus"

Not 100% sure it helps, but i worked for me ...

> Cheers,
> 
> Patrick

/PH
---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list