Subject: Problem with ssmtp / procmail / cygwin 1.5.10-3
From: Eugene Kotlyarov <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Wed, 11 Aug 2004 13:42:05 +0400

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-masked]
! [email-masked]

#
# /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-masked]"
procmail: Assigning "LASTFOLDER=/usr/sbin/ssmtp -oi [email-masked]"
>From EKOT  Wed Aug 11 11:46:49 2004
 Subject: test
  Folder: /usr/sbin/ssmtp -oi [email-masked]				    901
procmail: Executing "/usr/sbin/ssmtp,-oi,[email-masked]"
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.YYYY'
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 = `C:\DOCUME~1\EKOT\LOCALS~1\Temp'
TMP = `C:\DOCUME~1\EKOT\LOCALS~1\Temp'
USERDOMAIN = `STAFF'
USERNAME = `EKOT'
USERPROFILE = `C:\Documents and Settings\EKOT'
VCToolkitInstallDir = `C:\Program Files\Microsoft Visual C++ Toolkit 2003\'
windir = `C:\WINNT'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x00000002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS   38162Mb  77% CP CS UN PA FC     
o:  net NTFS   104999Mb  74% CP CS UN PA FC     vol_2
u:  net NTFS   840065Mb  90% CP CS UN PA FC     
v:  net NTFS   840065Mb  90% CP CS UN PA FC     

C:\cygwin      /          user    binmode
C:\cygwin/bin  /usr/bin   user    binmode
C:\cygwin/lib  /usr/lib   user    binmode
.              /cygdrive  user    binmode,cygdrive

Found: c:\cygwin\bin\awk.exe
Found: c:\cygwin\bin\bash.exe
Found: c:\cygwin\bin\cat.exe
Found: c:\cygwin\bin\cp.exe
Found: c:\cygwin\bin\cpp.exe
Found: c:\cygwin\bin\find.exe
Found: c:\cygwin\bin\gcc.exe
Not Found: gdb
Found: c:\cygwin\bin\grep.exe
Found: C:\Program Files\Borland\Delphi7\Bin\grep.exe
Warning: c:\cygwin\bin\grep.exe hides C:\Program Files\Borland\Delphi7\Bin\grep.exe
Found: C:\PROGRA~1\Borland\CBUILD~1\Bin\grep.exe
Warning: c:\cygwin\bin\grep.exe hides C:\PROGRA~1\Borland\CBUILD~1\Bin\grep.exe
Found: C:\Programs\Borland\Delphi7\Bin\grep.exe
Warning: c:\cygwin\bin\grep.exe hides C:\Programs\Borland\Delphi7\Bin\grep.exe
Found: c:\cygwin\bin\ld.exe
Found: c:\cygwin\bin\ls.exe
Found: c:\cygwin\bin\make.exe
Found: C:\Program Files\Borland\Delphi7\Bin\make.exe
Warning: c:\cygwin\bin\make.exe hides C:\Program Files\Borland\Delphi7\Bin\make.exe
Found: C:\PROGRA~1\Borland\CBUILD~1\Bin\make.exe
Warning: c:\cygwin\bin\make.exe hides C:\PROGRA~1\Borland\CBUILD~1\Bin\make.exe
Found: C:\Programs\Borland\Delphi7\Bin\make.exe
Warning: c:\cygwin\bin\make.exe hides C:\Programs\Borland\Delphi7\Bin\make.exe
Found: c:\cygwin\lcc\bin\make.exe
Warning: c:\cygwin\bin\make.exe hides c:\cygwin\lcc\bin\make.exe
Found: c:\cygwin\bin\mv.exe
Found: c:\cygwin\bin\rm.exe
Found: c:\cygwin\bin\sed.exe
Found: c:\cygwin\bin\sh.exe
Found: c:\cygwin\bin\tar.exe

   61k 2003/08/09 c:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2003/8/9 10:35
    7k 2003/10/19 c:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 11:57
  842k 2003/09/30 c:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2003/9/30 20:49
  617k 2004/03/22 c:\cygwin\bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygcurl-2.dll" v0.0 ts=2004/3/22 18:52
  831k 2003/09/20 c:\cygwin\bin\cygdb-4.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb-4.1.dll" v0.0 ts=2003/9/21 1:51
 1080k 2003/09/20 c:\cygwin\bin\cygdb_cxx-4.1.dll - os=4.0 img=1.0 sys=4.0
                  "cygdb_cxx-4.1.dll" v0.0 ts=2003/9/21 1:53
   45k 2001/04/25 c:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 9:28
   35k 2002/01/09 c:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 9:03
   48k 2003/08/09 c:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 13:25
   28k 2003/07/20 c:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 11:58
   30k 2003/08/11 c:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2003/8/11 6:12
   19k 2003/03/22 c:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/20 6:05
   15k 2003/07/20 c:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 12:00
   15k 2003/08/11 c:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/11 6:13
   69k 2003/08/10 c:\cygwin\bin\cyggettextlib-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextlib-0-12-1.dll" v0.0 ts=2003/8/11 2:10
   12k 2003/08/10 c:\cygwin\bin\cyggettextpo-0.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextpo-0.dll" v0.0 ts=2003/8/11 2:11
  134k 2003/08/10 c:\cygwin\bin\cyggettextsrc-0-12-1.dll - os=4.0 img=1.0 sys=4.0
                  "cyggettextsrc-0-12-1.dll" v0.0 ts=2003/8/11 2:10
   17k 2001/06/28 c:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/7 7:34
   29k 2003/08/10 c:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/11 3:16
  958k 2003/08/10 c:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2003/8/11 0:57
   22k 2001/12/13 c:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 12:28
   37k 2003/08/10 c:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/11 1:50
   26k 2001/04/25 c:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 9:27
   20k 2002/01/09 c:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 9:03
   29k 2003/08/09 c:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 13:25
  156k 2001/04/25 c:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 9:29
  175k 2002/01/09 c:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 9:03
  226k 2001/04/25 c:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 9:17
  202k 2002/01/09 c:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 9:03
  224k 2003/08/09 c:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 13:24
   15k 2001/04/25 c:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 9:27
   12k 2002/01/09 c:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 9:03
   19k 2003/08/09 c:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 13:24
   62k 2003/12/11 c:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2003/12/11 20:01
   63k 2003/04/11 c:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2003/4/11 12:31
    9k 2003/12/11 c:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2003/12/11 20:01
   61k 2003/04/11 c:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2003/4/11 12:31
 1049k 2003/11/07 c:\cygwin\bin\cygperl5_8_2.dll - os=4.0 img=1.0 sys=4.0
                  "cygperl5_8_2.dll" v0.0 ts=2003/11/7 14:08
   22k 2002/06/09 c:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 9:45
  108k 2001/06/28 c:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/7 7:34
  148k 2003/08/10 c:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/11 3:16
  171k 2003/09/30 c:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2003/9/30 20:49
   61k 2003/12/04 c:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2003/12/4 6:03
 1126k 2004/05/26 c:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2004/5/26 6:07
    Cygwin DLL version info:
        DLL version: 1.5.10
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 116
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Tue May 25 22:07:00 EDT 2004
        CVS tag: cr-0x5e6
        Shared id: cygwin1S4

Cygwin Package Information
Last downloaded files to: C:\Documents and Settings\EKOT\Ìîè äîêóìåíòû\files\prg\cygwin
Last downloaded files from: C:\Documents and Settings\EKOT\Ìîè äîêóìåíòû\files\prg\cygwin

Package              Version            
ash                  20040127-1         
base-files           2.6-1              
base-passwd          1.1-1              
bash                 2.05b-16           
binutils             20040725-2         
bzip2                1.0.2-5            
crypt                1.1-1              
curl                 7.11.1-1           
cygrunsrv            1.0-1              
cygutils             1.2.5-1            
cygwin               1.5.10-3           
cygwin-doc           1.3-7              
diffutils            2.8.4-1            
editrights           1.01-1             
fetchmail            6.2.5-2            
file                 4.09-1             
fileutils            4.1-2              
findutils            4.1.7-4            
gawk                 3.1.3-4            
gcc                  3.3.1-3            
gcc-g++              3.3.1-3            
gcc-mingw            20030911-4         
gcc-mingw-core       20031020-1         
gcc-mingw-g++        20031020-1         
gdbm                 1.8.3-7            
grep                 2.5-1              
groff                1.18.1-2           
gzip                 1.3.5-1            
less                 381-1              
libbz2_1             1.0.2-5            
libdb4.1             4.1.25-1           
libgdbm              1.8.0-5            
libgdbm-devel        1.8.3-7            
libgdbm3             1.8.3-3            
libgdbm4             1.8.3-7            
libgettextpo0        0.12.1-3           
libiconv2            1.9.1-3            
libintl1             0.10.40-1          
libintl2             0.12.1-3           
libncurses5          5.2-1              
libncurses6          5.2-8              
libncurses7          5.3-4              
libpcre              4.1-1              
libpcre0             4.5-1              
libpopt0             1.6.4-4            
libreadline4         4.1-2              
libreadline5         4.3-5              
login                1.9-7              
make                 3.80-1             
man                  1.5k-3             
mingw-runtime        3.2-1              
mktemp               1.5-3              
ncurses              5.3-4              
openssl              0.9.7c-1           
patchutils           0.2.22-2           
pcre                 4.5-1              
pcre-doc             4.4-2              
perl                 5.8.2-1            
procmail             3.22-8             
readline             4.3-5              
sed                  4.0.9-2            
sh-utils             2.0.15-4           
squid                2.4.STABLE7-1      
ssmtp                2.60.9-2           
tar                  1.13.25-5          
termcap              20021106-2         
terminfo             5.3_20030726-1     
texinfo              4.2-4              
textutils            2.0.21-1           
w32api               2.4-1              
wget                 1.9.1-1            
which                1.5-2              
whois                4.6.7-1            
zlib                 1.2.1-1            
Use -h to see help about each section

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