Line Feed
I have been requested to make a change to one of my qmail servers [see below], though I am unsure of how to do this. Also, can anyone confirm that there is an RFC stating that a CR is a LF? TIA, ../mk -Original Message- Subject:Mail server config Could your mail relay/server be configured so that LF is allowed as a line terminator? RFC requires CR LF as the terminator and the server by default would enforce the rule, which causes problem for our legacy codes. Almost all servers allow this type of configuration. - End forwarded message -
Re: Line Feed
Marc Knoop [EMAIL PROTECTED] wrote: I have been requested to make a change to one of my qmail servers [see below], though I am unsure of how to do this. You could patch qmail to do this, but it's a bad idea. See further info below. Also, can anyone confirm that there is an RFC stating that a CR is a LF? The relevant RFC is RFC2821 -- but it specifically forbids treating a bare LF as a line separator. The requirement is indeed CR+LF. I've never seen anyone quote anything claiming CR is a LF and am not sure what you mean by it. To fix this for broken clients, you can use fixcrio, or djb's @fixme/fixup solution which feeds to new-inject or qmail-inject to rewrite the message. See djb's FAQs and many discussions in the list archives for details. But of course the best solution is fix the broken clients. Charles -- --- Charles Cazabon[EMAIL PROTECTED] GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/ Any opinions expressed are just that -- my opinions. ---
Re: Line Feed
Marc Knoop writes: I have been requested to make a change to one of my qmail servers [see below], though I am unsure of how to do this. Probably the best thing to do, to minimize the possible corruption of email, is to add a /service/smtpdlf, bind to another IP address or port number, and patch the copy of qmail-smtpd that's running on that service so it accepts LF as a line terminator. Then tell the people who can't fix their broken code that they can use smtpdlf at the different port or IP address. -russ -Original Message- Subject: Mail server config Could your mail relay/server be configured so that LF is allowed as a line terminator? RFC requires CR LF as the terminator and the server by default would enforce the rule, which causes problem for our legacy codes. Almost all servers allow this type of configuration. - End forwarded message - -- -russ nelson [EMAIL PROTECTED] http://russnelson.com Crynwr sells support for free software | PGPok | 521 Pleasant Valley Rd. | +1 315 268 1925 voice | John Hartford, RIP Potsdam, NY 13676-3213 | +1 315 268 9201 FAX |
Re: Line Feed
On Thu, Jun 07, 2001 at 10:49:58AM -0400, Marc Knoop wrote: I have been requested to make a change to one of my qmail servers [see below], though I am unsure of how to do this. Search the archives for 'fixcrio' -- it's intended for just such broken clients. Also, can anyone confirm that there is an RFC stating that a CR is a LF? I think that your word choices here are poor. No RFC that I am aware of states that a CR is a LF, however, RFC821/2821 defines a line as a string of characters terminated by CR and LF. http://www.faqs.org/rfcs/rfc2822.html HTH, -- Greg White
Re: Line Feed
On Thu, Jun 07, 2001 at 10:49:58AM -0400, Marc Knoop wrote: I have been requested to make a change to one of my qmail servers [see below], though I am unsure of how to do this. Use fixcrio. Not sure which package it is in. Also, can anyone confirm that there is an RFC stating that a CR is a LF? There is not. Also, applying the requested fix opens up your mailserver to all kinds of message corruption. There is a reason qmail doesn't accept these broken messages by default, and that reason is that rejecting those messages prevents corruption. Messages with incorrect line-endings could get severely corrupted in the transmission. Basically, my advice is to tell them to fix their software. That's what we do, and everybody has done that, so far. Greetz, Peter.
Re: Line Feed
On Thu, Jun 07, 2001 at 09:28:45AM -0600, Charles Cazabon wrote: [snip] To fix this for broken clients, you can use fixcrio, or djb's @fixme/fixup solution which feeds to new-inject or qmail-inject to rewrite the message. @fixme/fixup is not gonna help, because the message is rejected at the SMTP level already, unless you use fixcrio, at which point @fixme/fixup becomes obsolete. Greetz, Peter.
Re: Line Feed
On Thu, Jun 07, 2001 at 09:05:09AM -0700, Greg White wrote: Search the archives for 'fixcrio' -- it's intended for just such broken clients. Ahh. Excellent. Also, can anyone confirm that there is an RFC stating that a CR is a LF? I think that your word choices here are poor. No RFC that I am aware of states that a CR is a LF, however, RFC821/2821 defines a line as a string of characters terminated by CR and LF. It was indeed a bad choice of words. Reading RFC2821 cleared it all up for me and aided me in a reply to the person who requested the 'feature' change. Thanks to all for the swift responses, including Charles and Russell. -- ../mk
bare line feed?
Greetings, I log smtp connects to a file and at certain times one user will seem to be getting pounded with mail from a particular IP. When I check the maildir there is nothing new there. There are no errors going to the syslog. Could this be the bare linefeed issue? Would that cause the chatter between my server and the sender's? If this is a linefeed issue, would adding the fixcr program to the tcpserver line for smtp program handle that without putting undo strain on the box to deal with just a few hosts that send out garbage? Thanks, mike. NetZero - We believe in a FREE Internet. Shouldn't you? Get your FREE Internet Access and Email at http://www.netzero.net/download/index.html