Pegasus Mail & Mercury

Welcome to the Community for Pegasus Mail and
The Mercury Mail Transport System, the Internet's longest-serving PC e-mail system!
Welcome to Pegasus Mail & Mercury Sign in | Join | Help
in
Home Blogs Forums Downloads Pegasus Mail Overview Mercury Overview Wiki

SSL disconnection

Last post 12-09-2017, 21:14 by Chris Bolton. 4 replies.
Sort Posts: Previous Next
  •  12-07-2017, 11:30

    SSL disconnection

    Two clients on old Nokia smartphones have recently developed a problem connecting to my Mercury server. It only affects the Nokia clients, not PCs or Android, and is intermittent - most connection attempts fail, but occasionally one succeeds.

    The clients log of the conversation is (verbatim except [myservername] and [myserverIP])

    Connect
    Connection already active, using it
    Socket opened
    Connecting to host [myservername] 143
    Connect to IP [myserverIP]
    Destroying socket
    Socket cancel:OK
    Socket close
    Ok
    *finished

     The Mercury sessionlog is (verbatim except [myservername] [username] and [passwordhash]

    20:23:06.646: --- 29 Nov 2017, 20:23:06.646 ---
    20:23:06.646: Accepted connection from '82.132.226.79', timeout 120 seconds.
    20:23:06.646: Connection from 82.132.226.79, Wed, 29 Nov 2017 20:23<cr><lf>
    20:23:06.661: << * OK [myservername] IMAP4rev1 Mercury/32 v4.80.145 server ready.<cr><lf>
    20:23:07.537: >> 1 CAPABILITY<cr><lf>
    20:23:07.537: << * CAPABILITY IMAP4rev1 STARTTLS AUTH=PLAIN X-MERCURY-1<cr><lf>
    20:23:07.552: << 1 OK CAPABILITY complete.<cr><lf>20:23:07.865: >> 2 STARTTLS<cr><lf>
    20:23:07.865: << 2 OK Begin SSL/TLS negotiation now.<cr><lf>
    20:23:09.521:

  • SSL/TLS session established
    20:23:09.521:
  • AES256-SHA, SSLv3, Kx=RSA, Au=RSA, Enc=AES(256), Mac=SHA1<lf>
    20:23:09.521:
  • No peer certificate presented.
    20:23:09.646: >> 3 CAPABILITY<cr><lf>
    20:23:09.646: << * CAPABILITY IMAP4rev1 AUTH=PLAIN X-MERCURY-1<cr><lf>
    20:23:09.662: << 3 OK CAPABILITY complete.<cr><lf>
    20:23:09.818: >> 4 LOGIN
  • [username] [passwordhash]<cr><lf>
    20:23:09.880: << 4 OK LOGIN completed.<cr><lf>
    20:23:10.318: >> 5 SELECT INBOX<cr><lf>
    20:23:10.334: << * 1 EXISTS<cr><lf>
    20:23:10.334: << * 0 RECENT<cr><lf>
    20:23:10.334: << * FLAGS (\Deleted \Draft \Seen \Answered)<cr><lf>
    20:23:10.334: << * OK [UIDVALIDITY 1464263818] UID Validity<cr><lf>
    20:23:10.334: << * OK [UIDNEXT 1194] Predicted next UID<cr><lf>
    20:23:10.349: << * OK [PERMANENTFLAGS (\Deleted \Draft \Seen \Answered)] Settable message flags<cr><lf>
    20:23:10.349: << 5 OK [READ-WRITE] SELECT completed.<cr><lf>
    20:23:10.490: >> 6 FETCH 1:* (UID flags)<cr><lf>
    20:23:10.490: << * 1 FETCH (UID 1188 FLAGS (\Seen \Answered)
    20:23:10.490: << )<cr><lf>
    20:23:10.490: << 6 OK FETCH complete.<cr><lf>
    20:23:12.599: 26: SSL_read returned zero (socket was closed)
    20:23:12.599: >>
    20:23:12.631: [!] Warning: SSL connection improperly closed by remote host.
    20:23:12.631: --- Connection closed normally at 29 Nov 2017, 20:23:12.631. ---
    20:23:12.631:

     I am not aware of anything I've changed in either server or client configs since the time it all worked, but it may be a change in some external resource. Mercury is running on Windows 10.

    Thanks for any advice/assistance.

     

     

  •  12-07-2017, 16:15

    • Greenman is not online. Last active: 14 Dec 2017, 16:01 Greenman
    • Top 10 Contributor
    • Joined on 07-19-2007
    • UK
    • SuperStar
    • Points 12,645

    Re: SSL disconnection

    Are you certain the account is not being accessed locally when the IMAP connection is created?
  •  12-07-2017, 22:35

    Re: SSL disconnection

    Thanks for the suggestion. I have now checked, and the problem occurs whether or not other clients are accessing the account
  •  12-08-2017, 12:30

    • Greenman is not online. Last active: 14 Dec 2017, 16:01 Greenman
    • Top 10 Contributor
    • Joined on 07-19-2007
    • UK
    • SuperStar
    • Points 12,645

    Re: SSL disconnection

    Chris Bolton:
    Thanks for the suggestion. I have now checked, and the problem occurs whether or not other clients are accessing the account

    I meant local connections i.e. from mail clients that access Mercury/32 from within the same network. Multiple IMAP connections can be made, but IMAP connections will fail if a local client is accessing the client because a .lck file is created which tells Mercury/32 the account is effectively 'locked'. Check the account folder and make sure no .lck file exists when this problem occurs. 

  •  12-09-2017, 21:14

    Re: SSL disconnection

    Thanks. Yes, I understood you, and checked there were no connections at all and no .lck file when the problem client tried to log in. Although, for info, I have tested with another remote client and in that case it will connect even if there is a .lck file as result of a local client being connected.

    I suspect it is to do with SSL and will try setting that up again from scratch.

View as RSS news feed in XML

Contact | Advertise | Host provider: PraktIT | Terms of Use | Privacy Statement
Copyright © 2007-2011 David Harris / Peter Strömblad. | Pegasus Mail Home Page