OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Problem sending a DOS text file from Linux to Windows.

From: Wietse Venema (wietseporcupine.org)
Date: Fri Feb 01 2008 - 09:29:18 CST


scott.postfixscottrix.co.uk:
> >UNIX systems don't use DOS textfile formats. Use the unix2dos
> >command (or similar tool) to properly handle DOS text files on a
> >UNIX system.
>
> From what I have managed to find on the web the SMTP protocol uses CRLF
> text to transfer text data around, now I assume that postfix is doing the
> conversion from unix text (LF) to SMTP text (CRLF), if the text is already
> in that format and since it is text data and not binary is there a problem
> with leaving text that is already (CRLF) alone ?

No this is incorrect.

Local text MUST be in UNIX text format. Postfix will convert
between network formats and local formats.

To send DOS a textfile from a UNIX system use a DOS/UNIX conversion
tool or send the file as a base64 encoded attachment.

        Wietse