Chris Smith wrote:
Hi,
I'm hoping to obtain some confirmation on the data format the sendmail
interface expects, I am under the impression that as a NIX program it
will expect emails using LF for new lines as opposed to the SMTP
standard of CRLF. How does this apply to line folding? Does Postfix then
expect LFWSP as opposed to CRLFWSP?
In my testing Postfix seemed fairly tolerant,
postfix sendmail(1) will accept pretty much any crap you
submit, even binary files.
where as other people have
not been seen it be so forgiving.
Just because postfix accepts it doesn't mean the receiving
mailer can display it.
I'd like to confirm what the proper
format is and if anyone knows does this apply across the board to other
mailers? (I appreciate that is slightly off topic)
The submission should be a normal system text file, with line
breaks inserted every 50-70 characters. "normal system text
file" applies to whatever system you are on. "line breaks"
are whatever the system uses for line breaks. The receiving
mail program can then sort out how to display it. This is
fairly universal. Don't confuse system line breaks with what
SMTP expects during transmission.
Don't make it more complicated than it needs to be.
-- Noel Jones