Re: [xmail] CtrlClnt local/remote diff in return value on w2k

2009-09-29 Thread CLEMENT Francis
-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi
Envoyé : lundi 28 septembre 2009 19:37
À : XMail Users Mailing List
Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k


On Mon, 28 Sep 2009, Davide Libenzi wrote:

 On Mon, 28 Sep 2009, CLEMENT Francis wrote:
 
  As said, ctrlclnt don't crash at all, at end of job 
(action correctly
  completed at xmail server side, and ctrlclnt output 
correct and complete,
  nothing missing), it seems to 'freeze' for about 30 
seconds (waiting for a
  timeout ?) before ending then returns normally (no crash 
dump, no drwatson,
  no system event in logs, ...) but returns this 'strange' exit code.
  
  Same command from a workstation, do the same job, don't 
freeze at all after
  final output result, and return 0
  
  I need to test older ctrlclnt versions to find last that 
work 'localy' with
  exit code 0
 
 Looks like something triggered the debugger:
 
 http://www.ureader.com/message/1261932.aspx
 
 The error is DBG_TERMINATE_PROCESS.
 There are quite a few reports, if you google it.

If you install WinDBG and you enable just in time debugging, it should 
bring you right where the violation is.
Because, this is very likely an error triggered by CtrlClnt.



- Davide



Ok, I will try WinDBG and report asap

Francis
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] CtrlClnt local/remote diff in return value on w2k

2009-09-29 Thread CLEMENT Francis
-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de CLEMENT Francis
Envoyé : mardi 29 septembre 2009 08:27
À : 'XMail Users Mailing List'
Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k


-Message d'origine-
De : xmail-boun...@xmailserver.org
[mailto:xmail-boun...@xmailserver.org]de la part de Davide Libenzi
Envoyé : lundi 28 septembre 2009 19:37
À : XMail Users Mailing List
Objet : Re: [xmail] CtrlClnt local/remote diff in return value on w2k


On Mon, 28 Sep 2009, Davide Libenzi wrote:

.
 The error is DBG_TERMINATE_PROCESS.
 There are quite a few reports, if you google it.

If you install WinDBG and you enable just in time debugging, 
it should 
bring you right where the violation is.
Because, this is very likely an error triggered by CtrlClnt.



- Davide



Ok, I will try WinDBG and report asap

Francis

Here is WinDBG result (some change in cmd line to mask sensitive data) :

CommandLine: C:\XMail\Bin\CtrlClnt.exe -s www.xxx.yyy.zzz -n 6017 -u
myusername -p mypassword userlist somehandleddomainname
Starting directory: C:\XMail\Bin
Symbol search path is:
SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols
Executable search path is: 
ModLoad: 0040 0047e000   CtrlClnt.exe
ModLoad: 7846 784e2000   ntdll.dll
ModLoad: 1000 100fd000   C:\XMail\Bin\LIBEAY32.dll
ModLoad: 74fd 74fd9000   C:\WINNT\system32\WSOCK32.dll
ModLoad: 77e7 77f2f000   C:\WINNT\system32\KERNEL32.DLL
ModLoad: 74fb 74fc4000   C:\WINNT\system32\WS2_32.DLL
ModLoad: 7800 78045000   C:\WINNT\system32\MSVCRT.DLL
ModLoad: 78ed 78f35000   C:\WINNT\system32\ADVAPI32.DLL
ModLoad: 770c 7712f000   C:\WINNT\system32\RPCRT4.dll
ModLoad: 74fa 74fa8000   C:\WINNT\system32\WS2HELP.DLL
ModLoad: 77f4 77f7d000   C:\WINNT\system32\GDI32.dll
ModLoad: 77e0 77e5f000   C:\WINNT\system32\USER32.dll
ModLoad: 7813 781cb000   C:\WINNT\system32\MSVCR80.dll
ModLoad: 0023 00261000   C:\XMail\Bin\SSLEAY32.dll
(ad8.aac): Break instruction exception - code 8003 (first chance)
eax= ebx=00131f04 ecx= edx=00132c48 esi=7ffdf000
edi=00131f78
eip=7847193c esp=0012f984 ebp=0012fc98 iopl=0 nv up ei pl nz na po
nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=
efl=0202
ntdll!DbgBreakPoint:
7847193c cc  int 3
0:000 g
ModLoad: 74f5 74f6d000   C:\WINNT\system32\msafd.dll
ModLoad: 74f9 74f97000   C:\WINNT\System32\wshtcpip.dll
(ad8.888): Access violation - code c005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax= ebx= ecx=0047a410 edx=0ae4 esi=0047a400
edi=
eip=7846f281 esp=00b2fba0 ebp=00b2fc00 iopl=0 nv up ei pl zr na pe
nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=
efl=00010246
ntdll!RtlpWaitForCriticalSection+0x8a:
7846f281 ff4010  inc dword ptr [eax+10h]
ds:0023:0010=

I'm not a windbg specialist ;) What do you mean with enable just in time
debugging ?
Should I do somethink more with Windbg at this point ? 

Francis
___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] SMTP Ext Auth

2009-09-29 Thread Cesar Meloni
Davide
   I really appreciate your response, you are doing a great job.
   It would be nice also change the XMail manual. Especially in the External
Authentication section, the phrase for now only POP3 and indicate a
reference to the smtpextauth.tab for SMTP authentication.

   The end of line change in the mail files has greatly facilitated the
creation of filters and their treatment, especially those who work with
POSIX platforms. It also has improved integration with other products (such
as IMAPServers) that share the Maildir.

   Thanks again!

   Cesar L. Meloni


2009/9/28 Davide Libenzi davi...@xmailserver.org

 On Mon, 28 Sep 2009, Cesar Meloni wrote:

  Hello all!
 
 I have an XMail server v1.26 runing on Linux (with CourierIMAP for
 IMAP clients, really work great)...
 CourierIMAP authenticated with a script through AuthProg (pipe).
 XMail POP3 clients authenticated withan external bash script that
 works correctly.
 The same bash script I use for SMTP authentication but has not been
 successful, my configuration is:
 
For POP3 userauth/pop3/mydomain..tab:
 
 userauthTAB/var/MailRoot/bin/xmailldapauth.shTAB@@USERTAB@@PASSWDTABserveripTABdomainame
 
For SMTP smtpextauth.tab (FAIL)
 
 PLAINTAB/var/MailRoot/bin/xmailldapauth.shTAB@@USERTAB@@PASSTABserveripTABdomainame
 
XMail debug mode displays the following message:
SMTP client connection from [1.2.3.4]
  execv error: cmd='username'
 
XMail try to run the @@USER macro, just by intuition, if I put the next
 field in the configuration file, it
  works correctly:
 
  
 PLAINTABDummyFieldTAB/var/MailRoot/bin/xmailldapauth.shTAB@@USERTAB@@PASSTABserveripTAB
  domainame
 
What is happening?

 You hit a bug ;)
 I fixed it in 1.27, but you can easily fix it in 1.26 with the following
 patch.



 - Davide


 diff --git a/SMTPSvr.cpp b/SMTPSvr.cpp
 index 13c7177..5614ed5 100644
 --- a/SMTPSvr.cpp
 +++ b/SMTPSvr.cpp
 @@ -2442,7 +2442,7 @@ static int SMTPExternalAuthenticate(BSOCK_HANDLE
 hBSock, SMTPSession SMTPS,
/* Call external program to compute the response */
int iExitCode = -1;

 -   if (SysExec(ppszAuthTokens[2], ppszAuthTokens[2],
 SVR_SMTP_EXTAUTH_TIMEOUT,
 +   if (SysExec(ppszAuthTokens[1], ppszAuthTokens[1],
 SVR_SMTP_EXTAUTH_TIMEOUT,
SYS_PRIORITY_NORMAL, iExitCode)  0) {
ErrorPush();
SysRemove(szRespFile);

 ___
 xmail mailing list
 xmail@xmailserver.org
 http://xmailserver.org/mailman/listinfo/xmail


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] CtrlClnt local/remote diff in return value on w2k

2009-09-29 Thread Davide Libenzi
On Tue, 29 Sep 2009, CLEMENT Francis wrote:

 Here is WinDBG result (some change in cmd line to mask sensitive data) :
 
 CommandLine: C:\XMail\Bin\CtrlClnt.exe -s www.xxx.yyy.zzz -n 6017 -u
 myusername -p mypassword userlist somehandleddomainname
 Starting directory: C:\XMail\Bin
 Symbol search path is:
 SRV*c:\websymbols*http://msdl.microsoft.com/download/symbols
 Executable search path is: 
 ModLoad: 0040 0047e000   CtrlClnt.exe
 ModLoad: 7846 784e2000   ntdll.dll
 ModLoad: 1000 100fd000   C:\XMail\Bin\LIBEAY32.dll
 ModLoad: 74fd 74fd9000   C:\WINNT\system32\WSOCK32.dll
 ModLoad: 77e7 77f2f000   C:\WINNT\system32\KERNEL32.DLL
 ModLoad: 74fb 74fc4000   C:\WINNT\system32\WS2_32.DLL
 ModLoad: 7800 78045000   C:\WINNT\system32\MSVCRT.DLL
 ModLoad: 78ed 78f35000   C:\WINNT\system32\ADVAPI32.DLL
 ModLoad: 770c 7712f000   C:\WINNT\system32\RPCRT4.dll
 ModLoad: 74fa 74fa8000   C:\WINNT\system32\WS2HELP.DLL
 ModLoad: 77f4 77f7d000   C:\WINNT\system32\GDI32.dll
 ModLoad: 77e0 77e5f000   C:\WINNT\system32\USER32.dll
 ModLoad: 7813 781cb000   C:\WINNT\system32\MSVCR80.dll
 ModLoad: 0023 00261000   C:\XMail\Bin\SSLEAY32.dll
 (ad8.aac): Break instruction exception - code 8003 (first chance)
 eax= ebx=00131f04 ecx= edx=00132c48 esi=7ffdf000
 edi=00131f78
 eip=7847193c esp=0012f984 ebp=0012fc98 iopl=0 nv up ei pl nz na po
 nc
 cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=
 efl=0202
 ntdll!DbgBreakPoint:
 7847193c cc  int 3
 0:000 g
 ModLoad: 74f5 74f6d000   C:\WINNT\system32\msafd.dll
 ModLoad: 74f9 74f97000   C:\WINNT\System32\wshtcpip.dll
 (ad8.888): Access violation - code c005 (first chance)
 First chance exceptions are reported before any exception handling.
 This exception may be expected and handled.
 eax= ebx= ecx=0047a410 edx=0ae4 esi=0047a400
 edi=
 eip=7846f281 esp=00b2fba0 ebp=00b2fc00 iopl=0 nv up ei pl zr na pe
 nc
 cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=
 efl=00010246
 ntdll!RtlpWaitForCriticalSection+0x8a:
 7846f281 ff4010  inc dword ptr [eax+10h]
 ds:0023:0010=
 
 I'm not a windbg specialist ;) What do you mean with enable just in time
 debugging ?
 Should I do somethink more with Windbg at this point ? 

Thank you Francis.
Do you have a debug version of CtrlClnt to run (like the ones included in 
the recent -pre releases)?
If you run the CtrlClnt and you have the corresponding PDB file in the 
same directory, WinDBG should resolve the symbols.
Also, can you show a Call Stack (in the View menu) from the point of 
fault?



- Davide


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] SMTP Ext Auth

2009-09-29 Thread Davide Libenzi
On Tue, 29 Sep 2009, Cesar Meloni wrote:

 Davide
    I really appreciate your response, you are doing a great job.
    It would be nice also change the XMail manual. Especially in the External 
 Authentication section, the phrase
 for now only POP3 and indicate a reference to the smtpextauth.tab for SMTP 
 authentication.  

Done, thank you.


- Davide

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail