| Author |  | 
      
        | Chris S Newbie
 
  
  
 Joined: 14 December 2010
 Location: Australia
 Online Status: Offline
 Posts: 4
 | 
          Hi folks,
           | Posted: 14 December 2010 at 11:28pm | IP Logged |   |  
           | 
 |  
 It appears that when mailbee connects to a mail server that uses CHUNKING and PIPELINING, if it takes longer than 30 seconds to send the chunked data the socket is timed out on the client.
 
 Note that the timeout is NOT coming from the server.
 
 Is there any way of configuring the socket timeout that is used by mailbee?
 
 Sanitized log follows from mailbee:
 
 [16:43:42.03] [INFO] Assembly version: 5.8.1.199.
 [16:43:42.03] [INFO] Will send mail message.
 [16:43:42.11] [INFO] Will resolve host "theserver".
 [16:43:42.11] [INFO] Host "theserver" resolved to IP address(es) 10.0.0.1.
 [16:43:42.11] [INFO] Will connect to host "theserver" on port 25.
 [16:43:42.11] [INFO] Socket connected to IP address 10.0.0.1 on port 25.
 [16:43:42.11] [RECV] 220 theserver.test.com Microsoft ESMTP MAIL Service ready at Wed, 15 Dec 2010 16:43:41 +1100\r\n
 [16:43:42.13] [INFO] Connected to mail service at host "theserver" on port 25 and ready.
 [16:43:42.13] [INFO] Will send Hello command (HELO or EHLO).
 [16:43:42.13] [SEND] EHLO test.com\r\n
 [16:43:42.13] [RECV] 250-theserver.test.com Hello [158.40.128.82]\r\n250-SIZE  12582912\r\n250-PIPELINING\r\n250-DSN\r\n250-ENHANCEDSTATUSC ODES\r\n250-STARTTLS\r\n250-AUTH\r\n250-8BITMIME\r\n250-BINA RYMIME\r\n250 CHUNKING\r\n
 [16:43:42.13] [INFO] SMTP Hello completed.
 [16:43:42.13] [INFO] Will login as "".
 [16:43:42.14] [INFO] Warning: None of the specified authentication methods is supported by the server.
 [16:43:42.14] [INFO] Will send mail message to SMTP server "theserver".
 [16:43:42.16] [INFO] Will submit sender and recipients.
 [16:43:42.16] [SEND] MAIL FROM:<test@test.com>\r\n
 [16:43:42.16] [SEND] RCPT TO:<recv@test.com>\r\n
 [16:43:42.16] [RECV] 250 2.1.0 Sender OK\r\n
 [16:43:42.16] [RECV] 250 2.1.5 Recipient OK\r\n
 [16:43:42.16] [INFO] Sender and recipients accepted by SMTP server. Will send message data now.
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:42.16] [SEND] BDAT 8192\r\n
 [16:43:42.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:52.16] [SEND] BDAT 8192\r\n
 [16:43:52.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:52.16] [SEND] BDAT 8192\r\n
 [16:43:52.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:52.16] [SEND] BDAT 8192\r\n
 [16:43:52.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:52.16] [SEND] BDAT 8192\r\n
 [16:43:52.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:52.16] [SEND] BDAT 8192\r\n
 [16:43:52.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:52.16] [SEND] BDAT 8192\r\n
 [16:43:52.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:52.16] [SEND] BDAT 8192\r\n
 [16:43:52.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:43:52.16] [SEND] BDAT 8192\r\n
 [16:43:52.16] [SEND] [Data chunk of 8192 bytes sent.]
 [16:44:12.66] [INFO] Will disconnect from host "theserver".
 [16:44:12.66] [INFO] Disconnected from host "theserver".
 [16:44:12.66] [INFO] Error: Socket connection has timed out. InnerException message follows: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Try using this property of SmtpServer.
           | Posted: 14 December 2010 at 11:38pm | IP Logged |   |  
           | 
 |  
 Also, consider disabling CHUNKING extension with:
 
 
 
| Code: 
 
    
    | 
      
       | SmtpServer.SmtpOptions = ExtendedSmtpOptions.NoChunking |  |  |  
 Hope this helps!
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Chris S Newbie
 
  
  
 Joined: 14 December 2010
 Location: Australia
 Online Status: Offline
 Posts: 4
 | 
          Brilliant... that's exactly what I'm looking for. I'd prefer to keep chunking on, so the timeout is what I needed. Great forum support!
           | Posted: 14 December 2010 at 11:43pm | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  |