Re: AW: Re: AW: Re: Message contains NUL characters - howto dump?

2009-04-21 Thread Joseph Brennan
> (IMHO is the max. line lenght in emails 4000 characters.) RFC 2821 sec 4.5.3.1 says the max length is 1000 characters including the two CR LF characters. However if the MTA fixes this, Cyrus won't see it. Sendmail for example breaks long lines at 997 characters and inserts ! CR LF. Joseph B

Re: AW: Re: Message contains NUL characters - howto dump?

2009-04-19 Thread Markus Rebensburg
Klemens Puritscher schrieb: > Phil Brutsche schrieb: > >> The error message is being created by the LMTP service - NUL characters >> aren't valid in ASCII messages. The email in question is being generated >> incorrectly somewhere, somehow. >> > > thanks for your reply. > I know that in the

AW: Re: Message contains NUL characters - howto dump?

2009-04-17 Thread Klemens Puritscher
Phil Brutsche schrieb: > The error message is being created by the LMTP service - NUL characters > aren't valid in ASCII messages. The email in question is being generated > incorrectly somewhere, somehow. thanks for your reply. I know that in the email must be a NUL character, but I cannot see t

Re: Message contains NUL characters ...

2005-05-14 Thread Patrick J. LoPresti
For the record, this problem is not just caused by viruses and spam. Where I work, some of our customers are in Japan and China. I have examples of messages sent via Outlook/Exchange in Japanese and Chinese which include embedded NUL characters. Rejecting these messages is simply not an option f

Re: Message contains NUL characters ...

2005-05-12 Thread Greg A. Woods
[ On Thursday, May 12, 2005 at 09:38:03 (+0200), John Fawcett wrote: ] > Subject: Re: Message contains NUL characters ... > > I meant they are not readable in cyrus: at least not without my > patch :-) Well to be even more pedantic, they're not storable by Cyrus. Were they t

Re: Message contains NUL characters ...

2005-05-12 Thread John Fawcett
Greg A. Woods wrote: > [ On Thursday, May 12, 2005 at 00:30:46 (+0200), John Fawcett wrote: ] > >>Subject: Re: Message contains NUL characters ... >> >>nothing actually breaks by removing the nuls. The messges weren't >>readable before and may not be readable

Re: Message contains NUL characters ...

2005-05-12 Thread Greg A. Woods
[ On Thursday, May 12, 2005 at 00:30:46 (+0200), John Fawcett wrote: ] > Subject: Re: Message contains NUL characters ... > > nothing actually breaks by removing the nuls. The messges weren't > readable before and may not be readable afterwards. You cannot know that they were not

Re: Message contains NUL characters ...

2005-05-11 Thread John Fawcett
Greg A. Woods wrote: > [ On Tuesday, May 10, 2005 at 22:33:43 (+0200), John Fawcett wrote: ] > >>Subject: Re: Message contains NUL characters ... >> >>by the way, while looking into the code to do the patch, I saw that >>cyrus already carries out some modifications t

Re: Message contains NUL characters ...

2005-05-11 Thread Greg A. Woods
[ On Tuesday, May 10, 2005 at 22:33:43 (+0200), John Fawcett wrote: ] > Subject: Re: Message contains NUL characters ... > > by the way, while looking into the code to do the patch, I saw that > cyrus already carries out some modifications to messages (example > removing bare \r and

Re: Message contains NUL characters ...

2005-05-11 Thread Jukka Salmi
Aleksandar Milivojevic --> info-cyrus (2005-05-11 10:43:06 -0500): > John Fawcett wrote: > > >by the way, while looking into the code to do the patch, I saw that > >cyrus already carries out some modifications to messages (example > >removing bare \r and replacing bare \n with \r\n) so there is a

Re: Message contains NUL characters ...

2005-05-11 Thread Aleksandar Milivojevic
John Fawcett wrote: by the way, while looking into the code to do the patch, I saw that cyrus already carries out some modifications to messages (example removing bare \r and replacing bare \n with \r\n) so there is a precedent. Original Cyrus sources, or RedHat/Fedora SRPMs? I might be wrong (wo

Re: Message contains NUL characters ...

2005-05-10 Thread Aleksandar Milivojevic
Douglas K. Fischer wrote: John Fawcett wrote: | Greg A. Woods wrote: | |> Stripping NUL bytes modifies the message and that's a _REALLY |> BAD_ thing to do. It is infinitely better to reject than to |> arbitrarily modify the message in a destructive manner. | | | Maybe I misunderstood earlier post

Re: Message contains NUL characters ...

2005-05-10 Thread John Fawcett
Douglas K. Fischer wrote: > John Fawcett wrote: > > | Greg A. Woods wrote: > | > |> Stripping NUL bytes modifies the message and that's a _REALLY > |> BAD_ thing to do. It is infinitely better to reject than to > |> arbitrarily modify the message in a destructive manner. > | > | > | Maybe I misun

Re: Message contains NUL characters ...

2005-05-10 Thread Douglas K. Fischer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Fawcett wrote: | Greg A. Woods wrote: | |> Stripping NUL bytes modifies the message and that's a _REALLY |> BAD_ thing to do. It is infinitely better to reject than to |> arbitrarily modify the message in a destructive manner. | | | Maybe I misund

Re: Message contains NUL characters ...

2005-05-09 Thread Greg A. Woods
[ On Monday, May 9, 2005 at 20:51:09 (+0200), John Fawcett wrote: ] > Subject: Re: Message contains NUL characters ... > > as I understand it's the nuls in the header/body checks which > are not supported, not the presence of a nul in the message which > prevents header/body

Re: Message contains NUL characters ...

2005-05-09 Thread John Fawcett
Greg A. Woods wrote: > [ On Sunday, May 8, 2005 at 21:35:58 (+0200), John Fawcett wrote: ] > >>I am very happy with postfix! > > > Apparently Postfix suffers a design flaw in that its internal dictionary > lookup API uses NUL-terminated strings so it is not possible for it to > easily use any r

Re: Message contains NUL characters ...

2005-05-09 Thread Greg A. Woods
[ On Sunday, May 8, 2005 at 21:35:58 (+0200), John Fawcett wrote: ] > Subject: Re: Message contains NUL characters ... > > the reason is that at the moment I can have nuls rejected by cyrus > and potentially bounced to some innocent third party in the case > of forged sender address

Re: Message contains NUL characters ...

2005-05-09 Thread info-cyrus
--On May 9, 2005 8:38:48 AM +0200 John Fawcett <[EMAIL PROTECTED]> wrote: Postfix may be compiled with support for PCRE reqular expressions. Use PCRE in body_check, header_checks to detect and reject NULs. that's not possible at the moment, unless postfix has changed in the meantime. See for exampl

Re: Message contains NUL characters ...

2005-05-09 Thread Andrzej Adam Filip
John Fawcett wrote: Andrzej Adam Filip wrote: Marc G. Fournier wrote: On Sun, 8 May 2005, Greg A. Woods wrote: If you can't re-configure or fix your MTA to reject messages that contain NUL bytes (in either the headers or body -- it's all the same to SMTP), then get a better mailer Any idea o

Re: Message contains NUL characters ...

2005-05-09 Thread John Fawcett
Andrzej Adam Filip wrote: > Marc G. Fournier wrote: > >> On Sun, 8 May 2005, Greg A. Woods wrote: >> >>> If you can't re-configure or fix your MTA to reject messages that >>> contain NUL bytes (in either the headers or body -- it's all the same to >>> SMTP), then get a better mailer >> >> >>

Re: Message contains NUL characters ...

2005-05-08 Thread Andrzej Adam Filip
Marc G. Fournier wrote: On Sun, 8 May 2005, Greg A. Woods wrote: If you can't re-configure or fix your MTA to reject messages that contain NUL bytes (in either the headers or body -- it's all the same to SMTP), then get a better mailer Any idea on how wto set this up with postix? Postfix may

Re: Message contains NUL characters ...

2005-05-08 Thread Marc G. Fournier
On Sun, 8 May 2005, Greg A. Woods wrote: If you can't re-configure or fix your MTA to reject messages that contain NUL bytes (in either the headers or body -- it's all the same to SMTP), then get a better mailer Any idea on how wto set this up with postix? Marc G. Fournier Hub.Or

Re: Message contains NUL characters ...

2005-05-08 Thread John Fawcett
Greg A. Woods wrote: > I don't know why you guys keep beating against this. There's nothing > wrong with Cyrus and nothing that needs changing in Cyrus. the reason is that at the moment I can have nuls rejected by cyrus and potentially bounced to some innocent third party in the case of forged s

Re: Message contains NUL characters ...

2005-05-08 Thread Greg A. Woods
[ On Sunday, May 8, 2005 at 11:44:23 (+0200), John Fawcett wrote: ] > Subject: Re: Message contains NUL characters ... > > One further point: what about nuls in message headers? > As far as I can see spool_copy_msg() handles the body. > So it doesn't seem that lmtp messa

Re: Message contains NUL characters ...

2005-05-08 Thread John Fawcett
John Fawcett wrote: > > I think the correct place to strip nuls is: > spool.c: spool_copy_msg > > To be consistent should this change also be made to: > message.c: message_copy_strict > > Any other ideas or comments which would help with making a patch? > > thanks > John I've taken a look at t

Re: Message contains NUL characters ...

2005-05-05 Thread Tim Tait
Igor Brezac wrote: On Thu, 28 Apr 2005, Henrique de Moraes Holschuh wrote: On Thu, 28 Apr 2005, John Fawcett wrote: Anyone know whether a patch for cyrus to strip out nuls would be welcome? Make it clean, and optional (as in either reject the message, or remove the NULs...), and I don't see why n

Re: Message contains NUL characters ...

2005-05-02 Thread Henrique de Moraes Holschuh
On Mon, 02 May 2005, John Fawcett wrote: > If I am correct in this interpretation, an MTA which passes them on to > Cyrus (ie did not generate them but did accept them) is behaving > correctly? Of course not. Forwarding and sending are the same thing. The MTA has to strip NULs (IMHO anyway). --

Re: Message contains NUL characters ...

2005-05-02 Thread John Fawcett
David R Bosso wrote: > --On Thursday, April 28, 2005 4:13 PM -0400 Joseph Brennan > <[EMAIL PROTECTED]> wrote: > >> >> >> --On Thursday, April 28, 2005 16:22 -0300 "Marc G. Fournier" >> <[EMAIL PROTECTED]> wrote: >> >> >>> Someone mentioned that this was, in fact, not forbid'd in the RFCs ... >>>

Re: Message contains NUL characters ...

2005-05-02 Thread John Fawcett
Igor Brezac wrote: > > On Thu, 28 Apr 2005, Marc G. Fournier wrote: > >> On Thu, 28 Apr 2005, Igor Brezac wrote: >> >>> They do not need to be patched, just configured correctly. >> >> >> Please elaborate? > > > Someone just mentioned that for postfix you can setup a content filter. > For sendm

Re: Message contains NUL characters ...

2005-05-02 Thread John Fawcett
Henrique de Moraes Holschuh wrote: > On Thu, 28 Apr 2005, David R Bosso wrote: > >>So as before, it's illegal to send them. > > > Which means the MTAs have to accept *and strip* them, as forwading is just > an subcase of sending, IMHO. > > Now, if the requirements for a spool (MDA) are the same

Re: Message contains NUL characters ...

2005-04-28 Thread Joseph Brennan
It's pretty easy to stop messages with null characters if you use Mimedefang, a milter. A built-in function called SuspiciousCharsInBody tags messages with either nulls or bare CR or LF. We've let this go but since we're testing a Cyrus server it looked like we should stop them coming in. We star

Re: Message contains NUL characters ...

2005-04-28 Thread Henrique de Moraes Holschuh
On Thu, 28 Apr 2005, David R Bosso wrote: > So as before, it's illegal to send them. Which means the MTAs have to accept *and strip* them, as forwading is just an subcase of sending, IMHO. Now, if the requirements for a spool (MDA) are the same as those for a MTA, then Cyrus must accept and strip

Re: Message contains NUL characters ...

2005-04-28 Thread David R Bosso
--On Thursday, April 28, 2005 4:13 PM -0400 Joseph Brennan <[EMAIL PROTECTED]> wrote: --On Thursday, April 28, 2005 16:22 -0300 "Marc G. Fournier" <[EMAIL PROTECTED]> wrote: Someone mentioned that this was, in fact, not forbid'd in the RFCs ... could you point to the relevant RFC where it is?

Re: Message contains NUL characters ...

2005-04-28 Thread Amos
Andrew Morgan wrote: Maybe I need to read back in this thread to remember, but what was the suggested solution in Cyrus? I think Cyrus is correct to bounce these messages back to the sender. Accepting them seems somewhat dangerous. What happens when parts of Cyrus or the IMAP protocol see a NU

Re: Message contains NUL characters ...

2005-04-28 Thread David R Bosso
--On Thursday, April 28, 2005 4:22 PM -0300 "Marc G. Fournier" <[EMAIL PROTECTED]> wrote: Someone mentioned that this was, in fact, not forbid'd in the RFCs ... could you point to the relevant RFC where it is? Considering how 'strict' postfix seems to be, having an RFC to back that up might show

Re: Message contains NUL characters ...

2005-04-28 Thread Henrique de Moraes Holschuh
On Thu, 28 Apr 2005, Marc G. Fournier wrote: > On Thu, 28 Apr 2005, Henrique de Moraes Holschuh wrote: > >You don't seem to get it. The RFCs forbid NULs. What Cyrus is rejecting > >may be anything, but an email it is not. > > Someone mentioned that this was, in fact, not forbid'd in the RFCs ...

Re: Message contains NUL characters ...

2005-04-28 Thread Ken Murchison
Derrick J Brashear wrote: On Thu, 28 Apr 2005, Henrique de Moraes Holschuh wrote: But we really need to do something about the also non-RFC compliant crap that sends too-big lines as well, cyrus screws up when breaking those lines. Is that bug completely fixed yet? No. If you have a suggestion fo

Re: Message contains NUL characters ...

2005-04-28 Thread Joseph Brennan
--On Thursday, April 28, 2005 16:22 -0300 "Marc G. Fournier" <[EMAIL PROTECTED]> wrote: Someone mentioned that this was, in fact, not forbid'd in the RFCs ... could you point to the relevant RFC where it is? Considering how 'strict' postfix seems to be, having an RFC to back that up might show

Re: Message contains NUL characters ...

2005-04-28 Thread Igor Brezac
On Thu, 28 Apr 2005, Marc G. Fournier wrote: On Thu, 28 Apr 2005, Igor Brezac wrote: They do not need to be patched, just configured correctly. Please elaborate? Someone just mentioned that for postfix you can setup a content filter. For sendmail, add '1' to your mailer flags. It is pretty simple

Re: Message contains NUL characters ...

2005-04-28 Thread Marc G. Fournier
On Thu, 28 Apr 2005, Amos wrote: Henrique de Moraes Holschuh wrote: The correct place to do it is in the MTA. Doing it in the MTA means you get the trash out before anything else has a chance to bounce it back, log it, store it, or whatever. Which doesn't mean I would be against a good patch for

Re: Message contains NUL characters ...

2005-04-28 Thread Marc G. Fournier
On Thu, 28 Apr 2005, Igor Brezac wrote: They do not need to be patched, just configured correctly. Please elaborate? Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: [EMAIL PROTECTED] Yahoo!: yscrappy ICQ: 7615664 --- Cyrus Home Page: ht

Re: Message contains NUL characters ...

2005-04-28 Thread Wil Cooley
On Thu, 2005-04-28 at 14:57 -0400, Igor Brezac wrote: > > that not every delivery agent/message store will reject NULs > > so there is no need for the MTA to strip them out. > > So cyrus should also be broken? I don't know if it's fair to say they're broken; conventional wisdom says "be strict i

Re: Message contains NUL characters ...

2005-04-28 Thread Andrew Morgan
On Thu, 28 Apr 2005, Amos wrote: Maybe *ideally* it needs to be fixed by the MTA. However, just casually following this list and the postfix-users list, whenever the issue of NUL characters have come up, it has always been centered around Cyrus. I know that there are folks using Postfix with oth

Re: Message contains NUL characters ...

2005-04-28 Thread Marc G. Fournier
On Thu, 28 Apr 2005, Henrique de Moraes Holschuh wrote: On Thu, 28 Apr 2005, John Fawcett wrote: postfix can do it with a content filter. I just wondered whether there was any chance of a patch being accepted in cyrus? I mean that would address the problem at it's root instead of working round it i

Re: Message contains NUL characters ...

2005-04-28 Thread Andreas Hasenack
On Thu, Apr 28, 2005 at 03:14:22PM -0300, Henrique de Moraes Holschuh wrote: > Which doesn't mean I would be against a good patch for Cyrus, but I would > rather the MTAs started either fixing or rejecting all such crap worldwide. > If exim, sendmail and postfix rejected broken messages, that would

Re: Message contains NUL characters ...

2005-04-28 Thread Amos
Henrique de Moraes Holschuh wrote: The correct place to do it is in the MTA. Doing it in the MTA means you get the trash out before anything else has a chance to bounce it back, log it, store it, or whatever. Which doesn't mean I would be against a good patch for Cyrus, but I would rather the MTAs

Re: Message contains NUL characters ...

2005-04-28 Thread Igor Brezac
On Thu, 28 Apr 2005, John Fawcett wrote: Igor Brezac wrote: On Thu, 28 Apr 2005, Henrique de Moraes Holschuh wrote: On Thu, 28 Apr 2005, John Fawcett wrote: Anyone know whether a patch for cyrus to strip out nuls would be welcome? Make it clean, and optional (as in either reject the message, or re

Re: Message contains NUL characters ...

2005-04-28 Thread Henrique de Moraes Holschuh
On Thu, 28 Apr 2005, John Fawcett wrote: > postfix can do it with a content filter. I just wondered whether > there was any chance of a patch being accepted in cyrus? > > I mean that would address the problem at it's root instead of > working round it in n different MTAs. You don't seem to get it

Re: Message contains NUL characters ...

2005-04-28 Thread Derrick J Brashear
On Thu, 28 Apr 2005, Henrique de Moraes Holschuh wrote: But we really need to do something about the also non-RFC compliant crap that sends too-big lines as well, cyrus screws up when breaking those lines. Is that bug completely fixed yet? No. If you have a suggestion for how to do it without touch

Re: Message contains NUL characters ...

2005-04-28 Thread John Fawcett
Igor Brezac wrote: > > On Thu, 28 Apr 2005, Henrique de Moraes Holschuh wrote: > >> On Thu, 28 Apr 2005, John Fawcett wrote: >> >>> Anyone know whether a patch for cyrus to strip out nuls would be >>> welcome? >> >> >> Make it clean, and optional (as in either reject the message, or >> remove the

Re: Message contains NUL characters ...

2005-04-28 Thread John Fawcett
Igor Brezac wrote: > > On Thu, 28 Apr 2005, John Fawcett wrote: > >> Marc G. Fournier wrote: >> >>> On Mon, 25 Apr 2005, John Fawcett wrote: >>> Sometimes I check what I'm discarding and only remember seeing spam. That could explain the upward trend in these messages (in line with

Re: Message contains NUL characters ...

2005-04-28 Thread Igor Brezac
On Thu, 28 Apr 2005, Henrique de Moraes Holschuh wrote: On Thu, 28 Apr 2005, John Fawcett wrote: Anyone know whether a patch for cyrus to strip out nuls would be welcome? Make it clean, and optional (as in either reject the message, or remove the NULs...), and I don't see why not. The default woul

Re: Message contains NUL characters ...

2005-04-28 Thread Henrique de Moraes Holschuh
On Thu, 28 Apr 2005, John Fawcett wrote: > Anyone know whether a patch for cyrus to strip out nuls would be > welcome? Make it clean, and optional (as in either reject the message, or remove the NULs...), and I don't see why not. The default would need to be reject, though. But we really need to

Re: Message contains NUL characters ...

2005-04-28 Thread Igor Brezac
On Thu, 28 Apr 2005, John Fawcett wrote: Marc G. Fournier wrote: On Mon, 25 Apr 2005, John Fawcett wrote: Sometimes I check what I'm discarding and only remember seeing spam. That could explain the upward trend in these messages (in line with the general increase in spam), although I've not seen th

Re: Message contains NUL characters ...

2005-04-28 Thread John Fawcett
Marc G. Fournier wrote: > On Mon, 25 Apr 2005, John Fawcett wrote: > >> Sometimes I check what I'm discarding and only remember seeing spam. >> That could explain the upward trend in these messages (in line with >> the general increase in spam), although I've not seen that and have >> too small nu

Re: Message contains NUL characters ...

2005-04-27 Thread Marc G. Fournier
On Mon, 25 Apr 2005, John Fawcett wrote: On Mon, 25 Apr 2005, Michael Sims wrote: Sometimes I check what I'm discarding and only remember seeing spam. That could explain the upward trend in these messages (in line with the general increase in spam), although I've not seen that and have too small n

Re: Message contains NUL characters ...

2005-04-25 Thread John Fawcett
Marc G. Fournier wrote: > On Mon, 25 Apr 2005, Michael Sims wrote: > >> Marc G. Fournier wrote: >> >>> Apr 24 15:29:02 hub postfix/lmtp[54800]: 0367A1298D0: >>> to=<[EMAIL PROTECTED]>, relay=/var/run/socket/lmtp[/var/run/socket/lmtp], >>> delay=273190, status=bounced (host >>> /var/run/socket/lmtp

RE: Message contains NUL characters ...

2005-04-25 Thread Marc G. Fournier
On Mon, 25 Apr 2005, Michael Sims wrote: Marc G. Fournier wrote: Apr 24 15:29:02 hub postfix/lmtp[54800]: 0367A1298D0: to=<[EMAIL PROTECTED]>, relay=/var/run/socket/lmtp[/var/run/socket/lmtp], delay=273190, status=bounced (host /var/run/socket/lmtp[/var/run/socket/lmtp] said: 554 5.6.0 Message cont

Re: Message contains NUL characters ...

2005-04-25 Thread Amos
Derrick J Brashear wrote: Well, there's also the possibility as we discussed in October that your mta is passing (too) long (to be compliant) lines to cyrus, and the logic doesn't distinguish and prints the same error. FYI, WebCT (Campus Edition) also triggers this problem. If an instructor has

RE: Message contains NUL characters ...

2005-04-25 Thread Derrick J Brashear
On Mon, 25 Apr 2005, Michael Sims wrote: Marc G. Fournier wrote: Apr 24 15:29:02 hub postfix/lmtp[54800]: 0367A1298D0: to=<[EMAIL PROTECTED]>, relay=/var/run/socket/lmtp[/var/run/socket/lmtp], delay=273190, status=bounced (host /var/run/socket/lmtp[/var/run/socket/lmtp] said: 554 5.6.0 Message cont

RE: Message contains NUL characters ...

2005-04-25 Thread Michael Sims
Marc G. Fournier wrote: > Apr 24 15:29:02 hub postfix/lmtp[54800]: 0367A1298D0: > to=<[EMAIL PROTECTED]>, relay=/var/run/socket/lmtp[/var/run/socket/lmtp], > delay=273190, status=bounced (host > /var/run/socket/lmtp[/var/run/socket/lmtp] said: 554 5.6.0 Message > contains NUL characters (in reply t

Re: "Message contains NUL characters"

2004-12-09 Thread Aleksandar Milivojevic
Andrew Dietz wrote: Naturally, I am inclined to allow messages with NUL characters to be delivered, as bouncing legitimate messages to unsuspecting, technically unsavvy senders is not an option. How can I have Cyrus ignore NUL characters in messages? You'd probably need to edit Cyrus source code an

Re: Message contains NUL characters (in reply to end of DATA command)

2004-02-19 Thread Craig Ringer
On Fri, 2004-02-20 at 03:02, Rafel Amer wrote: > Message contains NUL characters (in reply to end of DATA command)) > > Does anybody know how I can solve this problem? Fix the mail client? Perhaps an updated version of Outlook might help. What version of Outlook are you using? Alternately, is it

Re: Message contains NUL characters (in reply to end of DATA command)

2004-02-19 Thread Henrique de Moraes Holschuh
On Thu, 19 Feb 2004, Rafel Amer wrote: > /var/lib/cyrus/socket/lmtp[/var/lib/cyrus/socket/lmtp] said: 554 5.6.0 > Message contains NUL characters (in reply to end of DATA command)) > > Does anybody know how I can solve this problem? Get your MTA to strip NULs from "messages". Note that somethin