Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <4151F6CA.CEFF2CA9@dessent.net> Date: Wed, 22 Sep 2004 15:03:54 -0700 From: Brian Dessent Organization: My own little world... MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: CYGWIN + APCHE + Net::SMTP References: <24BDFF97F1939B44BCBA2E6AADEB0A28233920 AT mailsc DOT engineering DOT netscaler DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com 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.) Brian -- 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/