Hi
I have been using mbsync (isync v 1.3.0) to synchronise my work email to
a Maildir on an Amazon Webserver for a while.
I have been using port-forwarding from the location of the IMAP server
(port 993) to port 1993 on the AWS. The port is open as shown by nc -z localhost 1993 || echo 'no tunnel open'
(no reply, although I do get 'no tunnel open' if I change to a port that
isn't forwarded)
I therefore think the port forwarding is good.
This was working well until, a week ago I accidentally deleted the ssh
tunnel. Since then I have been having problems, despite resetting the
tunnel.
The setup is designed to work with mu and mu4e in emacs but the problem
starts with mbsync.
I did redo the SSL key (using openssl). I wondered if this was a
problem. I have been able to connect to the IMAP server over the
forwarded port using openssl
---------openssl---------------------------------------------------------

openssl s_client -connect 127.0.0.1:1993 -servername my.server.imap
-CAfile new_file.pem ## exact details redacted
CONNECTED(00000005)
write:errno=0
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 320 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---
My take on this is that this has worked (I may be wrong of course). I
note the 'no peer certificate available' bit but also the 'Verify return
code: 0 (ok)' Here is the config --------------------- mbsync config ---------------------------------
IMAPAccount Work
Host 127.0.0.1
Port 1993
User my.server.imap\\my.name ## - again redacted but worked previously
SSLType IMAPS
SSLVersions TLSv1.2
CertificateFile new_file.pem
Pass ####### - redacted here but present in config (I know this isn't
ideal)
IMAPStore Work-remote
Account Work
MaildirStore Work-local
Path ~/Maildir/Work
Inbox ~/Maildir/Work/Inbox
Channel Work
Master :Work-remote:
Slave :Work-local:
Create Slave
Sync Pull
SyncState *
-------------------------
The original output from mbsync Work is
C: 0/1 B: 0/1 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
Socket error: secure connect to 127.0.0.1 (127.0.0.1:1993): Success
C: 1/1 B: 0/1 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
----
Here is the output from mbsync -D Work
Reading configuration file /home/ubuntu/.mbsyncrc
Channel Work
Opening master store Work-remote...
M: [ 1] Enter connect_store
Resolving 127.0.0.1... ok
Connecting to 127.0.0.1 (127.0.0.1:1993)...
M: [ 1] Leave connect_store
Opening slave store Work-local...
S: [ 2] Enter connect_store
S: [ 2] Callback enter connect_store, sts=0
S: [ 2] Callback leave connect_store
S: [ 2] Leave connect_store
Socket error: secure connect to 127.0.0.1 (127.0.0.1:1993): Success
M: [ 1] Callback enter connect_store, sts=3
M: [ 3] Enter cancel_cmds
M: [ 3] Callback enter cancel_cmds
M: Enter free_store
M: Leave free_store
M: [ 3] Callback leave cancel_cmds
M: [ 3] Leave cancel_cmds
S: [ 4] Enter cancel_cmds
S: [ 4] Callback enter cancel_cmds
S: Enter free_store
S: Leave free_store
S: [ 4] Callback leave cancel_cmds
S: [ 4] Leave cancel_cmds
M: [ 1] Callback leave connect_store ---
I am confused by the line
'Socket error: secure connect to 127.0.0.1 (127.0.0.1:1993): Success'
there seems to be an issue connecting with the existing Maildir folder
(which worked before deleting and then restoring the SSH tunnels to my
IMAP server)
I tried copying the existing Maildir to another location and starting
again with a new Maildir but this made no difference to the process.
Maildir fell at the existing issue.
I thought the problem might relate to the certificate. I can connect to
the IMAP server on the local computer with openssl (port 993) and access
the INBOX etc.
I'm struggling to remember how to get the full exchange server
certificate or whether I can generate a new self-certificate.
I would be very grateful for any pointers. I have looked extensively on
Google and this mailing list.
I was loving mbsync and mu4e and would love to re-establish the work
flow but am stratching my head now.
Many thanks in advance
_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to