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


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 

> 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:
> >
> "userauth""/var/MailRoot/bin/xmailldapauth.sh""@@USER""@@PASSWD""serverip""domainame"
> >
> >   For SMTP smtpextauth.tab (FAIL)
> >
> "PLAIN""/var/MailRoot/bin/xmailldapauth.sh""@@USER""@@PASS""serverip""domainame"
> >
> >   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:
> >
>  
> "PLAIN""DummyField""/var/MailRoot/bin/xmailldapauth.sh""@@USER""@@PASS""serverip""
> > 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] SMTP Ext Auth

2009-09-28 Thread Davide Libenzi
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:
> "userauth""/var/MailRoot/bin/xmailldapauth.sh""@@USER""@@PASSWD""serverip""domainame"
> 
>   For SMTP smtpextauth.tab (FAIL)
> "PLAIN""/var/MailRoot/bin/xmailldapauth.sh""@@USER""@@PASS""serverip""domainame"
> 
>   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:
>  "PLAIN""DummyField""/var/MailRoot/bin/xmailldapauth.sh""@@USER""@@PASS""serverip""
> 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] SMTP Ext Auth

2009-09-28 Thread Cesar Meloni
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:
"userauth""/var/MailRoot/bin/xmailldapauth.sh""@@USER""@@PASSWD""serverip""domainame"

  For SMTP smtpextauth.tab (FAIL)
"PLAIN""/var/MailRoot/bin/xmailldapauth.sh""@@USER""@@PASS""serverip""domainame"

  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:
 "PLAIN""*DummyField*
""/var/MailRoot/bin/xmailldapauth.sh""@@USER""@@PASS""serverip""domainame"

  What is happening?

  Thank you very much in advance!

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


[xmail] SMTP ext. Auth

2005-09-21 Thread Chris L. Franklin

I was wondering if there was any more talk about making XMail SMTP
external Auth act just like it's pop3 external auth. (This would remove
the need to sync passwords with xmail and leave just leave the need to
Sync needed accounts)


-- Chris L. Franklin --

-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]