Article View: alt.privacy.anon-server
Article #181929Re: JBN with Stunnel and Cotse?
From: bd
Date: Fri, 18 Feb 2005 15:26
Date: Fri, 18 Feb 2005 15:26
182 lines
6855 bytes
6855 bytes
Hi Panta Admin, We meet again on this topic! :-) Do you remember I posted... Date: 5 Dec 2004 14:05:38 -0000 Message-ID: <VSPGC4SD38326.628912037@anonymous.poster> Subject: Attn: Panta Admin - JBN smtp auth problem .and then we exchanged emails? That was in mid December 2004. Up until today I have had no joy in getting the smtp auth mod to work on two separate servers that I use, but now I have tried a third which a friend told me about and I had instant success! Of course I just *had* to take a sniff at this ;-), and now I have a theory to put to you below... >Heck, I can't even send mail directly to cotse w/o stunnel. I have had the same problem when trying to use hotpop.com and the modded-JBN (i.e. without doing the horrid pop-first thing). Here is a recap of the smtp conversation that I see between JBN and the hotpop smtp server (this was captured within the last 24 hours): <-- = from smtp server --> = from JBN client <-- 250-smtp-2.hotpop.com <-- 250-PIPELINING <-- 250-SIZE 3000000 <-- 250-VRFY <-- 250-ETRN <-- 250-AUTH LOGIN PLAIN <-- 250 8BITMIME <-- 220 smtp-2.hotpop.com ESMTP Postfix --> EHLO <localhost name> --> RSET <-- 250 Ok --> MAIL FROM:<fromaddress> <-- 250 Ok --> RCPT TO:<toaddress> <-- 550 <toaddress>: Recipient address rejected: Relaying Denied: Authenticate with POP first or contact support@HotPOP.com --> QUIT <-- 221 Bye It was pretty much the same thing from the other smtp server I've been trying to use as well. Then today, I captured this from the server that worked: <-- 220 <servername> --> EHLO <localhost name> <-- 250-<servername> <-- 250-DSN <-- 250-8BITMIME <-- 250-PIPELINING >-- 250-HELP <-- 250-ETRN <-- 250-AUTH=LOGIN <-- 250-AUTH LOGIN CRAM-MD5 PLAIN <-- 250-DELIVERBY 300 <-- 250 SIZE --> AUTH LOGIN <-- 334 VXNlcm5hbWU6 [Note: base64 decode = "Username"] --> <base64 encoded username> <-- 334 UGFzc3dvcmQ6 [Note: base64 decode = "Password"] --> <base64 encoded password> <-- 235 LOGIN authentication successful --> RSET <-- 250 RSET --> MAIL FROM:<fromaddress> <-- 250 MAIL FROM:<fromaddress> OK --> RCPT TO:<toaddress> <-- 250 RCPT TO:<toaddress> OK --> DATA <-- 354 Start mail input; end with <CRLF>.<CRLF> --> <sent email headers and body> --> --> . <-- 250 <some tag> Mail accepted --> QUIT <-- 221 <servername> QUIT This was the first time that I have actually seen the modded-JBN send the "AUTH LOGIN" command to an smtp server. Obviously this particular server was doing something slightly different to trigger this behaviour. I decided it was time to go looking at RFCs to see what I could find, so I did a Google search on "smtp auth login rfc". The first page I read http://www.fehcom.de/qmail/smtpauth.html described the various mechanisms for doing smtp auth, including "AUTH LOGIN" as above. The second page http://mail.python.org/pipermail/patches/2002-September/009711.html described an issue with the smtplib for python, which on examination seemed highly pertinent to my experiences with the modded-JBN: <begin quote> Initial Comment: Unfortunately, my original SMTP auth patch doesn't work so well in real life. There are two methods to advertise the available auth methods for SMTP servers: old-style: AUTH=method1 method2 ... RFC style: AUTH method1 method2 Microsoft's MUAs are b0rken in that they only understand the old-style method. That's why most SMTP servers are configured to advertise their authentication methods in old-style _and_ new style. <end quote> I noticed that in both cases where the modded-JBN failed to send the "AUTH LOGIN" command to the smtp server, those smtp servers only advertised the available auth methods using the RFC style: i.e. <-- 250-AUTH LOGIN PLAIN In the case that works, the smtp server advertised the available auth methods using both styles: i.e. <-- 250-AUTH=LOGIN and <-- 250-AUTH LOGIN CRAM-MD5 PLAIN >Steve (Gielda) has not >made any comments so far, I was hoping for input from Steve >too. I have tried connecting to www.cotse.net:25 today to check it too and this is what I found there: <-- 220 www.cotse.net ESMTP CotseMail 5.7.4/5.7.4; <date/time stamp removed> (EST) --> EHLO <localhost name> <-- 250-www.cotse.net Hello <reverse dns name>, pleased to meet you <-- 250-ENHANCEDSTATUSCODES <-- 250-PIPELINING <-- 250-8BITMIME <-- 250-SIZE 35000000 <-- 250-DSN <-- 250-ETRN <-- 250-AUTH LOGIN PLAIN <-- 250-STARTTLS <-- 250-DELIVERBY <-- 250 HELP <snip> Once again, it is only the RFC style (nothing wrong with that in terms of it being compliant with the RFC). >SMTP authentication works. I use it myself. Perhaps you could check and report which style(s) your smtp server uses to advertise the available auth methods? I would be interested to know if I am on the right track. It's my speculation that your mod (or more probably the libraries that you use) needs to see the old-style advertisement in order to detect that the smtp server supports smtp auth. If that is the case then I'm not sure whether or not you can actually do anything to make it recognise the RFC style alone. Perhaps the only recourse would be for modded-JBN users to request the admin of their smtp server if he/she can add support for the old style advertisement (if this is possible). There is one fly in my speculation though - in an email Panta Admin you reported to me that you were able to send mail through Hotpop using your mod. Is it possible that: a) Hotpop may have multiple smtp servers (for load balancing?) and they are not all configured precisely the same way or b) you (accidentally) did pop-first (which would have authenticated you) before trying to send? I look forward to your further insights. bd
Technical Details
Message-ID:
<U99LPAEE38401.6852546296@anonymous.poster>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20141023.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.wiretrip.org!news.dizum.com!sewer-output!mail2newsReferences:
<03a4ad0712e3c28dac2660cc5feebe4a@dizum.com> <XSP5ZC0138395.8271296296@anonymous.poster> <88efeb367eb5087408e13785fabd8c96@dizum.com> <5X87L8R038396.9331944444@anonymous.poster> <IW57RKVH38399.0244560185@reece.net.au> <X7O4FJ9E38398.7620949074@anonymous.poster>Show Full Headers
Complete Article Headers
Message-ID: <U99LPAEE38401.6852546296@anonymous.poster> Subject: Re: JBN with Stunnel and Cotse? Date: Fri, 18 Feb 2005 15:26:46 +0000 From: bd <situbusit@gooddog.com> References: <03a4ad0712e3c28dac2660cc5feebe4a@dizum.com> <XSP5ZC0138395.8271296296@anonymous.poster> <88efeb367eb5087408e13785fabd8c96@dizum.com> <5X87L8R038396.9331944444@anonymous.poster> <IW57RKVH38399.0244560185@reece.net.au> <X7O4FJ9E38398.7620949074@anonymous.poster> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20141023.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.wiretrip.org!news.dizum.com!sewer-output!mail2news Newsgroups: alt.privacy.anon-server X-No-Archive: yes Mail-To-News-Contact: abuse@dizum.com Organization: mail2news@dizum.com