uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Sockets - NT Server, but Unix mailserver

Knowledge Base Lobby : uReserve Support Conference : Configuration Questions
Oct-17-17 04:46 PM EST
Original Message
Sockets - NT Server, but Unix mailserver
Author Jason Sheldon on 02-15-2002 at 12:36 (EST)
While testing this combination on an internal webserver running IIS, I've tried using 'SOCKETS' to connect to a mailserver running on Unix.

Nothing arrives at the destination.

The mailserver uses Qmail, and looking through the packets, it seems to respond with a message :
"See http://pobox.com/~djb/docs/smtplf.html"
which contains information on 'bare linefeeds'.
I see the script sends "rn" so things look ok.

Are there any known problems using Qmail?

I've also tried swapping the Unix #'s and NT #s for the different socket commands, to no avail.

Any ideas why mails aren't being received? They DO seem to be heading out to the mailserver, but are not being processed, which leads me to think that there is a problem with the formatting of the message that I can't debug.

Jason
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  More information!! Confirmed Linefeed problem Jason Sheldon, 2002-02-15 12:59:12 (1)
            RE: More information!! Confirmed Linefeed problem Bill Weiner, 2002-02-16 08:36:13 (2)

Messages In This Discussion
         1. More information!! Confirmed Linefeed problem
        Author Jason Sheldon on 02-15-2002 at 12:59 (EST)
At the end of the script file, go up a few lines until you see the line:

print S "$message";

I commented that line out and underneath added:

print S "testingrnTesting";

saved, then tested it.

The emails came through fine, so it does appear to be a problem with the bare linefeeds in the $Message text.
This should be a straightforward fix I would have thought, to ensure that the $message string has CR/LF instead of LF.

Regards,

Jason.
TABLE OF CONTENTS
                 2. RE: More information!! Confirmed Linefeed problem
                Author Bill Weiner on 02-16-2002 at 08:36 (EST)
Hmmm... That's interesting. It must be a function of going from an NT server (which I think just needs n) to a UNIX server (which needs the rn). We'll look into it. But in the meantime, if you just want to make sure the $message has carriage returns and line feeds, then you could try adding this line to the top of the "send_mail_sockets" subroutine:

$message ~= s/n/rn/g;

By the way, if uReserve was just running on a Unix server... I believe you could just use the the QMail program directly by just configuring uReserve's SENDMAIL email option with your Qmail path.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.