[xmail] Re: -ERR Invalid Syntax on PASS command (POP)

2008-02-26 Thread Juan Carlos Muro
Hi there!
Well, if I have voice for it, I agree with many of the issues here.=20
First of all, I am the only guilt of the "-ERR Invalid Syntax on PASS
command (POP)" for this case, as I didn't thoroughly read the docs..=20
Anyways, I think as a good benefit for all the logging of "I was not
able to find 'the_file.tab', so quitting. RTFM XDDD!!"
Personaly, I am not too keen to autocreate missing files. Or if it has
to be someday that way, please, make this functionability suitable to be
activated through a flag a startup (and not to be the option by
default). Kind of 'system tuning up'..

Anyways I have to mention that for me it has been the easiest to setup I
ever used. It is just great!!=20
Just the issue about logging, but anyways the code is so clear and
clean..=20

Thanks!!!

J. Carlos Muro

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Rob Arends
Sent: Sunday, February 24, 2008 4:13 PM
To: xmail@xmailserver.org
Subject: [xmail] Re: -ERR Invalid Syntax on PASS command (POP)

Davide, Sarcasm is not your best suit.

Let me put it to you this way.

If the files & folders xmail requires, are not all there at xmail
startup
time, then xmail should stop, rather than continuing.

This has the following benefits:
1. The administrator will *know* that file 'a' is missing and will
go &
fix it.
2. The administrator will likely resolve their problem without sending
help
requests here.

Now #2 is a good thing I think.

Just look at the subject line on this. Invalid syntax on PASS
command
(POP)...
How does that assist an administrator to look at the pop3links.tab file
and
find it is not there.

You're not making us self sufficient.

Oh, and your last comment...
"How about you take care and configure your system software correctly
instead?"
I agree, but in the real world, stuff happens and some diagnostics would
help.

I'm not asking for much...
"Xmail error: required file pop3links.tab not found."

Rob :-)
=20
_
It might look like I'm doing nothing, but on a cellular level, I'm quite
busy.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On
Behalf Of Davide Libenzi
Sent: Sunday, February 24, 2008 7:10 AM
To: xmail@xmailserver.org
Subject: [xmail] Re: -ERR Invalid Syntax on PASS command (POP)

On Sat, 23 Feb 2008, Rob Arends wrote:

> I believe that, at startup, if xmail does not find ALL the folders it
> requires, then it should do one of two things.
>=20
> 1. create the missing folders
> Or
> 2. terminate after logging to the log_files/ screen/ event_log,
depending
on
> platform and or debug mode.
>=20
>=20
> Currently it.
> 3. continues without error and throws up seemingly un related errors
that
> cause you to look elsewhere for the fault.
>=20
> *** I'm sending this as a feature request. ***

Why stopping there? Why not having XMail to automatically guess missing=20
configuration files?
How about you take care and configure your system software correctly=20
instead?



- Davide


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


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

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



[xmail] Re: -ERR Invalid Syntax on PASS command (POP)

2008-02-24 Thread Rob Arends
Davide, Sarcasm is not your best suit.

Let me put it to you this way.

If the files & folders xmail requires, are not all there at xmail startup
time, then xmail should stop, rather than continuing.

This has the following benefits:
1. The administrator will *know* that file 'a' is missing and will go &
fix it.
2. The administrator will likely resolve their problem without sending help
requests here.

Now #2 is a good thing I think.

Just look at the subject line on this. Invalid syntax on PASS command
(POP)...
How does that assist an administrator to look at the pop3links.tab file and
find it is not there.

You're not making us self sufficient.

Oh, and your last comment...
"How about you take care and configure your system software correctly
instead?"
I agree, but in the real world, stuff happens and some diagnostics would
help.

I'm not asking for much...
"Xmail error: required file pop3links.tab not found."

Rob :-)
 
_
It might look like I'm doing nothing, but on a cellular level, I'm quite
busy.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Davide Libenzi
Sent: Sunday, February 24, 2008 7:10 AM
To: xmail@xmailserver.org
Subject: [xmail] Re: -ERR Invalid Syntax on PASS command (POP)

On Sat, 23 Feb 2008, Rob Arends wrote:

> I believe that, at startup, if xmail does not find ALL the folders it
> requires, then it should do one of two things.
> 
> 1. create the missing folders
> Or
> 2. terminate after logging to the log_files/ screen/ event_log, depending
on
> platform and or debug mode.
> 
> 
> Currently it.
> 3. continues without error and throws up seemingly un related errors that
> cause you to look elsewhere for the fault.
> 
> *** I'm sending this as a feature request. ***

Why stopping there? Why not having XMail to automatically guess missing 
configuration files?
How about you take care and configure your system software correctly 
instead?



- Davide


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


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



[xmail] Re: -ERR Invalid Syntax on PASS command (POP)

2008-02-23 Thread Davide Libenzi
On Sat, 23 Feb 2008, Rob Arends wrote:

> I believe that, at startup, if xmail does not find ALL the folders it
> requires, then it should do one of two things.
> 
> 1. create the missing folders
> Or
> 2. terminate after logging to the log_files/ screen/ event_log, depending on
> platform and or debug mode.
> 
> 
> Currently it.
> 3. continues without error and throws up seemingly un related errors that
> cause you to look elsewhere for the fault.
> 
> *** I'm sending this as a feature request. ***

Why stopping there? Why not having XMail to automatically guess missing 
configuration files?
How about you take care and configure your system software correctly 
instead?



- Davide


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



[xmail] Re: -ERR Invalid Syntax on PASS command (POP)

2008-02-23 Thread Rob Arends
I believe that, at startup, if xmail does not find ALL the folders it
requires, then it should do one of two things.

1. create the missing folders
Or
2. terminate after logging to the log_files/ screen/ event_log, depending on
platform and or debug mode.


Currently it.
3. continues without error and throws up seemingly un related errors that
cause you to look elsewhere for the fault.

*** I'm sending this as a feature request. ***

Thank you Davide,

Thanks,
Rob :-)
 
_
It might look like I'm doing nothing, but on a cellular level, I'm quite
busy.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Juan Carlos Muro
Sent: Friday, February 22, 2008 11:15 PM
To: xmail@xmailserver.org
Subject: [xmail] Re: -ERR Invalid Syntax on PASS command (POP)

Thanks for the advice Davide!=20
So I inquired the next issue with the '-ERR Invalid auth or access
denied' error. I have inserted/edit many debug points in the source
code. I found where the problem was:

* In POP3Utils.cpp:

POP3_HANDLE UPopBuildSession(const char *pszDomain, const char
*pszUsrName,
 const char *pszUsrPass, SYS_INET_ADDR const
*pPeerInfo)
{
[...]
if (pszUsrPass !=3D NULL && strcmp(pszUsrPass, pUI->pszPassword)
!=3D 0) {
ErrSetErrorCode(ERR_INVALID_PASSWORD);
UsrFreeUserInfo(pUI);
return INVALID_POP3_HANDLE;
}
printf("[POP3Utils.cpp] UPopBuildSession[1]:\n"); // I reach
this checkpoint
if (UsrPOP3Lock(pUI) < 0) {
UsrFreeUserInfo(pUI);
return INVALID_POP3_HANDLE;
}
printf("[POP3Utils.cpp] UPopBuildSession[2]:\n"); // Checkpoint
not reached [!]
[...]
}

Here clearly saw that the password validation was ok after issuing 'PASS
the_passwd' to the server. After it, was necessary to add the next
checkpoint:

* In UsrUtils.cpp:

int UsrPOP3Lock(UserInfo *pUI)
{
char szLockPath[SYS_MAX_PATH] =3D "";

UsrGetPop3LocksPath(pUI, szLockPath, sizeof(szLockPath));
=09
printf("[UsrUtils.cpp] UsrPOP3Lock[1]: szLockPath =3D %s\n",
szLockPath);
if (SysLockFile(szLockPath) < 0)
return ErrGetErrorCode();

return 0;
}

That threw straight to my eyes:
[UsrUtils.cpp] UsrPOP3Lock[1]: szLockPath =3D
/var/lib/xmail/pop3locks/[EMAIL PROTECTED]

And not, the directory 'pop3locks' didn't exist! After reviewing the
documentation, paying special attention to the "MailRoot structure"
section, I realized that still many directories were not yet created...
So, I crated the as appointed by the doc, and problem fixed! xDD

So, again, the most valuable advice once again was: read the docs
carefully! x

Only one proposal for the xmail developers: maybe to be more specific
with the '-ERR Invalid auth or access denied' message, to differentiate
whether the fail is owed to authentication or to file
creation/manipulation... ;)

Thanks!

JC

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Davide Libenzi
Sent: Thursday, February 21, 2008 10:26 PM
To: xmail@xmailserver.org
Subject: [xmail] Re: -ERR Invalid Syntax on PASS command (POP)

On Thu, 21 Feb 2008, Juan Carlos Muro wrote:

> In /MailRoot/mailusers.tab:
>=20
>   "mydomain.com" "xmailuser" ""  1   "xmailuser"
"U"
>   "mydomain.com" "user1"  "54575651"  2   "user1"  "U"
>  =3D20
> I send a message from 'user1' to 'xmailuser', and seems to reach
> destiny:
>=20
>   [EMAIL PROTECTED]:/MailRoot/domains/mydomain.com/xmailuser/Maildir/new#
> ls -la
>   total 12
>   drwxr-xr-x 2 root root 4096 2008-02-21 15:59 .
>   drwxr-xr-x 5 root root 4096 2008-02-21 11:09 ..
>   -rw-rw-rw- 1 root root  631 2008-02-21 15:33
> 1203609577597.3077888912.0.rigel
>=20
> When I try to retrieve mail for 'xmailuser' I get the following error:
>=20
>   -ERR Invalid syntax
>=20
> Maybe Xmail doesn't accept empty passwords?

POP3 does not accept empty passwords:

http://www.ietf.org/rfc/rfc1939.txt




- Davide


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

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

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



[xmail] Re: -ERR Invalid Syntax on PASS command (POP)

2008-02-22 Thread Juan Carlos Muro
Thanks for the advice Davide!=20
So I inquired the next issue with the '-ERR Invalid auth or access
denied' error. I have inserted/edit many debug points in the source
code. I found where the problem was:

* In POP3Utils.cpp:

POP3_HANDLE UPopBuildSession(const char *pszDomain, const char
*pszUsrName,
 const char *pszUsrPass, SYS_INET_ADDR const
*pPeerInfo)
{
[...]
if (pszUsrPass !=3D NULL && strcmp(pszUsrPass, pUI->pszPassword)
!=3D 0) {
ErrSetErrorCode(ERR_INVALID_PASSWORD);
UsrFreeUserInfo(pUI);
return INVALID_POP3_HANDLE;
}
printf("[POP3Utils.cpp] UPopBuildSession[1]:\n"); // I reach
this checkpoint
if (UsrPOP3Lock(pUI) < 0) {
UsrFreeUserInfo(pUI);
return INVALID_POP3_HANDLE;
}
printf("[POP3Utils.cpp] UPopBuildSession[2]:\n"); // Checkpoint
not reached [!]
[...]
}

Here clearly saw that the password validation was ok after issuing 'PASS
the_passwd' to the server. After it, was necessary to add the next
checkpoint:

* In UsrUtils.cpp:

int UsrPOP3Lock(UserInfo *pUI)
{
char szLockPath[SYS_MAX_PATH] =3D "";

UsrGetPop3LocksPath(pUI, szLockPath, sizeof(szLockPath));
=09
printf("[UsrUtils.cpp] UsrPOP3Lock[1]: szLockPath =3D %s\n",
szLockPath);
if (SysLockFile(szLockPath) < 0)
return ErrGetErrorCode();

return 0;
}

That threw straight to my eyes:
[UsrUtils.cpp] UsrPOP3Lock[1]: szLockPath =3D
/var/lib/xmail/pop3locks/[EMAIL PROTECTED]

And not, the directory 'pop3locks' didn't exist! After reviewing the
documentation, paying special attention to the "MailRoot structure"
section, I realized that still many directories were not yet created...
So, I crated the as appointed by the doc, and problem fixed! xDD

So, again, the most valuable advice once again was: read the docs
carefully! x

Only one proposal for the xmail developers: maybe to be more specific
with the '-ERR Invalid auth or access denied' message, to differentiate
whether the fail is owed to authentication or to file
creation/manipulation... ;)

Thanks!

JC

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Davide Libenzi
Sent: Thursday, February 21, 2008 10:26 PM
To: xmail@xmailserver.org
Subject: [xmail] Re: -ERR Invalid Syntax on PASS command (POP)

On Thu, 21 Feb 2008, Juan Carlos Muro wrote:

> In /MailRoot/mailusers.tab:
>=20
>   "mydomain.com" "xmailuser" ""  1   "xmailuser"
"U"
>   "mydomain.com" "user1"  "54575651"  2   "user1"  "U"
>  =3D20
> I send a message from 'user1' to 'xmailuser', and seems to reach
> destiny:
>=20
>   [EMAIL PROTECTED]:/MailRoot/domains/mydomain.com/xmailuser/Maildir/new#
> ls -la
>   total 12
>   drwxr-xr-x 2 root root 4096 2008-02-21 15:59 .
>   drwxr-xr-x 5 root root 4096 2008-02-21 11:09 ..
>   -rw-rw-rw- 1 root root  631 2008-02-21 15:33
> 1203609577597.3077888912.0.rigel
>=20
> When I try to retrieve mail for 'xmailuser' I get the following error:
>=20
>   -ERR Invalid syntax
>=20
> Maybe Xmail doesn't accept empty passwords?

POP3 does not accept empty passwords:

http://www.ietf.org/rfc/rfc1939.txt




- Davide


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

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



[xmail] Re: -ERR Invalid Syntax on PASS command (POP)

2008-02-21 Thread Davide Libenzi
On Thu, 21 Feb 2008, Juan Carlos Muro wrote:

> In /MailRoot/mailusers.tab:
> 
>   "mydomain.com" "xmailuser" ""  1   "xmailuser" "U"
>   "mydomain.com" "user1"  "54575651"  2   "user1"  "U"
>  =20
> I send a message from 'user1' to 'xmailuser', and seems to reach
> destiny:
> 
>   [EMAIL PROTECTED]:/MailRoot/domains/mydomain.com/xmailuser/Maildir/new#
> ls -la
>   total 12
>   drwxr-xr-x 2 root root 4096 2008-02-21 15:59 .
>   drwxr-xr-x 5 root root 4096 2008-02-21 11:09 ..
>   -rw-rw-rw- 1 root root  631 2008-02-21 15:33
> 1203609577597.3077888912.0.rigel
> 
> When I try to retrieve mail for 'xmailuser' I get the following error:
> 
>   -ERR Invalid syntax
> 
> Maybe Xmail doesn't accept empty passwords?

POP3 does not accept empty passwords:

http://www.ietf.org/rfc/rfc1939.txt




- Davide


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



[xmail] Re: -ERR Invalid Syntax on PASS command (POP)

2008-02-21 Thread Juan Carlos Muro
Oh! I messed something with the domains.=20
So, this would be the last mail properly issued:

In /MailRoot/mailusers.tab:

  "mydomain.com" "xmailuser" ""  1   "xmailuser" "U"
"mydomain.com" "user1"  "54575651"  2   "user1"  "U"
 =20
I send a message from 'user1' to 'xmailuser', and seems to reach
destiny:

[EMAIL PROTECTED]:/MailRoot/domains/mydomain.com/xmailuser/Maildir/new#
ls -la
total 12
drwxr-xr-x 2 root root 4096 2008-02-21 15:59 .
drwxr-xr-x 5 root root 4096 2008-02-21 11:09 ..
-rw-rw-rw- 1 root root  631 2008-02-21 15:33
1203609577597.3077888912.0.rigel

When I try to retrieve mail for 'xmailuser' I get the following error:

-ERR Invalid syntax

Maybe Xmail doesn't accept empty passwords?
Next I tried the reverse way: sent from 'xmailuser' to 'user1'. The
letter reachs its destiny:

=09
[EMAIL PROTECTED]:/var/lib/xmail/domains/mydomain.com/user1/Maildir/new# ls -l
total 8
-rw-r--r-- 1 root root 366 2008-02-21 15:59
1203607209261.3078417296.0.rigel

When I try to retrieve mail for 'user1', I get as follows:

[EMAIL PROTECTED]:~# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <[EMAIL PROTECTED]> [XMail 1.25 POP3
Server] service ready; Thu, 21 Feb 2008 16:25:01 -
USER user1
+OK Password required for [EMAIL PROTECTED]
PASS 1234
-ERR Invalid auth or access denied

I have verified that I correctly typed the password in mailusers.tab:

[EMAIL PROTECTED]:/var/lib/xmail# ./bin/XMCrypt 1234
54575651

So I got locked now... Any ideas please?
Thanks!!
JC
-
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]