REPOST: Patch for Qpopper 2.2 to stop "auth" command errors from MS Internet Mail Clients

REPOST: Patch for Qpopper 2.2 to stop "auth" command errors from MS Internet Mail Clients

Post by David A. Titze » Fri, 31 Jan 1997 04:00:00



<<Since the initial posting, I've reasoned that the original problem
I experienced wouldn't have been noticed had I been using MS Exchange
Server. Not everybody wants to do that. But a POP client should be POP
compliant, shouldn't it?>>

Hi all!

I am using a UNIX server as my POP3 Server. I noticed my syslog file was
showing an error '-ERR: Unknown command: "auth".' Compiling with -DDEBUG,
and running from inetd with "-d -t /var/adm/POPlog" I was able to see
what was going on. Internet Mail is sending "AUTH twinkie", whatever
the heck that's supposed to be. Anyway, I have a patch here for Qualcomm's
qpopper v2.2 (ftp://ftp.qualcomm.com/unix/servers/popper/qpop2.2.tar.Z) to
stop loading up the log file with errors (even if they were harmless). Note
you'll need to compile with -DMS_INTERNET_MAIL_CLIENTS or define it in
popper.h.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

United Information Systems________________Bethesda, Maryland, USA          

Voice: +1.301.571.0240_______________________FAX: +1.301.571.0264

----CUT HERE-------------------------------------------------------
*** pop_get_command.c.orig      Thu Feb  1 14:43:17 1996
--- pop_get_command.c   Thu Dec  5 12:55:33 1996
***************
*** 23,28 ****
--- 23,31 ----
   */

  static state_table states[] = {
+ #ifdef MS_INTERNET_MAIL_CLIENTS
+         auth1,  "auth", 1,  1,  NULL,       {auth1, auth1},
+ #endif
          auth1,  "user", 1,  1,  pop_user,   {auth1, auth2},
          auth2,  "pass", 1,  1,  pop_pass,   {halt,  trans},
  #ifdef RPOP

 
 
 

REPOST: Patch for Qpopper 2.2 to stop "auth" command errors from MS Internet Mail Clients

Post by Michael Santove » Sat, 01 Feb 1997 04:00:00


For an explanation of what Microsoft is doing with the "AUTH twinkie"
command, see:
How to Enable and Interpret the Pop3.log File
http://www.microsoft.com/kb/articles/q155/5/15.htm

Mike



Quote:> <<Since the initial posting, I've reasoned that the original problem
> I experienced wouldn't have been noticed had I been using MS Exchange
> Server. Not everybody wants to do that. But a POP client should be POP
> compliant, shouldn't it?>>

> Hi all!

> I am using a UNIX server as my POP3 Server. I noticed my syslog file was
> showing an error '-ERR: Unknown command: "auth".' Compiling with -DDEBUG,
> and running from inetd with "-d -t /var/adm/POPlog" I was able to see
> what was going on. Internet Mail is sending "AUTH twinkie", whatever
> the heck that's supposed to be. Anyway, I have a patch here for
Qualcomm's
> qpopper v2.2 (ftp://ftp.qualcomm.com/unix/servers/popper/qpop2.2.tar.Z)
to
> stop loading up the log file with errors (even if they were harmless).
Note
> you'll need to compile with -DMS_INTERNET_MAIL_CLIENTS or define it in
> popper.h.


 
 
 

REPOST: Patch for Qpopper 2.2 to stop "auth" command errors from MS Internet Mail Clients

Post by David A. Titze » Wed, 05 Feb 1997 04:00:00


That's just fine if you _want_ to do IMAP or something, but I don't.
I've got a perfectly good AIX system in-house, and I don't need to buy
Microsoft's mail server to do POP3. But I was dismayed that the
POP3 client doesn't adhere to RFC1939. Ignore the KnowBase reference
to 1939; the AUTH command won't be found there.

The POP3 standard, fortunately, allows for invalid commands at the server
end. See http://www.merseyworld.com/techwatch/cgi-bin/rfcshow?1939 for
more.



> For an explanation of what Microsoft is doing with the "AUTH twinkie"
> command, see:
> How to Enable and Interpret the Pop3.log File
> http://www.microsoft.com/kb/articles/q155/5/15.htm

> Mike



> > <<Since the initial posting, I've reasoned that the original problem
> > I experienced wouldn't have been noticed had I been using MS Exchange
> > Server. Not everybody wants to do that. But a POP client should be POP
> > compliant, shouldn't it?>>

> > Hi all!

> > I am using a UNIX server as my POP3 Server. I noticed my syslog file
was
> > showing an error '-ERR: Unknown command: "auth".' Compiling with
-DDEBUG,
> > and running from inetd with "-d -t /var/adm/POPlog" I was able to see
> > what was going on. Internet Mail is sending "AUTH twinkie", whatever
> > the heck that's supposed to be. Anyway, I have a patch here for
> Qualcomm's
> > qpopper v2.2 (ftp://ftp.qualcomm.com/unix/servers/popper/qpop2.2.tar.Z)
> to
> > stop loading up the log file with errors (even if they were harmless).
> Note
> > you'll need to compile with -DMS_INTERNET_MAIL_CLIENTS or define it in
> > popper.h.

 
 
 

REPOST: Patch for Qpopper 2.2 to stop "auth" command errors from MS Internet Mail Clients

Post by Larry Bake » Thu, 06 Feb 1997 04:00:00



> But I was dismayed that the
> POP3 client doesn't adhere to RFC1939. Ignore the KnowBase reference
> to 1939; the AUTH command won't be found there.

> The POP3 standard, fortunately, allows for invalid commands at the server
> end. See http://www.merseyworld.com/techwatch/cgi-bin/rfcshow?1939 for
> more.

From the rfcshow?1939 reference:
[...]
 A server MUST respond to an unrecognized, unimplemented, or
 syntactically invalid command by responding with a negative status
 indicator.  
[...]

Quote:> > For an explanation of what Microsoft is doing with the "AUTH twinkie"
> > command, see:
> > How to Enable and Interpret the Pop3.log File
> > http://www.microsoft.com/kb/articles/q155/5/15.htm

> > Mike

From the Microsoft reference:

[...]
 In Line 6, the AUTH command [2] is issued to the server with a dummy
value
 of 'twinkie.' The AUTH command is an authentication method used
 by a post office specification known as the Internet Message Access
 Protocol - 4 (IMAP4) [3]. The command's failure is indicated by the
 negative response in Line 7. This command was included to test for
 authentication methods supported by the POP3 server.
[...]

The footnote [2] is not in the article, nor are other footnotes, so I
can't guess what else they have to say about mixing an IMAP protocol
element into an otherwise totally unrelated POP3 session.

The article doesn't attempt to explain why they're sending an invalid
POP3 message as the first thing they do with their client sessions.  It
just doesn't make sense - it's almost as if someone simply copied over
some IMAP code and forgot to take out the AUTH message.

A bug by any other name, should smell so ... sweet?

Cheers,

Larry Baker
SABRE Decision Technologies

 
 
 

1. Patch for Qpopper 2.2 to stop "auth" command errors from MS Internet Mail Clients

Hi all!

I am using a UNIX server as my POP3 Server. I noticed my syslog file was
showing an error '-ERR: Unknown command: "auth".' Compiling with -DDEBUG,
and running from inetd with "-d -t /var/adm/POPlog" I was able to see
what was going on. Internet Mail is sending "AUTH twinkie", whatever
the heck that's supposed to be. Anyway, I have a patch here for Qualcomm's
qpopper v2.2 (ftp://ftp.qualcomm.com/unix/servers/popper/qpop2.2.tar.Z) to
stop loading up the log file with errors (even if they were harmless). Note
you'll need to compile with -DMS_INTERNET_MAIL_CLIENTS or define it in
popper.h.

----CUT HERE-------------------------------------------------------
*** pop_get_command.c.orig      Thu Feb  1 14:43:17 1996
--- pop_get_command.c   Thu Dec  5 12:55:33 1996
***************
*** 23,28 ****
--- 23,31 ----
   */

  static state_table states[] = {
+ #ifdef MS_INTERNET_MAIL_CLIENTS
+         auth1,  "auth", 1,  1,  NULL,       {auth1, auth1},
+ #endif
          auth1,  "user", 1,  1,  pop_user,   {auth1, auth2},
          auth2,  "pass", 1,  1,  pop_pass,   {halt,  trans},
  #ifdef RPOP

2. imagemaps on apache

3. GETSERVBYNAME()????????????????????"""""""""""""

4. telnetd crashes with pl13p

5. repost of problems encountered loading Caldera 2.2 with KDE onto NEC "Ready 220T" laptop

6. Mgetty problem

7. Problem about command "mail" and "mailx".

8. XF86Config help with ARK1000PV chipset

9. "write" "to" "flon" commands

10. "weof" operation in "mt" command gives "permission denied"

11. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

12. ps command failed and produced "Bus error" or "Segmentation fault" messages

13. "Bus error" or "Segmentation Fault" By ps command