Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-12 Thread Jason Tishler
Chris,

On Wed, Aug 11, 2004 at 02:53:03PM -0400, Christopher Faylor wrote:
 I've added a line to cygwin which should display the failing hostname
 prior to displaying the winsock error.
 
 Could you retry with either the latest snapshot or the latest cvs?  It
 won't fix the problem but it might provide a clue.

Unfortunately, the clue isn't too helpful:

3118  204937 [main] ssmtp 11984 cygwin_gethostbyname: name localhost

I WAG that this problem may have something to due with the setgid/setuid
winsock problems that Pierre and I have seen (with exim) before.
Unfortunately, the trick of giving the Winsock registry keys read access
for Everyone did not work. :,(

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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/



Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-12 Thread Corinna Vinschen
On Aug 12 09:11, Jason Tishler wrote:
 Chris,
 
 On Wed, Aug 11, 2004 at 02:53:03PM -0400, Christopher Faylor wrote:
  I've added a line to cygwin which should display the failing hostname
  prior to displaying the winsock error.
  
  Could you retry with either the latest snapshot or the latest cvs?  It
  won't fix the problem but it might provide a clue.
 
 Unfortunately, the clue isn't too helpful:
 
 3118  204937 [main] ssmtp 11984 cygwin_gethostbyname: name localhost
 
 I WAG that this problem may have something to due with the setgid/setuid
 winsock problems that Pierre and I have seen (with exim) before.
 Unfortunately, the trick of giving the Winsock registry keys read access
 for Everyone did not work. :,(

What happens if you give everyone read access to
${WINDIR}/system32/drivers/etc/hosts

$ chmod o+r `cygpath -u $WINDIR`/system32/drivers/etc/hosts

?

Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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/



Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-12 Thread Jason Tishler
Corinna,

On Thu, Aug 12, 2004 at 03:31:33PM +0200, Corinna Vinschen wrote:
 On Aug 12 09:11, Jason Tishler wrote:
  I WAG that this problem may have something to due with the
  setgid/setuid winsock problems that Pierre and I have seen (with
  exim) before.  Unfortunately, the trick of giving the Winsock
  registry keys read access for Everyone did not work. :,(
 
 What happens if you give everyone read access to
 ${WINDIR}/system32/drivers/etc/hosts
 
 $ chmod o+r `cygpath -u $WINDIR`/system32/drivers/etc/hosts
 
 ?

Good idea -- unfortunately, it didn't help.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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/



Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-12 Thread Corinna Vinschen
On Aug 12 10:16, Jason Tishler wrote:
 Corinna,
 
 On Thu, Aug 12, 2004 at 03:31:33PM +0200, Corinna Vinschen wrote:
  On Aug 12 09:11, Jason Tishler wrote:
   I WAG that this problem may have something to due with the
   setgid/setuid winsock problems that Pierre and I have seen (with
   exim) before.  Unfortunately, the trick of giving the Winsock
   registry keys read access for Everyone did not work. :,(
  
  What happens if you give everyone read access to
  ${WINDIR}/system32/drivers/etc/hosts
  
  $ chmod o+r `cygpath -u $WINDIR`/system32/drivers/etc/hosts
  
  ?
 
 Good idea -- unfortunately, it didn't help.

Sounds weird perhaps but... what if you change this line in .procmailrc:

  PATH=/bin

to

  PATH=/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS

given that C:\WINDOWS is the installation path of your Windows.


Corinna


-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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/



Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-12 Thread Jason Tishler
Corinna,

On Thu, Aug 12, 2004 at 05:09:37PM +0200, Corinna Vinschen wrote:
 On Aug 12 10:16, Jason Tishler wrote:
  Good idea -- unfortunately, it didn't help.
 
 Sounds weird perhaps but... what if you change this line in
 .procmailrc:
 
   PATH=/bin
 
 to
 
   PATH=/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS
 
 given that C:\WINDOWS is the installation path of your Windows.

As expected, the above didn't help.

BTW, you should be able to reproduce the problem as follows:

$ procmail .procmailrc-ssmtp test.mail

where .procmailrc-ssmtp contains the following:

LOGABSTRACT=all
MAILDIR=$HOME/mail
SENDMAIL=/usr/sbin/ssmtp

:0
! [EMAIL PROTECTED]

and test.mail contains the following:

From foo  Thu May  6 08:48:14 2004
Subject: test
Date: Thu, 6 May 2004 07:06:00 -0400
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

test

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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/



Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-12 Thread Corinna Vinschen
On Aug 12 11:55, Jason Tishler wrote:
 Corinna,
 
 On Thu, Aug 12, 2004 at 05:09:37PM +0200, Corinna Vinschen wrote:
  On Aug 12 10:16, Jason Tishler wrote:
   Good idea -- unfortunately, it didn't help.
  
  Sounds weird perhaps but... what if you change this line in
  .procmailrc:
  
PATH=/bin
  
  to
  
PATH=/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS
  
  given that C:\WINDOWS is the installation path of your Windows.
 
 As expected, the above didn't help.
 
 BTW, you should be able to reproduce the problem as follows:
 
 $ procmail .procmailrc-ssmtp test.mail
 
 where .procmailrc-ssmtp contains the following:
 
 LOGABSTRACT=all
 MAILDIR=$HOME/mail
 SENDMAIL=/usr/sbin/ssmtp
 
 :0
 ! [EMAIL PROTECTED]
 
 and test.mail contains the following:
 
 From foo  Thu May  6 08:48:14 2004
 Subject: test
 Date: Thu, 6 May 2004 07:06:00 -0400
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 
 test

procmail's fault.  procmail deletes too much of the environment.

Thou shalt not delete $SYSTEMROOT


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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/



Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-12 Thread Jason Tishler
Corinna,

On Thu, Aug 12, 2004 at 07:06:24PM +0200, Corinna Vinschen wrote:
 On Aug 12 11:55, Jason Tishler wrote:
  BTW, you should be able to reproduce the problem as follows:
  
  [snip]
 
 procmail's fault.  procmail deletes too much of the environment.
 
 Thou shalt not delete $SYSTEMROOT

Thanks for the hint!  I just uploaded a new version of procmail that
abides by the above commandment. :,)

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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/



Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-11 Thread Eugene Kotlyarov
Hello
   I have problem using ssmtp from procmail after upgrading to cygwin 
1.5.10-3. It only exists when ssmtp is called from procmail, when it is 
called directly it works fine. Does anyone have any idea what's wrong 
with it?

Such problem was already posted recently to this maillist, but there was 
no resolution to it.


PATH=/bin
MAILDIR=$HOME/Mail
DEFAULT=$MAILDIR/mbox
LOGFILE=$MAILDIR/from
SENDMAIL=/usr/sbin/ssmtp
VERBOSE=on

:0
* From:[EMAIL PROTECTED]
! [EMAIL PROTECTED]

#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#
# The person who gets all mail for userids  10
root=ekot
# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and you mailhub is so named.
mailhub=mail.protek
# Where will the mail seem to come from?
#rewriteDomain=om-080.protek
# The full hostname
hostname=protek.ru
# Set this to never rewrite the From: line (unless not given) and to
# use that address in the from line of the envelope.
FromLineOverride=YES

procmail: [1340] Wed Aug 11 11:46:49 2004
procmail: Match on From:[EMAIL PROTECTED]
procmail: Assigning LASTFOLDER=/usr/sbin/ssmtp -oi [EMAIL PROTECTED]
From EKOT  Wed Aug 11 11:46:49 2004
 Subject: test
  Folder: /usr/sbin/ssmtp -oi [EMAIL PROTECTED] 901
procmail: Executing /usr/sbin/ssmtp,-oi,[EMAIL PROTECTED]
ssmtp: Cannot open mail.protek:25


Cygwin Configuration Diagnostics
Current System Time: Wed Aug 11 11:45:48 2004

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4

Path:   C:\Program Files\Far
c:\oracle\ora817\bin
C:\Program Files\Oracle\jre\1.1.7\bin
C:\WINNT\system32
C:\WINNT
C:\WINNT\System32\Wbem
C:\Program Files\Microsoft SQL Server\80\Tools\BINN
C:\Program Files\Starbase\StarGate SDK\Lib
C:\Program Files\Starbase\StarGate SDK\Bin
c:\programs\pgp\gnupg
c:\cygwin\bin
c:\cygwin\ocamlmgw\bin
C:\Program Files\Borland\Delphi7\Bin
C:\Program Files\Borland\Delphi7\Projects\Bpl\
C:\PROGRA~1\Borland\CBUILD~1\Bin
C:\PROGRA~1\Borland\CBUILD~1\Projects\Bpl
C:\PROGRAms\MICROS~1.NET\COMMON7\IDE
C:\PROGRAms\COMMON~1\MICROS~1\VSA\7.1\VSAENV
C:\Programs\Microsoft Visual Studio .NET 2003\vc7\bin
C:\Programs\Borland\Delphi5\Bin
C:\Programs\Borland\Delphi7\Bin
C:\Programs\Borland\Delphi7\Projects\Bpl\
C:\Programs\Borland\CBuilder6\Bin
c:\cygwin\lcc\bin
C:\WINNT\Microsoft.NET\Framework\v1.1.4322

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 19404(EKOT) GID: 10513(Domain Users)
10513(Domain Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 19404(EKOT) GID: 10513(Domain Users)
547(Îïûòíûå ïîëüçîâàòåëè)  545(Ïîëüçîâàòåëè)
10513(Domain Users)18338(DSK_OM_RO)
12347(FIL_UDRV_FC) 17685(GR_DM)
12464(MARKETING)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

CYGWIN = `nontsec'
Path = `C:\Program Files\Far;c:\oracle\ora817\bin;C:\Program 
Files\Oracle\jre\1.1.7\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program
 Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\Starbase\StarGate 
SDK\Lib;C:\Program Files\Starbase\StarGate 
SDK\Bin;c:\programs\pgp\gnupg;c:\cygwin\bin;c:\cygwin\ocamlmgw\bin;C:\Program 
Files\Borland\Delphi7\Bin;C:\Program 
Files\Borland\Delphi7\Projects\Bpl\;C:\PROGRA~1\Borland\CBUILD~1\Bin;C:\PROGRA~1\Borland\CBUILD~1\Projects\Bpl;C:\PROGRAms\MICROS~1.NET\COMMON7\IDE;C:\PROGRAms\COMMON~1\MICROS~1\VSA\7.1\VSAENV;C:\Programs\Microsoft
 Visual Studio .NET 
2003\vc7\bin;C:\Programs\Borland\Delphi5\Bin;C:\Programs\Borland\Delphi7\Bin;C:\Programs\Borland\Delphi7\Projects\Bpl\;C:\Programs\Borland\CBuilder6\Bin;c:\cygwin\lcc\bin;C:\WINNT\Microsoft.NET\Framework\v1.1.4322'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\EKOT\Application Data'
BASH_ENV = `/etc/profile'
CommonProgramFiles = `C:\Program Files\Common Files'
COMPUTERNAME = `OM-080'
ComSpec = `C:\WINNT\system32\cmd.exe'
FARLANG = `English'
HOMEDRIVE = `C:'
HOMEPATH = `\'
INCLUDE = `C:\Program Files\Microsoft Visual Studio .NET 2003\vc7\include'
LIB = `C:\Program Files\Microsoft Visual Studio .NET 2003\vc7\lib'
LOGONSERVER = `\\NETSRV1'
NLS_DATE_FORMAT = `DD.MM.'
NLS_LANG = `AMERICAN_CIS.CL8MSWIN1251'
NUMBER_OF_PROCESSORS = `1'
OCAMLLIB = `c:/cygwin/ocamlmgw/lib'
OCAMLMAKEFILE = `c:/cygwin/ocamlmgw/ocamlmakefile'
OS = `Windows_NT'
Os2LibPath = `C:\WINNT\system32\os2\dll;'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 7, GenuineIntel'
PROCESSOR_LEVEL = `15'
PROCESSOR_REVISION = `0207'
ProgramFiles = `C:\Program Files'
PROMPT = `$P$G'
StarTeamApp = `C:\Program Files\Starbase\StarTeam 5.4'
SystemDrive = `C:'
SystemRoot = `C:\WINNT'
TEMP = 

Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-11 Thread Jason Tishler
On Wed, Aug 11, 2004 at 01:42:05PM +0400, Eugene Kotlyarov wrote:
 I have problem using ssmtp from procmail after upgrading to cygwin
 1.5.10-3. It only exists when ssmtp is called from procmail, when it
 is called directly it works fine. Does anyone have any idea what's
 wrong with it?

No, but I can add that gethostbyname() is failing as follows:

3597   52706 [main] ssmtp 9216 __set_winsock_errno: cygwin_gethostbyname:970 - 
winsock error 11001 - errno 1

Unfortunately, I haven't come up with a simple test case yet.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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/



Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-11 Thread Corinna Vinschen
On Aug 11 12:38, Jason Tishler wrote:
 On Wed, Aug 11, 2004 at 01:42:05PM +0400, Eugene Kotlyarov wrote:
  I have problem using ssmtp from procmail after upgrading to cygwin
  1.5.10-3. It only exists when ssmtp is called from procmail, when it
  is called directly it works fine. Does anyone have any idea what's
  wrong with it?
 
 No, but I can add that gethostbyname() is failing as follows:
 
 3597   52706 [main] ssmtp 9216 __set_winsock_errno: cygwin_gethostbyname:970 - 
 winsock error 11001 - errno 1

winsock error 11001 == WSAHOST_NOT_FOUND

$ net helpmsg 11001

No such host is known.


What does the line before the above line in the strace output look like?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Co-Project Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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/



Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-11 Thread Jason Tishler
Corinna,

On Wed, Aug 11, 2004 at 07:03:48PM +0200, Corinna Vinschen wrote:
 $ net helpmsg 11001
 
 No such host is known.
 
 What does the line before the above line in the strace output look
 like?

See attached.

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6


procmail.log.gz
Description: application/gunzip
--
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/

Re: Problem with ssmtp / procmail / cygwin 1.5.10-3

2004-08-11 Thread Christopher Faylor
On Wed, Aug 11, 2004 at 02:31:52PM -0400, Jason Tishler wrote:
Corinna,

On Wed, Aug 11, 2004 at 07:03:48PM +0200, Corinna Vinschen wrote:
 $ net helpmsg 11001
 
 No such host is known.
 
 What does the line before the above line in the strace output look
 like?

See attached.

I've added a line to cygwin which should display the failing hostname
prior to displaying the winsock error.

Could you retry with either the latest snapshot or the latest cvs?  It
won't fix the problem but it might provide a clue.

cgf

--
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/