www.uburst.com www.uburst.com

"Sockets - NT Server, but Unix mailserver"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Configuration Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Sockets - NT Server, but Unix mailserver"
Posted by Jason Sheldon on Feb-15-02 at 12:36 PM (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 "\r\n" 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

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

More information!! Confirmed Linef..., Jason Sheldon, Feb-15-02, (1)
RE: More information!! Confirmed Li..., Bill Weiner, Feb-16-02, (2)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "More information!! Confirmed Linefeed problem"
Posted by Jason Sheldon on Feb-15-02 at 12:59 PM (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 "testing\r\nTesting";

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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "RE: More information!! Confirmed Linefeed problem"
Posted by Bill Weiner on Feb-16-02 at 08:36 AM (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 \r\n). 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/\r\n/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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.