| Author |  | 
      
        | kangarolf Newbie
 
  
 
 Joined: 04 June 2010
 Online Status: Offline
 Posts: 13
 | 
          Hi all,
           | Posted: 11 March 2014 at 3:56am | IP Logged |   |  
           | 
 |  
 .NET WebMail Lite 5.1.3
 
 Everything has been running fine with WebMail but recently a number of accounts get an internal server error message when trying to login. I havent been able to link these accounts in anyway, they are not especially large or unique in any way I can spot.
 
 The logged error is pasted below;
 
 [11/03/2014 10:52:42] ERROR!!!
 [Message]
 Object reference not set to an instance of an object.
 [TargetSite]
 Void Init(MailBee.Mime.MailMessage, Boolean, WebMail.Folder)
 [Stack Trace]
 at WebMail.WebMailMessage.Init(MailMessage msg, Boolean isUidStr, Folder fld)
 at WebMail.ImapStorage.LoadMessageHeaders(String messageIndexSet, Boolean indexAsUid, Folder fld)
 at WebMail.ImapStorage.LoadMessageHeaders(Int32 pageNumber, Folder fld)
 at WebMail.MailProcessor.GetMessageHeaders(Int32 pageNumber, Folder fld)
 at WebMail.BaseWebMailActions.GetMessages(Int64 id_folder, String full_name_folder, Int32 page, Int32 sort_field, Int32 sort_order, String look_for, Int32 search_fields, Int32& folderMessageCount, Int32& folderUnreadMessageCount)
 at WebMail.XmlPacketManager.GetMessages(XmlElement webmailElement, Int64 id_folder, String full_name_folder, Int32 page, Int32 sort_field, Int32 sort_order, String look_for, Int32 search_fields)
 at WebMail.XmlPacketManager.CreateServerXmlDocumentResponse(XmlPacket clientPacket)
 [Method]: Init
 [Line, Column]: [0, 0]
 ------------------------------------------------------------
 [11/03/2014 10:52:42][] - <<<<<<<<<<<<<<<<<  OUT  <<<<<<<<<<<<<<<
 [11/03/2014 10:52:42][] - <?xml version="1.0" encoding="utf-8"?><webmail><error><![CDATA[Internal Server Error. Please, contact your system administrator in order to report the problem.]]></error></webmail>
 [11/03/2014 10:52:42][] - <<<<<<<<<<<<<<<<<  OUT  <<<<<<<<<<<<<<<
 
 Anyone have any ideas what might be happening.? Is it perhaps some mis match between the folders that the DB thinks should be on the IMAP server..?
 
 Thanks
 Rolf
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Checking the other log enabled in AdminPanel might help, if there's an IMAP-related error indeed.
           | Posted: 11 March 2014 at 3:59am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | kangarolf Newbie
 
  
 
 Joined: 04 June 2010
 Online Status: Offline
 Posts: 13
 | 
          Hi there,
           | Posted: 11 March 2014 at 4:06am | IP Logged |   |  
           | 
 |  
 Thanks for the reply.
 
 There is no admin panel this is being used on a dedicated multi site server as a webmail interface for hMailServer. Unless I am misunderstanding.
 
 Rolf
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | kangarolf Newbie
 
  
 
 Joined: 04 June 2010
 Online Status: Offline
 Posts: 13
 | 
          PS I should also say that the accounts in question can be opened fine with an alternative client, tested with iphone, android and thunderbird.
           | Posted: 11 March 2014 at 4:10am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          I was referring to adminpanel of webmail lite, which should be there:
           | Posted: 11 March 2014 at 4:21am | IP Logged |   |  
           | 
 |  
 http://www.afterlogic.com/wiki/Login_Screen_(WebMail_Lite_5_.NET)
 
 It contains several tabs, you should find "Debug & Logging" section under "WebMail" tab:
 
 http://www.afterlogic.com/wiki/Debug_%26_Logging_(WebMail_Lite_5_.NET)
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | atopali Newbie
 
  
  
 Joined: 01 May 2014
 Location: Canada
 Online Status: Offline
 Posts: 2
 | 
          I have the same problem.
           | Posted: 01 May 2014 at 6:35am | IP Logged |   |  
           | 
 |  
 The error logged is
 
 [06:27:09.77] [INFO] Assembly version: 6.0.2.220.
 [06:27:09.77] [INFO] Will resolve host "mail.xxxxx.ca".
 [06:27:09.78] [INFO] Host "mail.xxxxx.ca" resolved to IP address(es) xxx.xxx.xxx.xxx
 [06:27:09.78] [INFO] Will connect to host "mail.xxx.ca" on port 465.
 [06:27:09.78] [INFO] Socket connected to IP address xxx.xxx.xxx.xxx on port 465.
 [06:27:09.78] [INFO] Error: Socket connection has been refused by remote host. InnerException message follows: The handshake failed due to an unexpected packet format.
 [06:27:09.78] [INFO] Error: IOException occurred. InnerException message follows: The handshake failed due to an unexpected packet format.
 
 I enable d port 465
 
 
 Common Settings
 
 Site name:
 
 Default Mail Server Settings
 
 Incoming mail:          Port: 110
 Outgoing mail:          Port: 465
 Requires SMTP authentication
 Allow direct mode (What's this?)
 Direct mode is default
 Attachment size limit:      KB     Enable attachment size limit
 Mailbox size limit:      KB     Enable mailbox size limit
 Take quota value from IMAP server
 Allow new users to change email settings
 Allow users to add new email accounts (Pro only)
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          When you specify port 465 for outgoing mail, WebMail assumes that's SSL-enabled port, so it attempts to connect to SMTP server over SSL, but according to log that doesn't work for the server you're dealing with. You probably need to set a different port, standard options are 25 and 587. You're using non-SSL port for POP3, and using one with SMTP might work.
           | Posted: 01 May 2014 at 9:43am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | atopali Newbie
 
  
  
 Joined: 01 May 2014
 Location: Canada
 Online Status: Offline
 Posts: 2
 | 
          Thank you Igor,
           | Posted: 01 May 2014 at 2:30pm | IP Logged |   |  
           | 
 |  
 That was the problem.
 I used port 587 and the email sends fine
 | 
       
        | Back to Top |     | 
       
       
        |  |