Article View: alt.privacy.anon-server
Article #216627Re: Setting up Omnimix with gmail
From: OmniMix
Date: Thu, 31 May 2007 15:00
Date: Thu, 31 May 2007 15:00
180 lines
9720 bytes
9720 bytes
>I have no way of knowing how you've coded it, OmniMix bases on the widespread Indy library. > but Are you absolutely >sure that your program has checked for any last bits of data with recv >before acting on the socket closure? Absolutely? Never! ;-) >I can honestly say that I have a program here that talks to Gmail all >the time. I send a lot of email to it. Gmail has always sent a >response to the QUIT message before closing the socket. Initially I >thought the same as you that most of the time it wasn't responding >properly, but I found out that you're meant to go into a recv loop >when you receive the socket closure notification to get any last bits >of data, and the response from google to the quit message was always >there. Interesting. But something with Google Mail has to be different from 'ordinary' SMTP servers, as OM isn't the only 'client' with problems in recognizing the postulated reply in this isolated case. Here's an SMTP log file created by Agent 3.3 when sending a mail to Google and, in comparison, to my ISP. Google Mail: 8673.942 137700 6780368 [1: SMTP 6 2] NewState:WaitingForMsgAck 8673.942 137698 6780368 SOCK SelectMsg s=400 READ e=0 8673.942 137698 6780368 SOCK recv( s=400, len=16400) 8673.942 137698 6780368 SOCK ret blocked 8673.942 137698 6780368 SSPI Get pin=0 in=0 pout=0 out=0 8675.044 137698 6780368 SOCK SelectMsg s=400 READ e=0 8675.044 137698 6780368 SOCK recv( s=400, len=16400) 8675.044 137698 6780368 SOCK ret len=61 8675.044 137698 6780368 SSPI Get pin=0 in=61 pout=0 out=0 8675.044 137698 6780368 SSPI Decrypt pin=45 in=0 pout=5 out=40 return=0 8675.044 137698 6780368 SSPI Processed 40 pin=0 in=0 pout=0 out=0 8675.044 137701 6780368 [1: SMTP 6 2] >250 2.0.0 OK 1180610123 i5sm4439570mue 8675.044 137701 6780368 [1: SMTP 6 2] State:WaitingForMsgAck Input:RESPONSE 250 8675.044 137702 6780368 [1: SMTP 6 2] Finished sending email message "Gmail-Test (Gmail)". 8675.044 137701 6780368 [1: SMTP 6 2] NewState:End 8675.044 137699 6780368 [1: SMTP 6 2] State:Running Input:STATEDONE 8675.044 137698 6780368 [0: SMTP 6 2] NewState:Idle 8675.044 137708 6780368 [0: BG 4 7] Create channel total=0 busy=0 priority=0 avail=0 connecting=0 retry=0 requested=1 8675.044 137709 6780368 [1: None 0 0] Request BG 4: assigned BG 4 7 8675.044 137715 6780368 [1: BG 4 7] Start Task Send email message Gmail-Test (Gmail) 8675.044 137715 6780368 [1: BG 4 7] State:Begin Input:KICK 8675.044 137748 6780368 [1: BG 4 7] NewState:Finishing 8675.875 137720 6780368 [1: BG 4 7] State:Finishing Input:THREADDONE 8675.875 137720 6780368 [1: None 0 0] Finished sending email message "Gmail-Test (Gmail)". 8675.875 137722 6780368 [1: BG 4 7] NewState:End 8675.875 137716 6780368 [0: BG 4 7] Delete channel 8675.875 137713 6780368 [TASK] Delete task: Send email message Gmail-Test (Gmail) 8680.932 137520 6784448 [0: SMTP 6 2] Disconnecting from server smtp.gmail.com. 8680.932 137522 6784448 [0: SMTP 6 2] <QUIT 8680.932 137521 6784448 SOCK SelectMsg s=400 WRITE e=0 8680.932 137521 6784448 SSPI readsend nReturn=0 nRead=6 nEncrypted=27 buf0=5 buf1=6 buf2=16 8680.932 137521 6784448 SSPI readsend nRead==0 8680.932 137521 6784448 SOCK sendread( s=400, left=0 read=27) 8680.932 137521 6784448 SOCK send( s=400, len=27) 8680.932 137521 6784448 SOCK ret sent=27 8680.932 137521 6784448 SOCK SelectMsg s=400 WRITE e=0 8680.932 137521 6784448 SSPI readsend nRead==0 8680.932 137521 6784448 SOCK sendread( s=400, left=0 read=0) 8680.932 137521 6784448 SOCK NOsend( s=400, len=0 bSendEOF=1) 8680.932 137522 6784448 [0: SMTP 6 2] State:WaitingForBye Input:OPDONE SEND 8680.932 137522 6784448 [0: SMTP 6 2] NewState:WaitingForBye 8680.932 137521 6784448 SOCK SelectMsg s=400 READ e=0 8680.932 137521 6784448 SOCK recv( s=400, len=16400) 8680.932 137521 6784448 SOCK ret blocked 8680.932 137521 6784448 SSPI Get pin=0 in=0 pout=0 out=0 8680.992 137519 6784448 SOCK SelectMsg s=400 CLOSE e=0 8680.992 137519 6784448 [0: SMTP 6 2] Connection closed by server. 8680.992 137497 6784448 SOCK WinSocket dtor 24fa7e8 8680.992 137489 6784448 [0: SMTP 6 2] Delete channel My ISP: 8905.064 137823 7374128 [14: SMTP 1 15] NewState:WaitingForMsgAck 8905.064 137821 7374128 SOCK SelectMsg s=352 READ e=0 8905.064 137821 7374128 SOCK recv( s=352, len=16400) 8905.064 137821 7374128 SOCK ret blocked 8905.064 137821 7374128 SSPI Get pin=0 in=0 pout=0 out=0 8905.134 137821 7374128 SOCK SelectMsg s=352 READ e=0 8905.134 137821 7374128 SOCK recv( s=352, len=16400) 8905.134 137821 7374128 SOCK ret len=51 8905.134 137821 7374128 SSPI Get pin=0 in=51 pout=0 out=0 8905.134 137821 7374128 SSPI Decrypt pin=35 in=0 pout=5 out=30 return=0 8905.134 137821 7374128 SSPI Processed 30 pin=0 in=0 pout=0 out=0 8905.134 137824 7374128 [14: SMTP 1 15] >250 Ok: queued as 767BF4FB01 8905.134 137824 7374128 [14: SMTP 1 15] State:WaitingForMsgAck Input:RESPONSE 250 8905.134 137825 7374128 [14: SMTP 1 15] Finished sending email message "Gmail-Test (Other)". 8905.134 137824 7374128 [14: SMTP 1 15] NewState:End 8905.134 137822 7374128 [14: SMTP 1 15] State:Running Input:STATEDONE 8905.134 137821 7374128 [0: SMTP 1 15] NewState:Idle 8905.134 137825 7374128 [0: BG 4 19] Create channel total=0 busy=0 priority=0 avail=0 connecting=0 retry=0 requested=1 8905.134 137826 7374128 [14: None 0 0] Request BG 4: assigned BG 4 19 8905.134 137832 7374128 [14: BG 4 19] Start Task Send email message Gmail-Test (Other) 8905.134 137832 7374128 [14: BG 4 19] State:Begin Input:KICK 8905.144 137921 7374128 [14: BG 4 19] NewState:Finishing 8906.366 137822 7374128 [14: BG 4 19] State:Finishing Input:THREADDONE 8906.366 137822 7374128 [14: None 0 0] Finished sending email message "Gmail-Test (Other)". 8906.366 137824 7374128 [14: BG 4 19] NewState:End 8906.366 137818 7374128 [0: BG 4 19] Delete channel 8906.366 137815 7374128 [TASK] Delete task: Send email message Gmail-Test (Other) 8910.813 137634 7374128 [0: SMTP 1 15] Disconnecting from server mail.5sl.org. 8910.813 137634 7374128 [0: SMTP 1 15] <QUIT 8910.813 137633 7374128 SOCK SelectMsg s=352 WRITE e=0 8910.813 137633 7374128 SSPI readsend nReturn=0 nRead=6 nEncrypted=27 buf0=5 buf1=6 buf2=16 8910.813 137633 7374128 SSPI readsend nRead==0 8910.813 137633 7374128 SOCK sendread( s=352, left=0 read=27) 8910.813 137633 7374128 SOCK send( s=352, len=27) 8910.813 137633 7374128 SOCK ret sent=27 8910.813 137633 7374128 SOCK SelectMsg s=352 WRITE e=0 8910.813 137633 7374128 SSPI readsend nRead==0 8910.813 137633 7374128 SOCK sendread( s=352, left=0 read=0) 8910.813 137633 7374128 SOCK NOsend( s=352, len=0 bSendEOF=1) 8910.813 137634 7374128 [0: SMTP 1 15] State:WaitingForBye Input:OPDONE SEND 8910.813 137634 7374128 [0: SMTP 1 15] NewState:WaitingForBye 8910.813 137633 7374128 SOCK SelectMsg s=352 READ e=0 8910.813 137633 7374128 SOCK recv( s=352, len=16400) 8910.813 137633 7374128 SOCK ret blocked 8910.813 137633 7374128 SSPI Get pin=0 in=0 pout=0 out=0 8910.873 137633 7374128 SOCK SelectMsg s=352 READ e=0 8910.873 137633 7374128 SOCK recv( s=352, len=16400) 8910.873 137633 7374128 SOCK ret len=30 8910.873 137633 7374128 SSPI Get pin=0 in=30 pout=0 out=0 8910.873 137633 7374128 SSPI Decrypt pin=14 in=0 pout=5 out=9 return=0 8910.873 137633 7374128 SSPI Processed 9 pin=0 in=0 pout=0 out=0 8910.873 137633 7374128 SOCK SelectMsg s=352 CLOSE e=0 8910.873 137633 7374128 [0: SMTP 1 15] >221 Bye 8910.873 137634 7374128 [0: SMTP 1 15] State:WaitingForBye Input:RESPONSE 221 8910.873 137634 7374128 [0: SMTP 1 15] NewState:SendingMetaCloseToken 8910.873 137633 7374128 [0: SMTP 1 15] Connection closed by server. 8910.893 137611 7308608 SOCK WinSocket dtor 24f97e0 8910.893 137603 7308608 [0: SMTP 1 15] Delete channel Maybe I'm wrong, but it's hard to believe, that both, OM/Indy and Agent, fail to recognize a supposed final reply. AFAICS Agent simply doesn't care about a regular closing of the session as long as the transfer of the single messages is acknowledged correctly. As already mentioned, a packet sniffer can't help to clarify the situation. I only wonder why there's nothing to be found on this topic in any search engine as well as the Indy newsgroup. Any thoughts? Kind regards Christian -- OmniMix .. protect your privacy http://www.danner-net.de/om.htm
Technical Details
Message-ID:
<20070531150023.B29DEAAFEB@mail.mixmin.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!storethat.news.telefonica.de!telefonica.de!news.germany.com!news.tornevall.net!news2.arglkargh.de!news.dizum.com!sewer-output!mail2newsReferences:
<f90183d55b9c2fd37d06cf1efae83759@dizum.com> <8868aa495bb59f135263fac0730c134a@dizum.com> <244b43320041431e7f1ab4b132a9c3e8@pseudo.borked.net> <20070528174011.85BE2AB06F@mail.mixmin.net> <20070530210015.E7002AAFFD@mail.mixmin.net> <2ec28f34baee6218a96e276c7631436d@remailer.cyberiade.it>Show Full Headers
Complete Article Headers
Message-ID: <20070531150023.B29DEAAFEB@mail.mixmin.net> Subject: Re: Setting up Omnimix with gmail Date: Thu, 31 May 2007 15:00:23 +0000 From: OmniMix <om@nym.mixmin.net> References: <f90183d55b9c2fd37d06cf1efae83759@dizum.com> <8868aa495bb59f135263fac0730c134a@dizum.com> <244b43320041431e7f1ab4b132a9c3e8@pseudo.borked.net> <20070528174011.85BE2AB06F@mail.mixmin.net> <20070530210015.E7002AAFFD@mail.mixmin.net> <2ec28f34baee6218a96e276c7631436d@remailer.cyberiade.it> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!storethat.news.telefonica.de!telefonica.de!news.germany.com!news.tornevall.net!news2.arglkargh.de!news.dizum.com!sewer-output!mail2news Newsgroups: alt.privacy.anon-server MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mail-To-News-Contact: abuse@dizum.com Organization: mail2news@dizum.com Lines: 180