DOCUMENT:Q115493 29-OCT-1999 [pcmail] TITLE :SMTP: How SMTPGATE Processes Incoming SMTP Messages PRODUCT :Microsoft Mail For PC Networks PROD/VER:MS-DOS:3.0 OPER/SYS: KEYWORDS: ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Mail Gateway to SMTP, version 3.0 ------------------------------------------------------------------------------- The following steps outline how SMTPGATE.EXE processes incoming SMTP messages. The files created and used by SMTPGATE.EXE are also described. 1. From the RFC 821 information, we extract MAIL FROM and RCPT TO lines up to the DATA command and put them in the SMTP_IN.ENV file. 2. From the RFC822 information, we append all header lines, the message text, and attachments after the DATA command and put them in the SMTP_IN.822 file. 3. The gateway translates the header part of the SMTP_IN.822 file. 4. At the same time, it copies the header (filtering out the Receive lines if the -T switch is not on) to the API_OUT.TMP temporary file. The gateway closes API_OUT.TMP and records its size. 5. API_OUT.TMP is reopened and appended with the body of SMTP_IN.822. 6. The gateway creates the TO_NC.API file. 7. The API_OUT.TMP file is copied into TO_NC.API. 8. The body of SMTP_IN.822 is appended to the TO_NC.API file and the attached files are UU decoded. 9. SMTP spawns SMTPPUT.EXE, which uses TO_NC.API as its input file for the Microsoft Mail postoffice. For more information on errors, query on ERROR:SMTPPUT here in the Microsoft Knowledge Base. Additional query words: 3.00 smtpgate files ====================================================================== Keywords : Technology : kbMailSearch kbMailGateSearch kbZNotKeyword3 kbMailGateSMTP300 Version : MS-DOS:3.0 ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1999.