This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]


A similar problem occurs when I use /usr/sbin/ssmtp instead of Perl's

I am able to send mail using /usr/sbin/ssmtp from the cygin shell cmd

But when ssmtp is invoked from a perl script inside Apache2's CGI
environment (sunning on Windows XP and cygwin) - I get the following

ssmtp: Cannot open

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


> -----Original Message-----
> From: [] On
> Of Prakash Khemani
> Sent: Wednesday, September 22, 2004 3:30 PM
> To:
> Subject: Re: CYGWIN + APCHE + Net::SMTP
> works fine in the sysbash shell.
> Thanks,
> Prakash
> ------
> Prakash Khemani wrote:
> >
> > I have a simple perl mail program (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
> > as a CGI script it is not able to connect to the the smtp server.
> > Socket connection is failing (as I noticed after putting some error
> > prints in
> >
> > The apache server is running as SYSTEM user. In the command line I
> > 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
> 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:
> Problem reports:
> Documentation:
> FAQ:         

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]