delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
content-class: | urn:content-classes:message |
MIME-Version: | 1.0 |
Subject: | RE: CYGWIN + APCHE + Net::SMTP |
Date: | Wed, 22 Sep 2004 16:04:23 -0700 |
Message-ID: | <24BDFF97F1939B44BCBA2E6AADEB0A28233921@mailsc.engineering.netscaler.com> |
X-MS-Has-Attach: | |
X-MS-TNEF-Correlator: | |
From: | "Prakash Khemani" <khemani AT netscaler DOT com> |
To: | "Prakash Khemani" <khemani AT netscaler DOT com>, <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id i8MN656T002671 |
A similar problem occurs when I use /usr/sbin/ssmtp instead of Perl's Net::SMTP. I am able to send mail using /usr/sbin/ssmtp from the cygin shell cmd line. But when ssmtp is invoked from a perl script inside Apache2's CGI environment (sunning on Windows XP and cygwin) - I get the following error ssmtp: Cannot open mail.eng.netscaler.com:25 So, I guess the question is why am I not able to open socket connections in a process that is spawned by Apache (running in the Cygwin environment)? Thanks, Prakash > -----Original Message----- > From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf > Of Prakash Khemani > Sent: Wednesday, September 22, 2004 3:30 PM > To: cygwin AT cygwin DOT com > Subject: Re: CYGWIN + APCHE + Net::SMTP > > Mail.pl works fine in the sysbash shell. > > Thanks, > Prakash > > ------ > Prakash Khemani wrote: > > > > I have a simple perl mail program mail.pl (pasted at the end of this > > mail). In the cygwin environment it is able to send mail out when I > run > > it from the command line. > > > > I also have apache2 running in my cygwin environment. When I run > mail.pl > > as a CGI script it is not able to connect to the the smtp server. The > > Socket connection is failing (as I noticed after putting some error > > prints in SMTP.pm). > > > > The apache server is running as SYSTEM user. In the command line I run > > it with user Khemani's permissions. > > I've seen this before and IIRC it was due to some kind of account > restrictions imposed on the SYSTEM account in later versions of > windows. Get a command prompt as the SYSTEM account and try running the > script from it -- if it fails that will rule out the whole Apache side > of things. To do this google these archives for "sysbash" or just use > the "now /interactive" command by hand. > > If this is the case then you will probably have to either grant SYSTEM > those revoked privileges or run Apache as one of the other system > accounts, such as "NETWORK SERVICE" (which is new in XP and later.) > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |